Excel Cheat Sheet

Search formulas, shortcuts, error fixes, how-tos and format codes. Tap the i to see what something is for, and Copy to paste it into your sheet.

Advertisement

232 entries

SUMBasicsAdd numbers or a range.

Syntax=SUM(number1, [number2], ...)
Example=SUM(B2:B20)

AVERAGEBasicsMean of a range, ignoring text and blanks.

Syntax=AVERAGE(range)
Example=AVERAGE(C2:C50)

COUNT / COUNTABasicsCOUNT counts numbers. COUNTA counts non-empty cells.

Syntax=COUNTA(range)
Example=COUNTA(A2:A100)

MAX / MINBasicsLargest or smallest value in a range.

Syntax=MAX(range)
Example=MAX(D2:D40)

ROUNDBasicsRound to a set number of decimals. Use negatives to round to tens or hundreds.

Syntax=ROUND(number, digits)
Example=ROUND(B2*1.2, 2)

ABSBasicsAbsolute value, dropping the minus sign.

Syntax=ABS(number)
Example=ABS(B2-C2)

RANDBETWEENBasicsRandom whole number between two values. Recalculates on every change.

Syntax=RANDBETWEEN(bottom, top)
Example=RANDBETWEEN(1, 100)

IFLogicReturn one value if a test is true and another if false.

Syntax=IF(test, if_true, if_false)
Example=IF(B2>=50, "Pass", "Fail")

IFSLogicCheck several conditions in order without nesting IFs.

Syntax=IFS(test1, value1, test2, value2, ...)
Example=IFS(B2>=90,"A", B2>=80,"B", TRUE,"C")

AND / ORLogicCombine tests. AND needs all true, OR needs any.

Syntax=AND(test1, test2)
Example=IF(AND(B2>10, C2<5), "Yes", "No")

IFERRORLogicReplace any error with a value of your choice.

Syntax=IFERROR(value, value_if_error)
Example=IFERROR(VLOOKUP(A2, F:G, 2, 0), "Not found")

SWITCHLogicMatch one value against a list of cases.

Syntax=SWITCH(value, case1, result1, ..., [default])
Example=SWITCH(A2, 1,"Low", 2,"Mid", 3,"High", "Other")

VLOOKUPLookupFind a value in the first column and return a value from the same row. Last argument 0 means exact match.

Syntax=VLOOKUP(lookup, table, col_index, 0)
Example=VLOOKUP(A2, $F$2:$H$100, 3, 0)

XLOOKUPLookupModern lookup that works in any direction. Excel 2021 and 365.

Syntax=XLOOKUP(lookup, lookup_range, return_range, [if_not_found])
Example=XLOOKUP(A2, F:F, H:H, "Not found")

INDEX + MATCHLookupFlexible lookup that works in every version and survives column changes.

Syntax=INDEX(return_range, MATCH(lookup, lookup_range, 0))
Example=INDEX(H:H, MATCH(A2, F:F, 0))

HLOOKUPLookupLike VLOOKUP but searches across the top row.

Syntax=HLOOKUP(lookup, table, row_index, 0)
Example=HLOOKUP("Q2", A1:E5, 3, 0)

MATCHLookupPosition of a value within a range.

Syntax=MATCH(lookup, range, 0)
Example=MATCH("Apple", A:A, 0)

INDEXLookupReturn the value at a row and column of a range.

Syntax=INDEX(range, row, [col])
Example=INDEX(A1:C10, 3, 2)

CHOOSELookupPick a value from a list by position number.

Syntax=CHOOSE(index, value1, value2, ...)
Example=CHOOSE(WEEKDAY(A2,2), "Mon","Tue","Wed","Thu","Fri","Sat","Sun")

SUMIFConditional mathAdd cells that meet one condition.

Syntax=SUMIF(range, criteria, [sum_range])
Example=SUMIF(A:A, "East", C:C)

SUMIFSConditional mathAdd cells that meet several conditions.

Syntax=SUMIFS(sum_range, range1, crit1, range2, crit2)
Example=SUMIFS(D:D, A:A, "East", B:B, ">="&DATE(2026,1,1))

COUNTIFConditional mathCount cells that meet one condition.

Syntax=COUNTIF(range, criteria)
Example=COUNTIF(B:B, ">100")

COUNTIFSConditional mathCount cells that meet several conditions.

Syntax=COUNTIFS(range1, crit1, range2, crit2)
Example=COUNTIFS(A:A, "East", C:C, "Paid")

AVERAGEIFConditional mathAverage cells that meet a condition.

Syntax=AVERAGEIF(range, criteria, [avg_range])
Example=AVERAGEIF(A:A, "East", C:C)

SUMPRODUCTConditional mathMultiply ranges together and add the results. Handy for weighted averages.

