Skip to main content

Formula examples

Excel and Google Sheets Formula Pages

Copy Excel and Google Sheets formulas for lookups, SUMIFS, COUNTIFS, dates, text cleanup, duplicates, sample data, and troubleshooting.

Copy a common formula first

Use these starting formulas when you already know the task. Open the linked formula page for sample data, expected result, alternatives, and troubleshooting.

VLOOKUP exact match

=VLOOKUP(F2, A2:D100, 4, FALSE)

Choose a formula by task

Pick a formula by task. Every page includes both Excel and Google Sheets versions, sample data, and common errors.

Lookup formulas

VLOOKUP, XLOOKUP, INDEX MATCH, other-sheet lookups, and multiple-criteria lookup patterns.

Conditional formulas

SUMIF, SUMIFS, COUNTIF, COUNTIFS, AVERAGEIF, AVERAGEIFS, and date-boundary report formulas.

Date formulas

Days between dates, first and last day of month, age, workdays, and due-date calculations.

Text formulas

Split text, extract words, combine cells, remove spaces, and extract text around delimiters.

Cleanup formulas

Find duplicates, count unique values, remove blank rows, and flag duplicate rows.

VLOOKUP Exact Match Formula

Copy a VLOOKUP exact-match formula for Excel and Google Sheets with FALSE, sample data, column-index guidance, #N/A fixes, and safer lookup alternatives.

FormulaLookup
Open formula

XLOOKUP Exact Match Formula

Copy XLOOKUP exact match formulas for Excel and Google Sheets with not-found fallback text, sample data, returned results, and #N/A troubleshooting.

FormulaLookup
Open formula

INDEX MATCH Formula

Copy INDEX MATCH exact lookup formulas for Excel and Google Sheets with sample data, returned values, range alignment notes, and lookup alternatives.

FormulaLookup
Open formula

XLOOKUP Not Found Formula

Copy XLOOKUP formulas that return friendly not-found messages, with Excel and Google Sheets examples, fallback text, sample results, and #N/A fixes.

FormulaLookup
Open formula

XLOOKUP Left Lookup Formula

Copy XLOOKUP left lookup formulas that return values from a column to the left, with sample data, exact match examples, and VLOOKUP alternatives.

FormulaLookup
Open formula

VLOOKUP From Another Sheet

Copy VLOOKUP formulas for another worksheet in Excel and Google Sheets, with sheet-name syntax, exact-match examples, sample data, and common #N/A fixes.

FormulaLookup
Open formula

COUNTIF Formula

Copy COUNTIF formulas that count rows matching one condition, with Excel and Google Sheets syntax, sample data, text criteria, blanks, and troubleshooting.

FormulaConditional
Open formula

AVERAGEIF Formula

Copy AVERAGEIF formulas that average numeric values for one condition, with sample data, criteria examples, blank handling, and error checks.

FormulaConditional
Open formula

AVERAGEIFS Formula

Copy AVERAGEIFS formulas that average values by multiple criteria, with sample data, date and text criteria, range alignment, and error fixes.

FormulaConditional
Open formula

SUMIFS by Month Formula

Copy a SUMIFS by month formula for Excel and Google Sheets. Includes month-cell, current-month, and extra-criteria variations.

FormulaConditional
Open formula

COUNTIFS Between Dates Formula

Copy COUNTIFS formulas to count rows between dates in Excel and Google Sheets with inclusive boundaries, timestamp-safe criteria, sample counts, and date fixes.

FormulaConditional
Open formula

COUNTIFS by Month Formula

Copy COUNTIFS by month formulas that count rows in a selected month, with date-cell criteria, current-month options, sample counts, and boundary fixes.

FormulaConditional
Open formula

COUNTIF Nonblank Formula

Copy COUNTIF nonblank formulas for Excel and Google Sheets, with sample data, blank-looking cell notes, COUNTA alternatives, and cleanup tips.

FormulaConditional
Open formula

Count Blank Cells Formula

Copy COUNTBLANK formulas for finding missing values in Excel and Google Sheets, with sample data, blank-looking cell notes, and cleanup checks.

FormulaConditional
Open formula

Days Between Dates Formula

Copy days-between-dates formulas for Excel and Google Sheets with elapsed days, inclusive counting, sample results, time-value notes, and alternatives.

FormulaDate
Open formula

Add Days to Date Formula

Copy formulas that add days to a start date in Excel and Google Sheets, with sample data, negative-day examples, date serial notes, and error fixes.

FormulaDate
Open formula

First Day of Month Formula

Copy first-day-of-month formulas for Excel and Google Sheets, with date-cell examples, current-month options, sample results, and date text fixes.

FormulaDate
Open formula

Calculate Age Formula

Copy DATEDIF age formulas for Excel and Google Sheets, calculate completed years, test birthday edge cases, and fix dates stored as text with sample data.

FormulaDate
Open formula

Workdays Between Dates Formula

Copy NETWORKDAYS formulas for Excel and Google Sheets to count business days between dates, exclude weekends and holidays, and verify results with sample data.

FormulaDate
Open formula

Next Business Day Formula

Copy WORKDAY formulas that return the next business day after a date, with weekend handling, holiday ranges, sample results, and date text fixes.

FormulaDate
Open formula

Extract First Word Formula

Copy formulas that extract the first word from a cell in Excel and Google Sheets, with sample text, blank handling, delimiter notes, and cleanup tips.

FormulaText
Open formula

Extract Last Word Formula

Copy formulas that extract the last word from a text cell, with Excel and Google Sheets versions, sample data, extra-space handling, and alternatives.

FormulaText
Open formula

Combine Cells Formula

Copy TEXTJOIN formulas that combine cells while skipping blanks, with Excel and Google Sheets examples, delimiter choices, sample output, and cleanup tips.

FormulaText
Open formula

Remove Extra Spaces Formula

Copy TRIM formulas that remove leading, trailing, and repeated spaces in Excel and Google Sheets, with sample data, nonbreaking-space notes, and fixes.

FormulaText
Open formula

Proper Case Names Formula

Copy PROPER and TRIM formulas for cleaning names or labels in Excel and Google Sheets, with sample output, spacing fixes, and capitalization notes.

FormulaText
Open formula

Remove Line Breaks Formula

Copy formulas that replace line breaks with spaces in Excel and Google Sheets, with CLEAN/SUBSTITUTE examples, sample output, and import cleanup tips.

FormulaText
Open formula

Find Duplicates Formula

Copy formulas that return duplicate values from a list, with Excel and Google Sheets examples, sample data, blank handling, and cleanup notes.

FormulaCleanup
Open formula

Count Duplicates Formula

Copy formulas that count extra duplicate entries in a list, with Excel and Google Sheets examples, sample data, blank handling, and occurrence notes.

FormulaCleanup
Open formula

Remove Blank Rows Formula

Copy FILTER formulas that return only rows with a nonblank key column, with Excel and Google Sheets syntax, sample output, and no-match handling.

FormulaCleanup
Open formula

Unique List Formula

Copy UNIQUE formulas that return nonblank unique values in Excel and Google Sheets, with sample output, blank handling, sorting options, and alternatives.

FormulaCleanup
Open formula