ExcelFormulas logoExcelFormulas.
Ask AI
Free Online Excel Formula Reference & Builder

Excel formulas, made simple.

Build, test, and master spreadsheet formulas with real-time interactive sandboxes, verified parameter guides, and visual formula builders for Microsoft Excel and Google Sheets.

Browse by Classification

Formula Categories.

Explore 85+ verified Excel and Google Sheets functions structured by functional purpose, with live interactive sandboxes and syntax walkthroughs.

View Complete Formula Directory
7 formulasView all →

Perform exact and approximate table searches, index two-way coordinates, and retrieve dynamic data.

Featured Functions:
9 formulasView all →

Build conditional decision trees, test multi-criteria logic, and safely handle error fallbacks.

Featured Functions:
13 formulasView all →

Clean whitespace, extract character positions, split and combine strings, and normalize casing.

Featured Functions:
11 formulasView all →

Sum ranges based on single or multiple criteria, round decimals, and calculate exponential values.

Featured Functions:
10 formulasView all →

Calculate weighted averages, medians, count populated cells, and rank numerical values.

Featured Functions:
9 formulasView all →

Calculate working business days, evaluate elapsed time, and manipulate serial calendar dates.

Featured Functions:
6 formulasView all →

Leverage modern Excel 365 calculation engines that spill filtered and sorted arrays automatically.

Featured Functions:
4 formulasView all →

Calculate monthly loan payments, investment compound growth, and net present value.

Featured Functions:
Core Principles

Spreadsheet formula fundamentals.

Every calculation in Microsoft Excel and Google Sheets begins with an equal sign (=). This tells the spreadsheet calculation engine to evaluate an expression rather than treating the entry as raw text or numbers. Understanding how the calculation engine evaluates references, arrays, and formats makes building complex models straightforward and error-free.

1. Cell referencing: Relative vs. Absolute ($A$1 vs A1)

When you copy or autofill a formula across cells, standard coordinates adjust relative to the new position. Adding a dollar sign ($) locks that specific coordinate dimension:

  • A1 (Relative): Both column and row change when copied across rows or columns.
  • $A$1 (Absolute): Both column and row stay fixed. Essential for fixed lookup tables, tax rates, and global constants.
  • A$1 (Mixed): Row 1 is locked; the column adjusts horizontally.
  • $A1 (Mixed): Column A is locked; the row adjusts vertically.

2. Modern Dynamic Arrays vs. Legacy CSE Formulas

In modern Excel (Microsoft 365, Excel 2021) and Google Sheets, formulas that return multiple values automatically spill into neighboring cells. Functions like FILTER, UNIQUE, and SORT return full arrays without requiring legacy Ctrl+Shift+Enter keystrokes. If an adjacent non-empty cell blocks the spill path, Excel displays a #SPILL! error until the destination range is cleared.

3. Understanding Numbers, Percentages, and Dates

Spreadsheets treat percentages, dates, and times as standard decimal numbers under the hood. A percentage is stored as a fraction: entering 25% stores 0.25, which cell formatting renders with the percent symbol. Dates are serialized integers representing days since January 1, 1900. Because dates are regular numbers, calculating elapsed time is as simple as subtracting dates directly, or using NETWORKDAYS for business working days.

4. Diagnosing Common Spreadsheet Errors

#N/A

Lookup value not found. Verify lookup key matches exactly, or supply a default with IFERROR or XLOOKUP's [if_not_found] argument.

#VALUE!

Incompatible data type supplied (e.g. attempting arithmetic on text). Use VALUE or clean invisible spaces with TRIM.

#REF!

Invalid cell coordinate, typically caused by deleted rows or columns referenced in the formula.

#DIV/0!

Division by zero or an empty cell. Guard calculations using =IF(denominator=0, 0, numerator/denominator).

5. Regional Delimiters: Comma vs. Semicolon

Excel syntax automatically adapts to operating system regional settings. In English regions (US, UK, India, Canada), commas separate function arguments (=SUM(A1, B1)). In European and Latin American regions where a comma serves as the decimal separator, Excel uses semicolons (=SUM(A1; B1)). The formula generator on this site allows you to toggle delimiters before copying, and the cheat sheet provides full syntax reference.

Frequently asked questions

Excel formula questions, answered.