Syntax=SUMPRODUCT(array1, array2)
Example=SUMPRODUCT(B2:B10, C2:C10)/SUM(C2:C10)

CONCAT / TEXTJOINTextJoin text. TEXTJOIN adds a separator and can skip blanks.

Syntax=TEXTJOIN(delimiter, ignore_empty, range)
Example=TEXTJOIN(", ", TRUE, A2:A10)

LEFT / RIGHT / MIDTextExtract characters from the start, end or middle of text.

Syntax=MID(text, start, length)
Example=LEFT(A2, 3)

LENTextCount characters in a cell.

Syntax=LEN(text)
Example=LEN(A2)

TRIMTextRemove extra spaces. Fixes many failed lookups.

Syntax=TRIM(text)
Example=TRIM(A2)

UPPER / LOWER / PROPERTextChange text case. PROPER capitalizes each word.

Syntax=PROPER(text)
Example=PROPER(A2)

SUBSTITUTETextReplace specific text inside a string.

Syntax=SUBSTITUTE(text, old, new)
Example=SUBSTITUTE(A2, "-", "")

FIND / SEARCHTextPosition of text inside text. FIND is case-sensitive.

Syntax=FIND(find_text, within_text)
Example=FIND("@", A2)

Get domain from emailTextCombine RIGHT, LEN and FIND to take the text after the @.

Syntax=RIGHT(A2, LEN(A2)-FIND("@",A2))
Example=RIGHT(A2, LEN(A2)-FIND("@",A2))

TEXTTextFormat a number or date as text.

Syntax=TEXT(value, format)
Example=TEXT(A2, "dd mmm yyyy")

TEXTSPLITTextSplit text into columns by a delimiter. Microsoft 365.

Syntax=TEXTSPLIT(text, col_delimiter)
Example=TEXTSPLIT(A2, ",")

TODAY / NOWDatesCurrent date, or current date and time.

Syntax=TODAY()
Example=TODAY()

DATEDIFDatesWhole years, months or days between two dates.

Syntax=DATEDIF(start, end, "Y")
Example=DATEDIF(A2, TODAY(), "Y")

NETWORKDAYSDatesWorking days between two dates, with optional holidays.

Syntax=NETWORKDAYS(start, end, [holidays])
Example=NETWORKDAYS(A2, B2, F2:F10)

EOMONTHDatesLast day of a month, offset by a number of months.

Syntax=EOMONTH(date, months)
Example=EOMONTH(TODAY(), 0)

EDATEDatesSame day, a number of months later or earlier.

Syntax=EDATE(date, months)
Example=EDATE(A2, 6)

WEEKDAYDatesDay of the week as a number. Use 2 to make Monday 1.

Syntax=WEEKDAY(date, 2)
Example=WEEKDAY(A2, 2)

DATEDatesBuild a date from year, month and day.

Syntax=DATE(year, month, day)
Example=DATE(2026, 12, 25)

PMTFinanceRegular loan payment. Divide rate by 12 and multiply years by 12 for monthly.

Syntax=PMT(rate, nper, pv)
Example=PMT(6.5%/12, 30*12, -300000)

FVFinanceFuture value of regular savings at a fixed rate.

Syntax=FV(rate, nper, pmt, [pv])
Example=FV(5%/12, 10*12, -200)

NPVFinanceNet present value of future cash flows.

Syntax=NPV(rate, value1, value2, ...)
Example=NPV(8%, B2:B6) + B1

IRRFinanceInternal rate of return for a series of cash flows.

Syntax=IRR(values)
Example=IRR(B1:B6)

Percent changeFinanceGrowth between an old and a new value.

Syntax=(new-old)/old
Example=(C2-B2)/B2

CAGRFinanceCompound annual growth rate over several years.

Syntax=(end/start)^(1/years)-1
Example=(D2/B2)^(1/5)-1

FILTERDynamic arraysReturn only rows that meet a condition. Excel 2021 and 365.

Syntax=FILTER(range, condition, [if_empty])
Example=FILTER(A2:C100, B2:B100>50, "None")

UNIQUEDynamic arraysList distinct values, removing duplicates.

Syntax=UNIQUE(range)
Example=UNIQUE(A2:A100)

SORTDynamic arraysSort a range with a formula. Order 1 is ascending, -1 descending.

Syntax=SORT(range, [col], [order])
Example=SORT(A2:C100, 2, -1)

SORTBYDynamic arraysSort one range by the values in another.

Syntax=SORTBY(range, by_range, order)
Example=SORTBY(A2:A20, B2:B20, -1)

SEQUENCEDynamic arraysGenerate a series of numbers.

Syntax=SEQUENCE(rows, [cols], [start], [step])
Example=SEQUENCE(12, 1, 1, 1)

LETDynamic arraysName a value inside a formula so you only calculate it once.

