Functions and Formulas Overview
The functions that matter in finance: syntax, real examples, and the mistakes to avoid. Search by name or filter by category.
Most requested: XLOOKUP, SUMIFS, FILTER, LET, UNIQUE.
Showing 59 of 59 functions
BYROW
BYROW(array, lambda(row))
One formula, a result per row
Dynamic Arrays & Modern ExcelCHOOSE
CHOOSE(index_num, value1, [value2], ...)
Switch base, upside and downside cases from one cell
Lookup & ReferenceCHOOSECOLS
CHOOSECOLS(array, col_num1, [col_num2], ...)
Grab just the columns you need from an extract
Lookup & ReferenceCOUNTIFS
COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Prove every ledger row landed in one bucket
Conditional AggregationCUMIPMT
CUMIPMT(rate, nper, pv, start_period, end_period, type)
Annual or fiscal-year interest from a monthly loan in one cell
Financial & DebtDAYS
DAYS(end_date, start_date)
Prorate contracts by day and age receivables
Dates & Fiscal CalendarsDDB
DDB(cost, salvage, life, period, [factor])
Accelerated depreciation, and the balance it leaves behind
Financial & DebtEDATE
EDATE(start_date, months)
Contract end dates, renewals and maturities from a start date
Dates & Fiscal CalendarsEOMONTH
EOMONTH(start_date, months)
Build period headers that roll with one start date
Dates & Fiscal CalendarsFILTER
FILTER(array, include, [if_empty])
Pull every row that meets a condition, live
Lookup & ReferenceFORECAST.ETS
FORECAST.ETS(target_date, values, timeline, [seasonality], [data_completion], [aggregation])
A seasonal baseline to challenge the bottom-up forecast
Forecasting & StatisticsFORECAST.LINEAR
FORECAST.LINEAR(x, known_ys, known_xs)
Split fixed and variable cost with a straight-line fit
Forecasting & StatisticsGROUPBY
GROUPBY(row_fields, values, function, [field_headers], [total_depth], [sort_order], [filter_array], [field_relationship])
A PivotTable in one formula that never needs a refresh
Conditional AggregationGROWTH
GROWTH(known_ys, [known_xs], [new_xs], [const])
Fit a compound growth curve to every year of history
Forecasting & StatisticsHAS
HAS(array, value)
Check whether a value is anywhere in a list
Lookup & ReferenceIFERROR
IFERROR(value, value_if_error)
Trap one known error without hiding a broken model
Logical & Error HandlingIMPORTTEXT
IMPORTTEXT(path, [delimiter], [skip_rows], [take_rows], [encoding], [locale])
Load a CSV with a formula, no Power Query
Text & Data CleanupINDEX
INDEX(array, row_num, [column_num])
Read the cell at a row and column, or build a range end
Lookup & ReferenceINDIRECT
INDIRECT(ref_text, [a1])
Pull from a tab named in a cell, at an audit cost
Lookup & ReferenceIPMT
IPMT(rate, per, nper, pv, [fv], [type])
Split interest out of a loan payment for the income statement
Financial & DebtIRR
IRR(values, [guess])
The return on periodic cash flows, and when not to trust it
Financial & DebtLAMBDA
LAMBDA([parameter1, parameter2, ...], calculation)
Build your own Excel function
Dynamic Arrays & Modern ExcelLET
LET(name1, name_value1, [name2, name_value2], ..., calculation)
Name the pieces of a long formula
Dynamic Arrays & Modern ExcelMAP
MAP(array1, [array2, ...], lambda)
Apply logic to every cell in a range
Dynamic Arrays & Modern ExcelMATCH
MATCH(lookup_value, lookup_array, [match_type])
Find the position of a value, and always write the 0
Lookup & ReferenceMIRR
MIRR(values, finance_rate, reinvest_rate)
A project return with the reinvestment rate stated, not assumed
Financial & DebtNPV
NPV(rate, value1, [value2], ...)
Discount periodic cash flows with period zero kept outside
Financial & DebtOFFSET
OFFSET(reference, rows, cols, [height], [width])
Shift and resize a range, at a recalculation cost
Lookup & ReferencePERCENTOF
PERCENTOF(data_subset, data_all)
Mix and share-of-total in one step
Conditional AggregationPIVOTBY
PIVOTBY(row_fields, col_fields, values, function, [field_headers], [row_total_depth], [row_sort_order], [col_total_depth], [col_sort_order], [filter_array], [relative_to])
Lines down, months across, from one formula
Conditional AggregationPMT
PMT(rate, nper, pv, [fv], [type])
Level debt service for a loan, with signs and period rates right
Financial & DebtPPMT
PPMT(rate, per, nper, pv, [fv], [type])
Principal repaid per period, and the balance check it gives you
Financial & DebtREDUCE
REDUCE([initial_value], array, lambda(accumulator, value))
Collapse a list into one answer, step by step
Dynamic Arrays & Modern ExcelREGEXEXTRACT
REGEXEXTRACT(text, pattern, [return_mode], [case_sensitivity])
Pull invoice numbers, dates, or IDs from messy text
Text & Data CleanupREGEXREPLACE
REGEXREPLACE(text, pattern, replacement, [occurrence], [case_sensitivity])
Clean any pattern out of text
Text & Data CleanupREGEXTEST
REGEXTEST(text, pattern, [case_sensitivity])
Validate codes and formats in one test
Text & Data CleanupROUND
ROUND(number, num_digits)
Round at the output or where a contract says so, never mid-calc
Rounding & PrecisionRRI
RRI(nper, pv, fv)
CAGR in one function, with the period count done right
Financial & DebtSCAN
SCAN([initial_value], array, lambda(accumulator, value))
A running balance in one formula
Dynamic Arrays & Modern ExcelSEQUENCE
SEQUENCE(rows, [columns], [start], [step])
Generate a 60-month timeline in one cell
Dynamic Arrays & Modern ExcelSLN
SLN(cost, salvage, life)
Straight-line depreciation that stops when the asset is done
Financial & DebtSORTBY
SORTBY(array, by_array1, [sort_order1], [by_array2, sort_order2], ...)
Rank anything by any column
Dynamic Arrays & Modern ExcelSUMIFS
SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Pull GL actuals into a monthly P&L grid
Conditional AggregationSUMPRODUCT
SUMPRODUCT(array1, [array2], [array3], ...)
Conditional sums SUMIFS can't express
Conditional AggregationSWITCH
SWITCH(expression, value1, result1, [value2, result2], ..., [default])
Map a short list of codes or cases without nested IFs
Logical & Error HandlingTAKE
TAKE(array, rows, [columns])
Last 12 months, always
Dynamic Arrays & Modern ExcelTEXT
TEXT(value, format_text)
Turn a number or date into a label, never into a total
Text & Data CleanupTEXTBEFORE
TEXTBEFORE(text, delimiter, [instance_num], [match_mode], [match_end], [if_not_found])
Grab text before or after a delimiter
Text & Data CleanupTEXTSPLIT
TEXTSPLIT(text, col_delimiter, [row_delimiter], [ignore_empty], [match_mode], [pad_with])
Split "100-4200-Sales" into its parts
Text & Data CleanupTOCOL
TOCOL(array, [ignore], [scan_by_column])
Flatten a grid into one column
Dynamic Arrays & Modern ExcelTREND
TREND(known_ys, [known_xs], [new_xs], [const])
Project a run-rate along a straight line, a row at a time
Forecasting & StatisticsTRIMRANGE
TRIMRANGE(range, [trim_rows], [trim_cols])
Ranges that grow with the data, no OFFSET
Dynamic Arrays & Modern ExcelUNIQUE
UNIQUE(array, [by_col], [exactly_once])
A list of accounts that updates itself
Dynamic Arrays & Modern ExcelVSTACK
VSTACK(array1, [array2], ...)
Combine entity tabs into one table
Dynamic Arrays & Modern ExcelXIRR
XIRR(values, dates, [guess])
Annualized return on deal and fund cash flows by date
Financial & DebtXLOOKUP
XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found], [match_mode], [search_mode])
Map every GL row to its statement line
Lookup & ReferenceXMATCH
XMATCH(lookup_value, lookup_array, [match_mode], [search_mode])
Find which column holds this month
Lookup & ReferenceXNPV
XNPV(rate, values, dates)
Value deal cash flows on the dates they actually land
Financial & DebtYEARFRAC
YEARFRAC(start_date, end_date, [basis])
Accrue interest on the day count the agreement specifies
Dates & Fiscal Calendars