How do I create a formula in Excel?

Select a cell, type an equal sign (=), enter the function name, and supply your arguments inside parentheses. For example, =SUM(A2:A10) calculates the total for that range. Every formula guide on this site includes an interactive builder that constructs and verifies syntax for you.

How do I calculate percentages in Excel?

Excel does not require a dedicated percentage function; use standard division. To find what share a part is of a total, write =B2/C2. To calculate percentage variance or growth between periods, write =(B2-A2)/A2. Set the cell number format to Percentage (%) so the decimal displays as 25.0%.

How do I lock a cell reference with dollar signs ($)?

Add dollar signs before the column letter and row number to freeze references. $A$2 freezes both column and row (absolute reference), A$2 freezes only the row, and $A2 freezes only the column. Press F4 (or Cmd+T on Mac) while typing a reference to cycle through locking modes quickly.

How do I subtract numbers in Excel?

Excel does not have a SUBTRACT function. Use the minus operator directly: =A2-B2 subtracts cell B2 from A2. To subtract multiple cells from a starting total, combine them with SUM: =A2-SUM(B2:B10).

How does VLOOKUP work, and should I use XLOOKUP instead?

VLOOKUP searches the leftmost column of a range and retrieves a value from a specified column index: =VLOOKUP(lookup_value, table_array, col_index, FALSE). In modern Excel (365 and 2021) and Google Sheets, prefer =XLOOKUP(lookup_value, lookup_array, return_array). XLOOKUP defaults to exact match, searches in any direction, and never breaks when inserting table columns.

How do I sum cells based on multiple criteria?

Use =SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2]). Unlike the older SUMIF function, SUMIFS places the sum range first. For example: =SUMIFS(D2:D100, A2:A100, "East", B2:B100, ">500") sums values in column D where column A is "East" and column B exceeds 500.

How do I write an IF statement with multiple conditions?

Basic conditional logic uses =IF(logical_test, value_if_true, value_if_false). To test multiple conditions simultaneously, wrap them in AND or OR: =IF(AND(A2>=70, B2>=70), "Pass", "Review"). For cascading tiered evaluations, use the modern =IFS(score>=90, "A", score>=80, "B", score>=70, "C", TRUE, "F").

How do I count cells that meet specific conditions?

Use =COUNTIF(range, criteria) for a single rule, or =COUNTIFS(range1, criteria1, range2, criteria2) for multiple rules. For example, =COUNTIFS(A2:A50, "Pending", B2:B50, "<"&TODAY()) counts overdue pending orders.

How do I combine text from multiple cells?

Use =TEXTJOIN(delimiter, ignore_empty, range) to merge ranges with a separator, such as =TEXTJOIN(", ", TRUE, A2:C2). You can also concatenate strings using the ampersand operator: =A2 & " " & B2.

What is the difference between AVERAGE, AVERAGEIF, and AVERAGEIFS?

AVERAGE computes the arithmetic mean of all numeric cells in a range, ignoring blank cells and text strings. AVERAGEIF filters by one condition, and AVERAGEIFS handles multiple criteria ranges simultaneously before computing the average.

How do I round numbers to specific decimal places or multiples?

Use =ROUND(number, num_digits) for standard math rounding (5 rounds up). Use =ROUNDUP or =ROUNDDOWN to force direction, or =MROUND(number, multiple) to round to nearest increments such as 0.05 or 5.

How do I clean up extra spaces and normalize messy text?

Use =TRIM(text) to remove leading, trailing, and repeated internal spaces. Nest with =PROPER(TRIM(A2)) or =LOWER(TRIM(A2)) to standardize capitalization simultaneously across imported data.

How do I calculate elapsed time or working days between dates?

Subtract dates directly for total calendar days: =B2-A2. For business days excluding weekends, use =NETWORKDAYS(start_date, end_date, [holidays]). To compute full years or months completed, use =DATEDIF(start_date, end_date, "Y") or =DATEDIF(start_date, end_date, "M").

Are the formulas, generator, and sandboxes free to use?

Yes. Every formula reference, visual builder, cheat sheet, and interactive sandbox is completely free and executes locally in your browser with zero registration or downloads.

Start building spreadsheet formulas.

Explore verified formulas with syntax guides, interactive sandbox spreadsheets, and copy-ready parameter builders.