Syntax=LET(name, value, calculation)
Example=LET(x, SUM(A:A), x/COUNT(A:A))

Remove duplicates, keep firstCleaningFlag repeats in a helper column, then filter on TRUE.

Syntax=COUNTIF($A$2:A2, A2)>1
Example=COUNTIF($A$2:A2, A2)>1

Remove non-printing charactersCleaningStrip hidden characters from pasted web data.

Syntax=CLEAN(TRIM(text))
Example=CLEAN(TRIM(A2))

Convert text to numberCleaningTurn numbers stored as text into real numbers.

Syntax=VALUE(text)
Example=VALUE(A2)

Count unique valuesCleaningNumber of distinct entries in a range.

Syntax=SUMPRODUCT(1/COUNTIF(range, range))
Example=SUMPRODUCT(1/COUNTIF(A2:A100, A2:A100))

Rank a valueCleaningPosition of a value within a list.

Syntax=RANK(number, range, [order])
Example=RANK(B2, $B$2:$B$50, 0)

MEDIANStatisticsMiddle value of a list. Less affected by outliers than the average.

Syntax=MEDIAN(range)
Example=MEDIAN(B2:B100)

MODE.SNGLStatisticsMost frequently occurring number in a list.

Syntax=MODE.SNGL(range)
Example=MODE.SNGL(B2:B100)

STDEV.SStatisticsSample standard deviation: how spread out your values are.

Syntax=STDEV.S(range)
Example=STDEV.S(B2:B100)

VAR.SStatisticsSample variance of a data set.

Syntax=VAR.S(range)
Example=VAR.S(B2:B100)

PERCENTILE.INCStatisticsValue below which a given share of the data falls, such as the top 10%.

Syntax=PERCENTILE.INC(range, k)
Example=PERCENTILE.INC(B2:B100, 0.9)

QUARTILE.INCStatisticsQuartile of a data set (0 to 4). Useful for box plots and grading.

Syntax=QUARTILE.INC(range, quart)
Example=QUARTILE.INC(B2:B100, 3)

LARGE / SMALLStatisticsNth largest or smallest value. Good for top 3 or bottom 5 lists.

Syntax=LARGE(range, n)
Example=LARGE(B2:B100, 3)

MAXIFS / MINIFSStatisticsLargest or smallest value among rows that meet conditions.

Syntax=MAXIFS(max_range, range1, crit1)
Example=MAXIFS(C:C, A:A, "East")

AVERAGEIFSStatisticsAverage of cells that meet several conditions.

Syntax=AVERAGEIFS(avg_range, range1, crit1, range2, crit2)
Example=AVERAGEIFS(D:D, A:A, "East", B:B, "Paid")

COUNTBLANKStatisticsCount empty cells. Handy for spotting missing data.

Syntax=COUNTBLANK(range)
Example=COUNTBLANK(A2:A100)

CORRELStatisticsCorrelation between two data sets, from -1 to 1.

Syntax=CORREL(array1, array2)
Example=CORREL(B2:B50, C2:C50)

SLOPE / INTERCEPTStatisticsSlope and starting point of a trend line through your data.

Syntax=SLOPE(known_y, known_x)
Example=SLOPE(B2:B20, A2:A20)

FORECAST.LINEARStatisticsPredict a future value from a straight-line trend.

Syntax=FORECAST.LINEAR(x, known_y, known_x)
Example=FORECAST.LINEAR(2027, B2:B10, A2:A10)

RSQStatisticsHow well a trend line fits the data (R squared, 0 to 1).

Syntax=RSQ(known_y, known_x)
Example=RSQ(B2:B20, A2:A20)

GEOMEANStatisticsGeometric mean. Better than the average for growth rates.

Syntax=GEOMEAN(range)
Example=GEOMEAN(B2:B10)

TRIMMEANStatisticsAverage after dropping a share of the highest and lowest values.

Syntax=TRIMMEAN(range, percent)
Example=TRIMMEAN(B2:B50, 0.1)

MODMathRemainder after division. Use it for every Nth row or even/odd checks.

Syntax=MOD(number, divisor)
Example=MOD(A2, 2)

INT / TRUNCMathINT rounds down to a whole number. TRUNC just cuts off decimals.

Syntax=INT(number)
Example=TRUNC(A2, 1)

ROUNDUP / ROUNDDOWNMathAlways round away from or toward zero.

Syntax=ROUNDUP(number, digits)
Example=ROUNDUP(A2, 0)

MROUNDMathRound to the nearest multiple, such as 0.05 or 15 minutes.

Syntax=MROUND(number, multiple)
Example=MROUND(A2, 0.05)

CEILING / FLOORMathRound up or down to a multiple. Good for pricing and packaging.

Syntax=CEILING(number, significance)
Example=CEILING(A2, 5)

