🚀The world's best VBA AI has evolved. ExcelMaster is now an autonomous Agent.Read more →

The ExcelMaster.ai Blog

Excel VLOOKUP Function — How to Use It, and the 4th Argument That Breaks It

Excel VLOOKUP Function — How to Use It, and the 4th Argument That Breaks It

VLOOKUP looks down the leftmost column of a table and counts N columns to the right — that one-directional design is the source of every bug it has. Learn why the 4th argument (range_lookup) must almost always be FALSE, why VLOOKUP can't look to the left, why a hard-coded column number silently breaks when you insert a column, and how to fix the #N/A that means 'not found'.

Henry
Excel INDEX & MATCH — The Two-Function Lookup That Beats VLOOKUP

Excel INDEX & MATCH — The Two-Function Lookup That Beats VLOOKUP

INDEX and MATCH split a lookup into two jobs: MATCH finds the position ('which row?'), INDEX returns the value at that position ('what's there?'). Decoupling search from retrieval is what gives INDEX/MATCH everything VLOOKUP lacks — it looks left as easily as right, survives inserted columns, and does true two-dimensional lookups. Learn the pattern, the match_type trap, and when it still beats XLOOKUP.

Henry
Excel HLOOKUP & LOOKUP — Horizontal Lookups and the Legacy Function to Retire

Excel HLOOKUP & LOOKUP — Horizontal Lookups and the Legacy Function to Retire

HLOOKUP is VLOOKUP rotated 90 degrees — it searches the first ROW and reads down. LOOKUP is VLOOKUP's ancestor, and its fatal flaw is that it has no exact-match option: it always approximates and demands sorted data. Learn when a horizontal layout makes HLOOKUP the right call, why the classic LOOKUP(2,1/…) trick still shows up in old sheets, and why both mostly give way to XLOOKUP.

Henry
Excel AND & OR Functions — Combine Conditions Right (and Why Excel Never Short-Circuits)

Excel AND & OR Functions — Combine Conditions Right (and Why Excel Never Short-Circuits)

AND and OR don't make decisions — they collapse many TRUE/FALSE tests into one verdict that feeds an IF, a rule, or a filter. Learn why AND belongs inside IF's first argument (not wrapped around nested IFs), why a bare =AND(...) just prints the word TRUE, why Excel evaluates every argument (no short-circuit, so it can still throw #DIV/0!), and when to drop them for +/* array masks.

Henry
Excel NOT & XOR Functions — Invert a Condition, and the "Odd One Out" Logic Most People Get Wrong

Excel NOT & XOR Functions — Invert a Condition, and the "Odd One Out" Logic Most People Get Wrong

NOT flips a single TRUE/FALSE verdict; XOR is the exclusive-or that AND and OR can't express. Learn why NOT takes exactly one argument (so you must write NOT(AND(...)) for compounds), when NOT is just <> in disguise, how De Morgan's law is NOT's real superpower, and the XOR surprise nobody warns you about — with 3+ inputs it returns TRUE for an ODD count of TRUEs, not 'exactly one'.

Henry
Excel IS Functions — ISNUMBER, ISTEXT, ISBLANK, ISERROR & ISNA (Guard a Formula Before It Breaks)

Excel IS Functions — ISNUMBER, ISTEXT, ISBLANK, ISERROR & ISNA (Guard a Formula Before It Breaks)

The IS family inspects a cell and returns a TRUE/FALSE verdict — they classify, they never transform. Learn why ISBLANK is stricter than 'looks empty' (a formula's empty string is not blank), why ISERROR hides real bugs while ISNA and IFNA are usually safer, why IF(ISERROR(x),…,x) computes x twice, and ISNUMBER's killer app: turning SEARCH into a clean partial-match test.

Henry
Excel TEXT Function — Format a Number as Text (and the Trap That Stops It Summing)

Excel TEXT Function — Format a Number as Text (and the Trap That Stops It Summing)

The TEXT function turns a number or date into a formatted text string using a format code — =TEXT(1234.5,"$#,##0.00") gives "$1,234.50". Learn the mental model (baking a format into an actual string vs a cell's display-only number format), the #1 trap (the output is text, so SUM ignores it), the format-code crash course for numbers and dates, leading zeros and locale, and when a cell format, CONCAT, or ROUND is the better tool.

Henry
Excel VALUE & NUMBERVALUE — Turn Text Back Into Numbers That Calculate

Excel VALUE & NUMBERVALUE — Turn Text Back Into Numbers That Calculate

VALUE parses a text string that looks numeric — "1,234.50" or "$9.00" — into a real number you can sum, sort, and chart. It's the inverse of TEXT. Learn the mental model, the #1 real-world cause (numbers stored as text after an import or paste), why VALUE follows your system locale and how NUMBERVALUE fixes a European "1.234,56", the faster no-formula fixes (*1, double-unary, Text to Columns), and why modern Excel coerces some text but SUM never does.

Henry
Excel DATEVALUE & TIMEVALUE — Rescue Dates and Times Trapped as Text

Excel DATEVALUE & TIMEVALUE — Rescue Dates and Times Trapped as Text

A date in Excel is really a serial number wearing a date format; a date that arrives as text is an impostor that won't sort, subtract, or feed DATEDIF. DATEVALUE parses a text date into its serial number and TIMEVALUE parses a text time into a fraction of a day. Learn the mental model, the symptoms of text dates, the regional-ambiguity trap with 03/04/2026, how to combine date + time, when DATEVALUE can't parse a string, and the DATE(LEFT,MID,RIGHT) and Text to Columns alternatives.

Henry
Excel INDIRECT Function — Turn Text Into a Live Reference (and Why It's Volatile)

Excel INDIRECT Function — Turn Text Into a Live Reference (and Why It's Volatile)

INDIRECT turns a text string like "A1" or "Sheet2!B3" into a live cell reference. Learn the mental model, the #1 trap (text doesn't auto-update, so renaming a sheet breaks every INDIRECT with #REF!), why it's volatile and invisible to Excel's dependency tracer, the closed-workbook #REF! gotcha, its one killer use — pulling from a sheet named in a cell — and when a Table, 3D reference, or CHOOSE is the better tool.

Henry
Excel OFFSET Function — A Reference That Moves (and When INDEX Is Better)

Excel OFFSET Function — A Reference That Moves (and When INDEX Is Better)

OFFSET returns a reference a set number of rows and columns from an anchor, optionally resized to a whole block. Learn the mental model, why it returns a reference (not a value) so it can feed SUM, the volatility cost, the classic dynamic-named-range trick and why a Table or spill range now beats it, the #REF! off-the-edge trap, and the key judgment call: use non-volatile INDEX to index into a range, and keep OFFSET only for genuinely moving windows.

Henry
Excel ADDRESS Function — Build a Cell's Address as Text (Not Its Value)

Excel ADDRESS Function — Build a Cell's Address as Text (Not Its Value)

ADDRESS builds the text of a cell address — =ADDRESS(1,1) returns the string "$A$1", not what's in A1. Learn the mental model (it's the opposite of INDIRECT's input side), the #1 misunderstanding that it returns text not a value, the abs_num argument for $ locking, why it is NOT volatile unlike INDIRECT and OFFSET, the real jobs — reporting where a value is via MATCH and building references for INDIRECT — and an honest take on how niche it is in modern Excel.

Henry
Excel SUBTOTAL Function — Totals That Respect Your Filter (and the 9 vs 109 Trap)

Excel SUBTOTAL Function — Totals That Respect Your Filter (and the 9 vs 109 Trap)

SUBTOTAL is a filter-aware total: it skips rows hidden by a filter, so the number at the bottom of your list updates as you filter. Learn the function_num table, the 1–11 vs 101–111 trap (why hiding rows manually doesn't change your total), why SUBTOTAL ignores other SUBTOTALs so grand totals never double-count, and why it can't skip errors — the job AGGREGATE was built for.

Henry
Excel AGGREGATE Function — SUBTOTAL's Superset That Also Ignores Errors

Excel AGGREGATE Function — SUBTOTAL's Superset That Also Ignores Errors

AGGREGATE is SUBTOTAL with two upgrades: 19 functions instead of 11, and an options argument that lets it ignore error values, hidden rows, and nested totals. Learn the function_num + options grid, its most underused trick — summing a column that contains #N/A without any IFERROR cleanup — and the array-form functions (LARGE, SMALL, PERCENTILE) that need an extra k argument.

Henry
Excel INT, TRUNC & MOD — Drop the Decimal and Find the Remainder

Excel INT, TRUNC & MOD — Drop the Decimal and Find the Remainder

INT and TRUNC both drop the decimals, but INT rounds toward minus-infinity while TRUNC just chops toward zero — so they split on negative numbers. MOD returns the remainder, and in Excel the remainder takes the sign of the divisor, not the number. Learn the off-by-one trap, splitting dates from times, and the zebra-stripe pattern.

Henry