Posts

Showing posts from December, 2026

INDEX and MATCH in Excel: the lookup that works in both directions

Image
VLOOKUP works until the day you need a value that sits to the left of the key column. Then it stops, and no amount of dragging fixes it. INDEX and MATCH together do the same job in any direction, and they survive someone inserting a column into your table. This guide is the pattern, the two-way version, and the errors that cost the most time. Why VLOOKUP hits a wall VLOOKUP takes a lookup value, a table, a column number, and a match mode. The column number is the problem. It counts from the first column of the range you selected, so the return column must always be to the right of the key. If the key is in column C and the value you want is in column A, VLOOKUP cannot reach it without rearranging the sheet. The second problem is quieter. Insert a column inside the lookup range and every column number shifts. The formula does not break with an error. It returns the wrong column, which is worse, because nobody notices until a report is wrong. INDEX and MATCH avoid both. INDEX takes a ran...

Excel COUNTIF Function: Syntax, Wildcards and 8 Examples

Image
The Excel COUNTIF function counts the cells in a range that meet one condition. Use it to count how many orders are marked Paid, how many scores are above 50, or how many cells are not blank, without filtering or counting by hand. COUNTIF syntax The formula is =COUNTIF(range, criteria). The range is the group of cells to look at, such as B2:B100. The criteria is the condition: a number, a piece of text, a cell reference, or a comparison written in quotation marks such as ">50". For example, if column B holds order status, =COUNTIF(B2:B100,"Paid") returns how many rows say Paid. Text matching ignores upper and lower case, so "paid" and "PAID" are counted too. COUNTIF examples you will use most Goal Formula What it counts Equal to a number =COUNTIF(B2:B100,50) Cells equal to 50 Greater than =COUNTIF(B2:B100,">50") Cells above 50 ...

Excel IF Function: Multiple Conditions, Nested IF and Fixes When It Fails

Image
The Excel IF function checks a condition and returns one result when it is true and another when it is false. It is the base of almost every decision in a spreadsheet: pass or fail, paid or overdue, bonus or no bonus. This guide covers the syntax, working examples with text, numbers and blanks, how to use IF with multiple conditions using AND and OR, nested IF and its modern alternatives, and why an IF formula stops working. IF function syntax The formula is =IF(logical_test, value_if_true, value_if_false). The logical test is any comparison that Excel can judge as TRUE or FALSE, such as B2>=50 or A2="Paid". The second part is what Excel shows when the test is true, and the third is what it shows when the test is false. Text results go inside quotation marks, numbers and cell references do not. Suppose column B holds exam scores. In C2 type =IF(B2>=50,"Pass","Fail") and fill the formula down. Every row now shows Pass or Fail depending on it...

How to Remove Duplicates in Excel: 4 Safe Methods and Fixes When It Finds None

Image
To remove duplicates in Excel, select your data, open the Data tab, and click Remove Duplicates. Excel deletes repeated rows and keeps the first one. That takes ten seconds, but it deletes data for good, so a few safe habits matter. This guide shows the fast way, a way that keeps your original list, and what to do when Excel says there are no duplicates and you can see there are. The fast way: Remove Duplicates Click any cell inside your table. On the Data tab, in the Data Tools group, choose Remove Duplicates. A box lists your columns. Keep a tick on every column that must match for a row to count as a duplicate. If you tick only the Email column, two rows with the same email count as duplicates even when the names differ. If you tick all columns, a row is removed only when every cell is identical. Click OK. Excel tells you how many duplicate values it found and removed, and how many unique values remain. Check those numbers against what you expected. If the count looks wron...

Excel SUMIF Function: Syntax, 5 Examples and Fixes for Wrong Totals

Image
SUMIF adds up only the numbers that meet a condition. Total sales for one region, expenses for one category, hours for one client: instead of filtering and reading a status bar, you write one formula and it stays correct when the data changes. This guide shows the syntax, five practical examples, the wildcard and operator tricks, and the mistakes that cause wrong totals. What SUMIF does and its syntax The function has three parts: =SUMIF(range, criteria, [sum_range]). The range is where Excel looks for your condition. The criteria is the condition itself. The sum_range is the column of numbers to add. If you leave sum_range out, Excel adds the cells in the range itself, which only makes sense when you are testing the numbers directly, for example adding every value above 100. Imagine a sales table with Region in column A, Product in column B and Amount in column C, from row 2 to row 200. To total the sales for the North region, type =SUMIF(A2:A200,"North",C2:C200). ...

Excel Conditional Formatting: Highlight Duplicates, Overdue Rows and More (With Formulas)

Image
Conditional formatting makes a spreadsheet tell you what matters without you scanning every row. Overdue invoices turn red, duplicate customer names get a yellow fill, the top ten sales stand out, and every other row gets a light band so long lists stay readable. Most people only use the built-in presets, and that is fine for simple cases. But the real power sits in one option: the formula rule. Once you can write a formula rule, you can highlight almost anything, including a whole row based on one cell, which the presets cannot do. This guide covers the presets, then formula rules, then the mistakes that make rules behave strangely. What conditional formatting does A conditional formatting rule is a test attached to a range of cells. When the test is true for a cell, Excel applies a format such as a fill color, font color, bold text, or a small icon. When the test is false, the cell looks normal. The rule keeps running, so if the data changes the formatting changes with it. Yo...

Excel Pivot Table Tutorial for Beginners: Build Your First One in 10 Minutes

Image
A pivot table is the fastest way to turn a long list of rows into a summary you can read. Total sales by region, hours by project, expenses by month: each takes about thirty seconds once you know the four-box layout, and it never needs a single formula. Most beginners avoid pivot tables because the screen looks intimidating. This tutorial builds one from scratch on a small sales list, explains each of the four areas in plain words, and ends with the mistakes that make pivot tables show wrong numbers. What a pivot table does, in one example Imagine a sheet with 500 rows. Each row is one sale: date, region, salesperson, product and amount. The question is "how much did each region sell?" Without a pivot table you would write a SUMIF for every region and update it whenever a new region appears. A pivot table answers the same question by dragging the Region field to one box and the Amount field to another. It groups the rows, adds them up, and shows a small table with one lin...