POWER / SQRTMathRaise to a power or take a square root.

Syntax=POWER(number, power)
Example=SQRT(A2)

EXP / LN / LOGMathExponential and logarithm functions for growth and scaling.

Syntax=LOG(number, [base])
Example=LOG(A2, 10)

PRODUCTMathMultiply all numbers in a range.

Syntax=PRODUCT(range)
Example=PRODUCT(B2:B6)

QUOTIENTMathWhole-number part of a division.

Syntax=QUOTIENT(numerator, denominator)
Example=QUOTIENT(17, 5)

SIGNMathReturns 1, 0 or -1 depending on whether a number is positive, zero or negative.

Syntax=SIGN(number)
Example=SIGN(A2)

FACT / COMBINMathFactorial, and number of combinations of items.

Syntax=COMBIN(number, chosen)
Example=COMBIN(10, 3)

GCD / LCMMathGreatest common divisor or least common multiple.

Syntax=GCD(number1, number2)
Example=GCD(12, 18)

SUBTOTALMathSum, average or count that ignores rows hidden by a filter. Use 109 for SUM.

Syntax=SUBTOTAL(function_num, range)
Example=SUBTOTAL(109, B2:B100)

AGGREGATEMathLike SUBTOTAL but can also skip errors. Use 9 for SUM and 6 to ignore errors.

Syntax=AGGREGATE(function, options, range)
Example=AGGREGATE(9, 6, B2:B100)

RAND / RANDARRAYMathRandom decimal, or a whole grid of random numbers.

Syntax=RANDARRAY(rows, cols, min, max, whole)
Example=RANDARRAY(5, 1, 1, 100, TRUE)

PIMathThe constant pi, for circle calculations.

Syntax=PI()
Example=PI()*A2^2

OFFSETReferenceReturn a range a set number of rows and columns away from a start cell.

Syntax=OFFSET(start, rows, cols, [height], [width])
Example=SUM(OFFSET(A1, 1, 0, 5, 1))

INDIRECTReferenceTurn text into a cell reference. Useful for sheet names in dropdowns.

Syntax=INDIRECT(ref_text)
Example=INDIRECT("'"&A1&"'!B2")

XMATCHReferenceModern MATCH with exact match by default and search from the end.

Syntax=XMATCH(lookup, range, [match_mode], [search_mode])
Example=XMATCH(A2, F:F)

ROW / COLUMNReferenceRow or column number of a cell. Good for numbering and offsets.

Syntax=ROW(cell)
Example=ROW()-1

ROWS / COLUMNSReferenceCount how many rows or columns a range has.

Syntax=ROWS(range)
Example=ROWS(A2:A100)

TRANSPOSEReferenceFlip rows into columns and columns into rows.

Syntax=TRANSPOSE(range)
Example=TRANSPOSE(A1:A5)

ADDRESSReferenceBuild a cell address as text from row and column numbers.

Syntax=ADDRESS(row, col)
Example=ADDRESS(2, 3)

LOOKUPReferenceOlder simple lookup. Also finds the last number in a column.

Syntax=LOOKUP(2, 1/(A:A<>""), A:A)
Example=LOOKUP(2, 1/(A:A<>""), A:A)

HYPERLINKReferenceCreate a clickable link from a formula.

Syntax=HYPERLINK(url, [label])
Example=HYPERLINK("https://example.com", "Open")

FORMULATEXTReferenceShow another cell’s formula as text, for documentation.

Syntax=FORMULATEXT(cell)
Example=FORMULATEXT(B2)

TAKE / DROPDynamic arraysKeep or remove the first or last rows or columns of a range. Microsoft 365.

Syntax=TAKE(array, rows, [cols])
Example=TAKE(SORT(A2:B100, 2, -1), 5)

VSTACK / HSTACKDynamic arraysStack ranges on top of or beside each other into one.

Syntax=VSTACK(range1, range2)
Example=VSTACK(Sheet1!A2:C20, Sheet2!A2:C20)

CHOOSECOLSDynamic arraysReturn only the columns you pick from a range.

Syntax=CHOOSECOLS(array, col1, col2)
Example=CHOOSECOLS(A2:F100, 1, 4)

TOCOL / TOROWDynamic arraysFlatten a grid into a single column or row.

Syntax=TOCOL(array, [ignore], [scan_by_col])
Example=TOCOL(A2:C10, 1)

LAMBDADynamic arraysCreate your own reusable function from a formula.

Syntax=LAMBDA(parameter, calculation)
Example=LAMBDA(x, x*1.2)(A2)

MAPDynamic arraysApply a LAMBDA to every item in a range.

Syntax=MAP(array, LAMBDA(x, calc))
Example=MAP(A2:A10, LAMBDA(x, x*1.2))

