Excel & Google Sheets formula generators
Pick a function to see its syntax, worked examples, and common mistakes, or describe your task in plain English and get the formula written for you.
Open the formula generatorVLOOKUP formula generator
Look up a value in the first column of a table and return a match from another column.
XLOOKUP formula generator
The modern lookup: search any column, return any column, with a built-in not-found value.
INDEX MATCH formula generator
A flexible two-function lookup that works left-to-right, right-to-left, and on two criteria.
SUMIF / SUMIFS formula generator
Add up only the cells that meet one or several conditions.
COUNTIF / COUNTIFS formula generator
Count the cells that match one or several conditions.
AVERAGEIF / AVERAGEIFS formula generator
Average only the values that meet one or several conditions.
IF formula generator
Return different results depending on a condition, including nested and multi-condition logic.
IFERROR formula generator
Replace #N/A, #DIV/0! and other errors with a clean fallback value.
Pivot table formula generator (GETPIVOTDATA)
Pull a specific number out of a pivot table with GETPIVOTDATA.
Date formula generator
Calculate days between dates, add months, find weekdays, and build deadlines.
CONCATENATE / TEXTJOIN formula generator
Join text from several cells into one, with or without a separator.
LEFT / RIGHT / MID formula generator
Extract part of a text string from the start, the end, or the middle.
ROUND formula generator
Round numbers to decimals, whole numbers, tens, or hundreds — up, down, or to nearest.
RANK formula generator
Rank a value against a list, in ascending or descending order.
UNIQUE formula generator
Return a de-duplicated list of values from a range.
SUMPRODUCT formula generator
Multiply ranges together and sum the result — weighted averages and multi-condition totals.
Formulas for common tasks
Not sure which function you need? Start from what you are trying to do.
VLOOKUP With Multiple Criteria
Look up a value that must match two or more conditions at once.
Sum by Month in Excel and Google Sheets
Total the values that fall inside a given month.
Calculate Age From Birth Date
Turn a date of birth into an age in years and months.
Percentage Change Formula
Work out how much a number grew or shrank, as a percentage.
Running Total (Cumulative Sum) Formula
Add up values row by row to get a cumulative total.
Find Duplicates Formula
Flag repeated values in a column or across two lists.
MAXIFS and MINIFS: Max or Min With a Condition
Find the highest or lowest value that meets a condition.
Percentage of Total Formula
Show what share of the total each row or category makes up.
Split Text by Delimiter Formula
Break text into separate cells at a comma, space, or other character.
Add Leading Zeros in Excel and Google Sheets
Pad numbers with zeros so codes and IDs keep a fixed length.
Sum Visible Cells Only (Filtered Rows)
Total only the rows that remain after a filter.
IF Cell Is Blank Formula
Do something only when a cell is empty, or only when it is not.
Count Words in a Cell Formula
Count the words in one cell or a whole column of text.
Profit Margin and Markup Formulas
Work out margin, markup, and the price needed for a target margin.
CAGR Formula for Excel and Google Sheets
Find the steady yearly growth rate between a start and an end value.
Count Unique Values in Excel
Count how many different values a column contains.
Split First and Last Name in Excel
Separate a full name into first name and last name columns.
Count Cells That Contain Text in Excel
Count the cells that hold any text or a specific word.
Get the Last Value in a Column in Excel
Return the most recent entry at the bottom of a growing list.
Weighted Average Formula in Excel
Average values where some count more than others.
Compare Two Columns in Excel
Find which values appear in both lists and which are missing.
Remove Extra Spaces in Excel
Clean leading, trailing and repeated spaces out of imported text.
Convert Text to Number in Excel
Turn numbers stored as text into values you can sum and sort.
Fix a formula error
What each error code means, why it appears, and the formula that gets rid of it.
How to Fix the #N/A Error in Excel
Find out why a lookup returns #N/A and fix or replace the error.
How to Fix the #REF! Error in Excel
Repair formulas that point to cells, columns or sheets that no longer exist.
How to Fix the #VALUE! Error in Excel
Fix calculations that fail because a cell holds text instead of a number or date.
How to Fix the #DIV/0! Error in Excel
Stop division formulas from showing an error when the divisor is zero or blank.
How to Fix the #NAME? Error in Excel
Fix formulas that contain a name Excel does not recognize.
How to Fix the #SPILL! Error in Excel
Clear the way for dynamic array formulas such as FILTER, UNIQUE and SORT.
How to Fix the #NUM! Error in Excel
Fix formulas whose numeric input is invalid or whose result is out of range.