SPREADSHEET FORMULAS & AI EXPLAINER

Excel Formula Explainer Online
explain, validate & learn all formulas.

Paste any Excel formula to get instant plain-English explanations, automatic error detection, and syntax corrections. Explore our comprehensive formula dictionary with realistic spreadsheet tables and examples.

Interactive Formula Inspector & Fixer
Type or paste any Excel formula to inspect its syntax, understand arguments, and get instant fixes.
Try an example:
fx
Formula Syntax is Valid

Searches a range or array for a match and returns the corresponding item from a second range. Replaces VLOOKUP and HLOOKUP with faster, safer lookups that can look in any direction (left, right, up, down).

XLOOKUP

Formula Argument Breakdown

lookup_value *A2
The value you want to search for (e.g. cell reference A2, number, or text).
lookup_array *$D$2:$D$50
The single row or column where Excel should search for the lookup_value.
return_array *$E$2:$E$50
The row or column containing the values you want to retrieve.
if_not_found "Not Found"
Text or value to return if no valid match is found (avoids #N/A errors).

Step-by-Step Calculation

  1. Step 1: Excel inspects the lookup value: A2.
  2. Step 2: Excel scans the lookup array ($D$2:$D$50) to find an exact match.
  3. Step 3: Once found, Excel retrieves and returns the corresponding value in $E$2:$E$50.
  4. Fallback: If no match is found, Excel returns "Not Found".
Pro Tips for XLOOKUP:
  • XLOOKUP defaults to an exact match, unlike VLOOKUP which defaults to approximate matching.
  • Unlike VLOOKUP, XLOOKUP can return values located to the left of the lookup column.
  • If columns are inserted or deleted in your table, XLOOKUP formulas will not break.

Excel Formulas Encyclopedia & Examples

Browse essential functions across Lookup, Logic, Math, Text, and Dates with interactive syntax and sample spreadsheets.

XLOOKUPModern Essential
lookup

Searches a range or array for a match and returns the corresponding item from a second range. Replaces VLOOKUP and HLOOKUP with faster, safer lookups that can look in any direction (left, right, up, down).

Syntax:=XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
Example Spreadsheet:
Emp ID (A)Name (B)Department (C)Salary (D)
E-101John DoeEngineering$95,000
E-102Sarah SmithMarketing$82,000
E-103Alex RayProduct$91,000
E-104Emily ChenDesign$88,000
fx=XLOOKUP("E-104", A2:A5, C2:C5, "Not Found")
→ Design
VLOOKUPClassic Staple
lookup

Searches for a value in the first column of a table range and returns a value in the same row from a specified column to the right.

Syntax:=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
Example Spreadsheet:
Product Code (D)Product Name (E)Category (F)Unit Price (G)
P-100Wireless MouseAccessories$29.99
P-200Mechanical KeyboardHardware$89.99
P-3004K USB-C MonitorDisplays$349.99
fx=VLOOKUP("P-200", D2:G4, 3, FALSE)
→ Hardware
INDEXPower Lookup
lookup

Returns the value of an element in a table or array selected by row and column position numbers. Commonly paired with MATCH.

Syntax:=INDEX(array, row_num, [column_num])
Example Spreadsheet:
Item (A)Region (B)Sales (C)
LaptopsNorth$12,400
DesktopsSouth$8,900
MonitorsEast$5,600
TabletsWest$7,800
fx=INDEX(C2:C5, 4)
→ $7,800
MATCHCoordinate Finder
lookup

Searches for a specified item in a range of cells and returns the relative position of that item (not the item itself).

Syntax:=MATCH(lookup_value, lookup_array, [match_type])
Example Spreadsheet:
Products (A)Inventory (B)
Laptops45
Desktops20
Monitors85
Tablets32
fx=MATCH("Monitors", A2:A5, 0)
→ 3
OFFSETDynamic Reference
lookup

Returns a cell or range of cells that is a specified number of rows and columns away from an initial reference cell.

Syntax:=OFFSET(reference, rows, cols, [height], [width])
Example Spreadsheet:
ABC
Start1020
304050
607080
90100Goal: 110
fx=OFFSET(A1, 3, 2)
→ Goal: 110
INDIRECTDynamic Reference
lookup

Returns the reference specified by a text string. Allows creating dynamic formulas where sheet names or cell references change based on cell inputs.

Syntax:=INDIRECT(ref_text, [a1])
Example Spreadsheet:
Sheet Number (A1)Formula TargetResult
2="Sheet" & A1 & "!B5"Value from Sheet2!B5
fx=INDIRECT("Sheet2!B5")
→ $4,500
IFDecision Core
logical

Checks whether a condition is met, returning one specified value if TRUE, and another value if FALSE.

Syntax:=IF(logical_test, value_if_true, [value_if_false])
Example Spreadsheet:
Student (A)Score (B)Result (C)
Michael88Pass
Emma64Retake
Lucas92Pass
fx=IF(B2>=75, "Pass", "Retake")
→ Pass
IFSMulti-Condition
logical

Evaluates multiple conditions in sequential order and returns the value corresponding to the first TRUE condition without nesting IF formulas.

Syntax:=IFS(logical_test1, value_if_true1, [logical_test2, value_if_true2], ...)
Example Spreadsheet:
Score (A)Grade
94A
83B
72C
58F
fx=IFS(A2>=90, "A", A2>=80, "B", TRUE, "F")
→ A
IFERRORError Shield
logical

Catches formula errors (#N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, #NULL!) and returns a clean custom result instead of an ugly error code.

Syntax:=IFERROR(value, value_if_error)
Example Spreadsheet:
Revenue (A)Units (B)Avg Price (C)
$1,00010$100
$5000$0 (Safeguarded)
fx=IFERROR(A3/B3, 0)
→ 0
ANDBoolean Logic
logical

Returns TRUE if all its arguments evaluate to TRUE; returns FALSE if one or more arguments evaluate to FALSE.

Syntax:=AND(logical1, [logical2], ...)
Example Spreadsheet:
Age (A)Status (B)Eligible?
22CitizenEligible
17CitizenIneligible
30Non-CitizenIneligible
fx=AND(A2>=18, B2="Citizen")
→ TRUE
ORBoolean Logic
logical

Returns TRUE if any argument evaluates to TRUE; returns FALSE only if all arguments evaluate to FALSE.

Syntax:=OR(logical1, [logical2], ...)
Example Spreadsheet:
Role (A)Tenure Years (B)Status
Engineer6Bonus
Manager2Bonus
Intern1Standard
fx=OR(A2="Manager", B2>5)
→ TRUE
SUMIFSMulti-Condition Math
math

Adds all numbers in a range that meet multiple criteria across multiple columns.

Syntax:=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Example Spreadsheet:
Region (A)Quarter (B)Category (C)Sales (D)
NorthQ1Hardware$4,500
SouthQ1Software$3,200
NorthQ2Hardware$6,100
NorthQ2Services$1,800
fx=SUMIFS(D2:D5, A2:A5, "North", C2:C5, "Hardware")
→ $10,600
COUNTIFSMulti-Condition Counter
math

Counts the number of rows or cells across multiple ranges that meet multiple conditions simultaneously.

Syntax:=COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Example Spreadsheet:
Status (A)Department (B)
CompletedIT
In ProgressIT
CompletedSales
CompletedIT
fx=COUNTIFS(A2:A5, "Completed", B2:B5, "IT")
→ 2
AVERAGEIFSConditional Average
math

Calculates the arithmetic average of all numbers in a range that meet one or more conditions.

Syntax:=AVERAGEIFS(average_range, criteria_range1, criteria1, ...)
Example Spreadsheet:
Dept (A)Level (B)Salary (C)
EngineeringSenior$120,000
EngineeringJunior$75,000
EngineeringSenior$130,000
MarketingSenior$110,000
fx=AVERAGEIFS(C2:C5, A2:A5, "Engineering", B2:B5, "Senior")
→ $125,000
ROUNDPrecision Control
math

Rounds a number to a specified number of decimal digits according to standard mathematical rounding rules.

Syntax:=ROUND(number, num_digits)
Example Spreadsheet:
Input Number (A)num_digitsResult
14.567214.57
99.234199.2
1420.75-21,400 (Nearest hundred)
fx=ROUND(14.567, 2)
→ 14.57
TEXTSPLITModern Text Power
text

Splits text strings into an array of rows or columns using specified delimiters (e.g., commas, spaces, dashes). Modern alternative to "Text to Columns".

Syntax:=TEXTSPLIT(text, col_delimiter, [row_delimiter], [ignore_empty], [match_mode], [pad_with])
Example Spreadsheet:
Full Text (A)Split Col 1Split Col 2Split Col 3
John, Smith, NYJohnSmithNY
fx=TEXTSPLIT("John, Smith, NY", ", ")
→ John | Smith | NY
TEXTJOINDelimiter Concatenation
text

Combines text from multiple ranges or strings into one string, inserting a specified delimiter between each item. Easily skips blank cells.

Syntax:=TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)
Example Spreadsheet:
Item 1Item 2Item 3Result
Red(blank)BlueRed, Blue
fx=TEXTJOIN(", ", TRUE, A2:C2)
→ Red, Blue
TRIMData Cleaning
text

Removes all leading, trailing, and repeated spaces from text, leaving only single spaces between words. Essential for cleaning VLOOKUP key mismatches.

Syntax:=TRIM(text)
Example Spreadsheet:
Raw String (A)Trimmed Result
" Item A100 "Item A100
fx=TRIM(" Product Name ")
→ Product Name
SUBSTITUTEFind & Replace
text

Substitutes new_text for old_text in a text string. Case-sensitive.

Syntax:=SUBSTITUTE(text, old_text, new_text, [instance_num])
Example Spreadsheet:
Original (A)FormulaCleaned
123-456-7890=SUBSTITUTE(A2, "-", "")1234567890
fx=SUBSTITUTE("123-456", "-", "/")
→ 123/456
DATEDIFAge & Duration
date

Calculates the number of days, months, or years between two dates. Ideal for calculating employee tenure, age, or project timelines.

Syntax:=DATEDIF(start_date, end_date, unit)
Example Spreadsheet:
Start Date (A)End Date (B)UnitResult
2020-01-152026-11-03"Y"6 Years
2020-01-152026-11-03"M"81 Months
fx=DATEDIF("2020-01-15", "2026-11-03", "Y")
→ 6
NETWORKDAYSBusiness Days
date

Returns the number of whole working days between two dates, automatically excluding Saturdays, Sundays, and optional public holidays.

Syntax:=NETWORKDAYS(start_date, end_date, [holidays])
Example Spreadsheet:
Start (A)End (B)Workdays
2026-11-02 (Mon)2026-11-13 (Fri)10 Workdays
fx=NETWORKDAYS("2026-11-02", "2026-11-13")
→ 10
UNIQUEDeduplication
dynamic

Returns a list of unique values from a range or array, eliminating all duplicate rows or items automatically.

Syntax:=UNIQUE(array, [by_col], [exactly_once])
Example Spreadsheet:
Raw List (A)Unique Output
NorthNorth
SouthSouth
NorthEast
East
fx=UNIQUE(A2:A5)
→ North, South, East
FILTERDynamic Extraction
dynamic

Filters a range of data based on criteria you define, returning only matching rows into a new dynamic table array.

Syntax:=FILTER(array, include, [if_empty])
Example Spreadsheet:
IDClientStatusAmount
101Acme CorpPending$4,000
102Beta LLCPaid$2,500
103Gamma IncPending$6,200
fx=FILTER(A2:D4, C2:C4="Pending")
→ 2 matching rows spilled
Processed 100% locally in browser memory. Zero formula uploads.
  • Plain-English Explanations

    Translates complex, nested Excel formulas into simple, human-friendly steps anyone can understand.

  • Automatic Error Detection

    Instantly flags missing parentheses, unclosed quotes, incorrect range syntax, and missing required parameters.

  • 60+ Formulas with Examples

    Complete dictionary covering XLOOKUP, INDEX/MATCH, SUMIFS, logical tests, dates, and dynamic arrays with sample tables.

  • 100% In-Browser Privacy

    Formulas and cell references are parsed completely on your device. Nothing is ever sent to an external server.

Pro-Tip for Formula Dragging: When looking up data across tables, always use absolute references with dollar signs (e.g. $A$2:$D$50). This ensures your lookup range won't drift downward when you drag the formula to other cells!
QUICK TUTORIAL

How to Explain & Fix Excel Formulas in 3 Simple Steps

Debug tricky formulas, understand nested logic, and learn Excel functions with zero guesswork.

01

Type or Paste Any Excel Formula

Enter any formula into the fx formula bar (e.g., =XLOOKUP, =VLOOKUP, =SUMIFS, or complex nested IF statements).

02

Instant Plain-English Breakdown

Our engine identifies functions, separates parameters, checks for missing parentheses or errors, and suggests optimized formulas.

03

Copy Fixed Formula & Learn

Copy the verified/corrected formula directly to your spreadsheet, or explore our formula dictionary with realistic sample tables.

WHY USE OUR EXCEL FORMULA TOOL

Master Formulas Faster & Eliminate Spreadsheet Errors

From finance analysts and accountants to marketers, developers, and students, everyone encounters broken formulas. Our tool deconstructs formulas, identifies bugs, and provides clean solutions.

Deep Parameter Breakdown

Ever wonder what each comma in a formula means? We map every argument to its official definition so you can verify cell references at a glance.

  • Highlights required vs optional parameters
  • Flags missing arguments in red
  • Identifies search modes and boolean criteria

Smart Optimization Suggestions

Spreadsheet software evolves quickly. Our engine suggests modern functions that run faster and make workbooks more resilient.

  • Upgrades VLOOKUP to XLOOKUP with left-lookup ability
  • Replaces messy nested IFs with clean IFS or SWITCH
  • Detects missing exact match flags to prevent false matches

Interactive Spreadsheet Examples

Every formula card is paired with a mini spreadsheet showing realistic rows of sales, employees, or inventory data.

  • 1-click "Test in Explainer" button to see live calculation
  • Realistic table headers and column formats
  • Covers Microsoft Excel, Google Sheets & Calc
POPULAR USE CASES

Common Formula Challenges Solved

Eliminate hours of manual debugging with instant formula breakdowns.

Financial Modeling & Budgets

Deconstruct complex SUMIFS, NPV, IRR, and nested IF models to ensure balance sheets and financial statements are 100% audit-proof.

HR & Employee Data Management

Calculate employee tenure with DATEDIF, match employee IDs with XLOOKUP, and combine department records with TEXTJOIN.

Sales & Marketing Analytics

Aggregate monthly campaign ROI, count multi-condition leads with COUNTIFS, and deduplicate customer emails with UNIQUE.

Inventory & Operations Tracking

Lookup product SKUs, calculate workdays between shipments using NETWORKDAYS, and filter backorders using dynamic FILTER.

EXPLORE RELATED SPREADSHEET & DATA UTILITIES
GOT QUESTIONS?

Frequently Asked Questions

Everything you need to know about understanding and fixing Excel formulas with We Make PDF.

How does the Excel Formula Explainer inspect and explain custom formulas?

Our client-side parser parses your formula into an abstract syntax tree, identifies every function name, checks parentheses balance, inspects argument positions against standard Excel rules, and translates what each parameter does into simple, plain-English steps.

Can it detect syntax errors like missing parentheses or wrong commas?

Yes! It detects missing opening or closing parentheses, missing leading "=" signs, unclosed quotation marks, double period range errors (e.g., A1..B10), and even locale differences like semicolons (;) versus commas (,).

Does it suggest modern formula alternatives like XLOOKUP instead of VLOOKUP?

Absolutely. Whenever you enter classic formulas like VLOOKUP, multiple nested IF statements, or CONCATENATE, our engine provides modern best-practice upgrades like XLOOKUP, IFS, or TEXTJOIN along with locked absolute references ($).

Are all 60+ Excel formulas explained with real-world table examples?

Yes, every formula in our encyclopedia includes its formal syntax, a clear explanation of what it does, and a realistic spreadsheet table demonstrating exact inputs and expected outputs.

Is my spreadsheet formula or business data sent to any cloud server?

Never. All parsing, validation, and explanation logic executes 100% locally inside your web browser using client-side JavaScript. Your confidential financial numbers and cell formulas never leave your device.

Which versions of Excel and Google Sheets are supported?

Our formulas and explanations cover all versions of Microsoft Excel (Excel 365, Excel 2024, 2021, 2019, 2016) as well as Google Sheets, LibreOffice Calc, and Apple Numbers.

NEED TO CONVERT SPREADSHEETS?

Convert Excel & CSV workbooks to PDF

Turn your Excel workbooks, sheets, and CSV files into clean, paginated PDF documents with 100% in-browser privacy.

Open Excel to PDF