REDUCE / SCANDynamic arraysCombine values into a total (REDUCE) or a running total (SCAN).

Syntax=SCAN(0, array, LAMBDA(a, x, a+x))
Example=SCAN(0, B2:B10, LAMBDA(a, x, a+x))

BYROW / BYCOLDynamic arraysRun a LAMBDA on each row or column, such as a total per row.

Syntax=BYROW(array, LAMBDA(r, calc))
Example=BYROW(B2:E10, LAMBDA(r, SUM(r)))

ISBLANKInfoTRUE if a cell is empty.

Syntax=ISBLANK(cell)
Example=IF(ISBLANK(A2), "Missing", "OK")

ISNUMBER / ISTEXTInfoCheck what type of value a cell holds.

Syntax=ISNUMBER(value)
Example=ISNUMBER(A2)

ISERROR / ISNAInfoTRUE if a cell is any error, or specifically #N/A.

Syntax=ISERROR(value)
Example=ISNA(VLOOKUP(A2, F:G, 2, 0))

ISEVEN / ISODDInfoTRUE for even or odd numbers. Good for banded rows.

Syntax=ISEVEN(number)
Example=ISEVEN(ROW())

ISFORMULAInfoTRUE if a cell contains a formula, to audit sheets.

Syntax=ISFORMULA(cell)
Example=ISFORMULA(B2)

NOT / XORLogicNOT reverses a test. XOR is true when exactly one test is true.

Syntax=XOR(test1, test2)
Example=XOR(A2>5, B2>5)

IFNALogicReplace only #N/A errors, leaving other errors visible.

Syntax=IFNA(value, value_if_na)
Example=IFNA(XLOOKUP(A2, F:F, G:G), "Not listed")

CONCATENATETextOlder way to join text. The & operator does the same.

Syntax=CONCATENATE(text1, text2)
Example=A2&" "&B2

REPTTextRepeat text a number of times. Makes in-cell bar charts.

Syntax=REPT(text, times)
Example=REPT("|", B2/10)

EXACTTextCase-sensitive comparison of two texts.

Syntax=EXACT(text1, text2)
Example=EXACT(A2, B2)

REPLACETextReplace characters at a set position in text.

Syntax=REPLACE(text, start, length, new_text)
Example=REPLACE(A2, 1, 3, "ABC")

TEXTBEFORE / TEXTAFTERTextGet the text before or after a delimiter. Microsoft 365.

Syntax=TEXTBEFORE(text, delimiter)
Example=TEXTAFTER(A2, "@")

CHAR / CODETextConvert between a character and its number code. CHAR(10) is a line break.

Syntax=CHAR(number)
Example=A2&CHAR(10)&B2

NUMBERVALUETextConvert text to a number using your own decimal and thousand separators.

Syntax=NUMBERVALUE(text, decimal_sep, group_sep)
Example=NUMBERVALUE(A2, ",", ".")

DOLLAR / FIXEDTextFormat a number as currency or with fixed decimals, as text.

Syntax=DOLLAR(number, decimals)
Example=DOLLAR(A2, 2)

YEAR / MONTH / DAYDatesPull one part out of a date.

Syntax=YEAR(date)
Example=MONTH(A2)

TIME / HOUR / MINUTEDatesBuild a time from parts, or read parts of a time.

Syntax=TIME(hour, minute, second)
Example=HOUR(A2)

WEEKNUM / ISOWEEKNUMDatesWeek number of the year. ISOWEEKNUM follows the ISO standard.

Syntax=ISOWEEKNUM(date)
Example=ISOWEEKNUM(A2)

WORKDAYDatesDate a number of working days from a start date.

Syntax=WORKDAY(start, days, [holidays])
Example=WORKDAY(A2, 10, F2:F10)

NETWORKDAYS.INTLDatesWorking days with custom weekends, such as Friday and Saturday.

Syntax=NETWORKDAYS.INTL(start, end, weekend)
Example=NETWORKDAYS.INTL(A2, B2, 7)

DAYSDatesNumber of days between two dates.

Syntax=DAYS(end, start)
Example=DAYS(B2, A2)

YEARFRACDatesFraction of a year between two dates, for ages and interest.

Syntax=YEARFRAC(start, end)
Example=YEARFRAC(A2, TODAY())

DATEVALUE / TIMEVALUEDatesTurn text that looks like a date or time into a real one.

Syntax=DATEVALUE(text)
Example=DATEVALUE("2026-12-25")

PVFinancePresent value: what a series of payments is worth today.

Syntax=PV(rate, nper, pmt)
Example=PV(5%/12, 60, -400)

NPERFinanceHow many payment periods it takes to pay off a loan or reach a goal.

Syntax=NPER(rate, pmt, pv)
Example=NPER(6%/12, -500, 20000)

RATEFinanceInterest rate per period for a loan or investment.

Syntax=RATE(nper, pmt, pv)
Example=RATE(60, -400, 20000)*12

IPMT / PPMTFinanceInterest part and principal part of a loan payment in a given period.

Syntax=IPMT(rate, per, nper, pv)
Example=PPMT(6%/12, 1, 60, -20000)

CUMIPMT / CUMPRINCFinanceTotal interest or principal paid between two periods.

Syntax=CUMIPMT(rate, nper, pv, start, end, 0)
Example=CUMIPMT(6%/12, 360, 300000, 1, 12, 0)

XNPV / XIRRFinanceNPV and IRR for cash flows on irregular dates.

Syntax=XIRR(values, dates)
Example=XIRR(B2:B8, A2:A8)

MIRRFinanceIRR with separate finance and reinvestment rates.

Syntax=MIRR(values, finance_rate, reinvest_rate)
Example=MIRR(B1:B6, 8%, 6%)

SLN / DB / DDB / SYDFinanceAsset depreciation methods: straight-line, declining balance and sum-of-years.

Syntax=SLN(cost, salvage, life)
Example=SLN(10000, 1000, 5)

EFFECT / NOMINALFinanceConvert between nominal and effective annual interest rates.

Syntax=EFFECT(nominal_rate, periods)
Example=EFFECT(6%, 12)

RRIFinanceEquivalent growth rate over a number of periods.

Syntax=RRI(nper, pv, fv)
Example=RRI(5, 1000, 1500)

PDURATIONFinancePeriods needed for an investment to reach a target value.

Syntax=PDURATION(rate, pv, fv)
Example=PDURATION(7%, 1000, 2000)

CONVERTConversionConvert between units like km to miles or kg to lb.

Syntax=CONVERT(number, from_unit, to_unit)
Example=CONVERT(A2, "km", "mi")

DEC2BIN / BIN2DECConversionConvert between decimal and binary. HEX versions work the same way.

Syntax=DEC2BIN(number)
Example=DEC2BIN(10)

DEC2HEX / HEX2DECConversionConvert between decimal and hexadecimal.

Syntax=DEC2HEX(number)
Example=HEX2DEC("FF")

ROMAN / ARABICConversionConvert numbers to Roman numerals and back.

Syntax=ROMAN(number)
Example=ROMAN(2026)

Copy, cut, pasteShortcutsDuplicate or move cell contents.

KeysWin: Ctrl+C / Ctrl+X / Ctrl+V | Mac: ⌘C / ⌘X / ⌘V

Paste specialShortcutsPaste only values, formats or formulas.

KeysWin: Ctrl+Alt+V | Mac: ⌃⌘V

Paste values onlyShortcutsStrip formulas and formatting when pasting.

KeysWin: Ctrl+Shift+V | Mac: ⌘⇧V

Undo / redoShortcutsReverse or repeat your last action.

KeysWin: Ctrl+Z / Ctrl+Y | Mac: ⌘Z / ⌘Y

Repeat last actionShortcutsApply the last formatting or edit again.

KeysWin: F4 or Ctrl+Y | Mac: ⌘Y

Toggle absolute referenceShortcutsCycle $A$1, A$1, $A1 and A1 while editing a formula.

KeysWin: F4 | Mac: ⌘T

Edit active cellShortcutsEdit a cell without double-clicking.

KeysWin: F2 | Mac: ⌃U

Show formulasShortcutsDisplay all formulas instead of results.

KeysWin: Ctrl+` | Mac: ⌃`

AutoSumShortcutsInsert a SUM for the cells above or to the left.

KeysWin: Alt+= | Mac: ⌘⇧T

Fill down / rightShortcutsCopy the cell above or to the left into your selection.

KeysWin: Ctrl+D / Ctrl+R | Mac: ⌃D / ⌃R

Insert today’s dateShortcutsEnter the current date as a fixed value.

KeysWin: Ctrl+; | Mac: ⌃;

Insert current timeShortcutsEnter the current time as a fixed value.

KeysWin: Ctrl+Shift+; | Mac: ⌘;

New line in a cellShortcutsStart a new line inside one cell.

KeysWin: Alt+Enter | Mac: ⌃⌥Enter

Insert row or columnShortcutsAdd cells above or to the left of the selection.

KeysWin: Ctrl+Shift++ | Mac: ⌃I

Delete row or columnShortcutsRemove the selected cells, rows or columns.

KeysWin: Ctrl+- | Mac: ⌘-

Select entire column / rowShortcutsSelect the whole column or row of the active cell.

KeysWin: Ctrl+Space / Shift+Space | Mac: ⌃Space / ⇧Space

Select all / current regionShortcutsSelect the whole sheet, or the data block around the cell.

KeysWin: Ctrl+A | Mac: ⌘A

Jump to edge of dataShortcutsMove to the last filled cell in a direction.

KeysWin: Ctrl+Arrow | Mac: ⌘Arrow

Select to edge of dataShortcutsExtend selection to the edge of the data block.

KeysWin: Ctrl+Shift+Arrow | Mac: ⌘⇧Arrow

Go to cell A1ShortcutsJump to the top-left of the sheet.

KeysWin: Ctrl+Home | Mac: ⌘Fn←

Go to a cell or named rangeShortcutsJump to any reference or name.

KeysWin: Ctrl+G or F5 | Mac: ⌃G

Next / previous sheetShortcutsSwitch worksheet tabs.

KeysWin: Ctrl+PgDn / Ctrl+PgUp | Mac: ⌥→ / ⌥←

Find / ReplaceShortcutsSearch for text, or replace it across the sheet.

KeysWin: Ctrl+F / Ctrl+H | Mac: ⌘F / ⌃H

Create a tableShortcutsTurn a range into a filterable table.

KeysWin: Ctrl+T | Mac: ⌃T

Toggle filtersShortcutsTurn filter arrows on or off.

KeysWin: Ctrl+Shift+L | Mac: ⌘⇧F

Format cellsShortcutsOpen the Format Cells dialog.

KeysWin: Ctrl+1 | Mac: ⌘1

Bold / italic / underlineShortcutsBasic text formatting.

KeysWin: Ctrl+B / I / U | Mac: ⌘B / I / U

Currency / percent / date formatShortcutsQuick number formats.

KeysWin: Ctrl+Shift+4 / 5 / 3 | Mac: ⌃⇧4 / 5 / 3

Hide row / columnShortcutsHide the selected rows or columns.

KeysWin: Ctrl+9 / Ctrl+0 | Mac: ⌘9 / ⌘0

Add a commentShortcutsInsert a note or comment on the selected cell.

KeysWin: Shift+F2 | Mac: ⇧F2

Save / Save AsShortcutsSave the workbook.

KeysWin: Ctrl+S / F12 | Mac: ⌘S / ⌘⇧S

Flash FillShortcutsFill a column by pattern after typing an example.

KeysWin: Ctrl+E | Mac: ⌃E

Create a pivot tableHow-toSummarize large data by category without formulas.

StepsClick in data > Insert > PivotTable > OK. Drag fields to Rows, Columns and Values.

Refresh a pivot tableHow-toUpdate a pivot after the source data changes.

StepsRight-click the pivot > Refresh (Alt+F5).

Group dates in a pivotHow-toRoll dates up into months, quarters or years.

StepsRight-click a date in the pivot > Group > pick Months, Quarters, Years.

Add a slicerHow-toClick-to-filter buttons for pivots and tables.

StepsSelect pivot or table > Insert > Slicer > pick a field.

Highlight duplicatesHow-toMark repeated values with a color.

StepsSelect range > Home > Conditional Formatting > Highlight Cells Rules > Duplicate Values.

Highlight with a formulaHow-toFormat whole rows based on a rule.

StepsSelect range > Conditional Formatting > New Rule > Use a formula, e.g. =$C2>100 > set format.

Color scales and data barsHow-toShow high and low values visually inside cells.

StepsSelect range > Conditional Formatting > Color Scales or Data Bars.

Create a dropdown listHow-toLimit a cell to a list of choices.

StepsSelect cells > Data > Data Validation > Allow: List > Source: =$F$2:$F$10 or Yes,No,Maybe.

Dependent dropdownHow-toA second list that changes with the first.

StepsName each sub-list after its parent item, then Data Validation > List > Source: =INDIRECT(A2).

Remove duplicatesHow-toDelete repeated rows.

StepsSelect data > Data > Remove Duplicates > pick columns > OK.

Split text into columnsHow-toSeparate full names, CSV values or dates.

StepsSelect column > Data > Text to Columns > Delimited > choose comma, space or other.

Freeze panesHow-toKeep headers visible while scrolling.

StepsView > Freeze Panes > Freeze Top Row (or select a cell and choose Freeze Panes).

Name a rangeHow-toUse readable names instead of cell addresses.

StepsSelect range > type a name in the Name Box (left of the formula bar) > Enter.

Convert range to a tableHow-toAuto-expanding ranges, banding and structured references.

StepsSelect data > Ctrl+T > tick My table has headers.

Goal SeekHow-toFind the input that gives a target result.

StepsData > What-If Analysis > Goal Seek > set cell, to value, by changing cell.

Import and clean dataHow-toLoad CSVs and web data with repeatable steps.

StepsData > Get Data > From Text/CSV (or From Web) > Transform Data > Close & Load.

Add sparklinesHow-toTiny trend charts inside a cell.

StepsSelect cell > Insert > Sparklines > Line or Column > pick data range.

Fit sheet to one pageHow-toPrint without cutting off columns.

StepsPage Layout > Width: 1 page, Height: Automatic. Set Print Area to limit what prints.

Protect a sheetHow-toLock formulas so they cannot be changed.

StepsReview > Protect Sheet > set a password > choose what users can do.

Add subtotalsHow-toInsert subtotal rows for each group.

StepsSort by group > Data > Subtotal > pick group column, function and columns.

Column chartChartsCompare values across categories.

Best forBest for comparing a few categories side by side.

Bar chartChartsCompare categories with long labels or rankings.

Best forBest for rankings and long category names.

Line chartChartsShow change over time.

Best forBest for trends across dates or time periods.

Pie chartChartsShow parts of a whole.

Best forBest with 2 to 5 slices that add up to 100%.

Scatter chartChartsShow how two numbers relate.

Best forBest for finding correlation and outliers.

Combo chartChartsMix a column and a line, such as revenue and margin.

Best forInsert > Combo Chart > put the second series on a secondary axis.

Waterfall chartChartsShow how steps add up to a total.

Best forBest for profit bridges. Insert > Waterfall.

HistogramChartsShow how values are distributed in bins.

Best forInsert > Statistic Chart > Histogram.

#REF!ErrorsA referenced cell was deleted or the reference is invalid.

FixUndo the delete, or re-point the formula to a valid cell or range.

#VALUE!ErrorsWrong data type, such as adding text to a number.

FixCheck for text in number cells or stray spaces. Use VALUE or TRIM to clean.

#DIV/0!ErrorsDividing by zero or an empty cell.

Fix=IF(B2=0, 0, A2/B2) or =IFERROR(A2/B2, 0)

#NAME?ErrorsExcel does not recognize a function or name.

FixFix typos, add missing quotes around text, or check your Excel version supports the function.

#N/AErrorsA lookup found no match.

FixCheck spelling and spaces, then wrap with IFNA or use the if_not_found argument of XLOOKUP.

#NUM!ErrorsAn invalid number, or a result too large or small.

FixCheck arguments, such as a negative number in SQRT, or give RATE and IRR a guess.

#NULL!ErrorsRange operator misused, usually a missing colon or comma.

FixChange =SUM(A1 A5) to =SUM(A1:A5).

#SPILL!ErrorsA dynamic array cannot fill its results because cells are blocked.

FixClear the cells below or beside the formula, or remove merged cells.

#CALC!ErrorsA dynamic array calculation returned an empty array.

FixAdd an if_empty argument to FILTER, or check your criteria.

#####ErrorsThe column is too narrow, or a date or time is negative.

FixDouble-click the column border to widen it. Check for negative dates.

Circular referenceErrorsA formula refers to its own cell, directly or indirectly.

FixFormulas > Error Checking > Circular References, then change the formula.

Thousands with 2 decimalsFormatsFormat cells > Custom.

Code#,##0.00

Currency with negatives in redFormatsFormat cells > Custom.

Code$#,##0.00;[Red]-$#,##0.00

PercentageFormatsShows 0.256 as 25.6%.

Code0.0%

Thousands (K)FormatsShows 12500 as 12.5K.

Code0.0,"K"

Millions (M)FormatsShows 2500000 as 2.5M.

Code0.0,,"M"

Leading zerosFormatsKeep zeros in ZIP codes or IDs, here 5 digits.

Code00000

Long dateFormatsShows Friday, 25 December 2026.

Codedddd, d mmmm yyyy

Short date (day first)FormatsShows 25/12/2026.

Codedd/mm/yyyy

Month and yearFormatsShows Dec 2026.

Codemmm yyyy

24-hour timeFormatsShows 14:30.

Codehh:mm

Hours over 24FormatsDisplay total hours such as 37:30 for durations.

Code[h]:mm

Phone numberFormatsDisplay 10 digits as (555) 123-4567.

Code(###) ###-####

Hide zerosFormatsShow nothing for zero values.

Code0;-0;;@

Add text after numbersFormatsShows 25 as 25 units.

Code0 "units"

Excel formula questions, answered

What is the difference between VLOOKUP and XLOOKUP?

XLOOKUP can look in any direction, defaults to an exact match, and returns a custom value when nothing is found. VLOOKUP only looks right and needs a column number, which breaks when columns move.

How do I lock a cell reference?

Put a dollar sign before the column letter, the row number, or both, like $A$1. Press F4 while editing a formula to cycle through the options.

Why does my formula show #N/A?

A lookup could not find the value. Check for extra spaces or numbers stored as text, or wrap the formula in IFERROR to show something friendlier.

Which formulas should I learn first?

SUM, IF, COUNTIF, SUMIFS and XLOOKUP cover most daily spreadsheet work. Add INDEX/MATCH and TEXT once those feel natural.

Advertisement