Download free Excel cheat sheet (shortcuts)

📥 Download Excel Cheat Sheet
Ultimate Excel Formula Cheat Sheet | Excel Toolkit

Excel Formula Cheat Sheet

The ultimate reference guide to master Excel functions, from simple calculations to advanced data analysis.

Math & Arithmetic Functions

FunctionDescriptionSyntax / Example
SUMAdds all numbers in a range of cells.=SUM(A1:A5)
SUMIFSums the cells specified by a given condition.=SUMIF(A1:A10, ">50")
SUMIFSAdds cells that meet multiple criteria.=SUMIFS(C2:C10, A2:A10, "East", B2:B10, ">500")
AVERAGEReturns the average of its arguments.=AVERAGE(A1:A10)
AVERAGEIFReturns the average of all the cells in a range that meet a given criterion.=AVERAGEIF(B2:B10, ">70")
AVERAGEIFSFinds the average of cells that meet multiple criteria.=AVERAGEIFS(C2:C10, A2:A10, "West")
MINReturns the minimum value in a list of arguments.=MIN(A1:A10)
MAXReturns the maximum value in a list of arguments.=MAX(A1:A10)
PRODUCTMultiplies all the numbers given as arguments.=PRODUCT(A1:A5)
QUOTIENTReturns the integer portion of a division.=QUOTIENT(A1, B1)
MODReturns the remainder after a number is divided by a divisor.=MOD(A1, B1)
ROUNDRounds a number to a specified number of digits.=ROUND(A1, 2)
ROUNDUPRounds a number up, away from zero.=ROUNDUP(A1, 0)
ROUNDDOWNRounds a number down, toward zero.=ROUNDDOWN(A1, 0)
INTRounds a number down to the nearest integer.=INT(A1)

Text Functions

FunctionDescriptionSyntax / Example
CONCATCombines the text from multiple ranges and/or strings.=CONCAT(A1, " ", B1)
CONCATENATEJoins two or more text strings into one string.=CONCATENATE(A1, B1)
TEXTJOINCombines text from multiple ranges/strings, with a specified delimiter.=TEXTJOIN(", ", TRUE, A1:A5)
LEFTReturns the first character(s) in a text string.=LEFT(A1, 5)
RIGHTReturns the last character(s) in a text string.=RIGHT(A1, 3)
MIDReturns characters from a text string, starting at the specified position.=MID(A1, 2, 4)
LENReturns the number of characters in a text string.=LEN(A1)
LOWERConverts all letters in a text string to lowercase.=LOWER(A1)
UPPERConverts all letters in a text string to uppercase.=UPPER(A1)
PROPERCapitalizes the first letter in each word of a text string.=PROPER(A1)
TRIMRemoves all spaces from text except for single spaces between words.=TRIM(A1)
CLEANRemoves all non-printable characters from text.=CLEAN(A1)
FINDFinds one text string within another text string (case-sensitive).=FIND("D", A1)
REPLACEReplaces part of a text string with a different text string.=REPLACE(A1, 1, 3, "New")
SUBSTITUTESubstitutes new text for old text in a text string.=SUBSTITUTE(A1, "2023", "2024")

Logical Functions

FunctionDescriptionSyntax / Example
IFReturns one value if a condition is true and another if false.=IF(A1 > 50, "Pass", "Fail")
IFERRORReturns a value you specify if a formula evaluates to an error.=IFERROR(A1/B1, "Error")
IFNAReturns the value you specify if the expression resolves to #N/A.=IFNA(VLOOKUP(A1, B:C, 2, 0), "Not Found")
ANDReturns TRUE if all its arguments are TRUE.=AND(A1 > 10, B1 < 5)
ORReturns TRUE if any argument is TRUE.=OR(A1 = "Red", A1 = "Blue")
NOTReverses the logic of its argument.=NOT(A1 > 5)
IFSChecks multiple conditions and returns a value for the first TRUE condition.=IFS(A1 > 90, "A", A1 > 80, "B")
SWITCHEvaluates an expression against a list of values and returns the match.=SWITCH(A1, 1, "Mon", 2, "Tue")

Lookup & Reference Functions

FunctionDescriptionSyntax / Example
VLOOKUPSearches for a value in the leftmost column of a table.=VLOOKUP(A2, D2:F10, 2, FALSE)
HLOOKUPSearches for a value in the top row of a table.=HLOOKUP(A1, A1:F2, 2, FALSE)
XLOOKUPModern lookup; searches a range for a match and returns corresponding item.=XLOOKUP(A2, A:A, B:B)
LOOKUPLooks up values in a vector or array.=LOOKUP(10, A1:A10, B1:B10)
INDEXReturns a value or reference from within a table or range.=INDEX(A1:C10, 3, 2)
MATCHReturns the relative position of an item in a range.=MATCH("Apples", A1:A10, 0)
OFFSETReturns a reference offset from a starting cell or range.=OFFSET(A1, 2, 1)
TRANSPOSEFlips the orientation of a range (rows to columns or vice versa).{=TRANSPOSE(A1:B5)}
INDIRECTReturns the reference specified by a text string.=INDIRECT(A1)
CHOOSEChooses a value from a list based on an index number.=CHOOSE(2, "First", "Second")

Date & Time Functions

FunctionDescriptionSyntax / Example
TODAYReturns the current date.=TODAY()
NOWReturns the current date and time.=NOW()
DATEReturns the serial number for a specific date.=DATE(2024, 1, 1)
DATEDIFCalculates the difference between two dates.=DATEDIF(A1, B1, "Y")
YEAR / MONTH / DAYExtracts the specific part of a date.=YEAR(A1), =MONTH(A1)
HOUR / MIN / SECExtracts the specific part of a time.=HOUR(A1), =MINUTE(A1)
WEEKDAYConverts a serial number to a day of the week.=WEEKDAY(A1)
WORKDAYReturns the date before or after a number of workdays.=WORKDAY(A1, 10)
NETWORKDAYSReturns the number of whole workdays between two dates.=NETWORKDAYS(A1, B1)

Statistical Functions

FunctionDescriptionSyntax / Example
COUNTCounts cells with numbers.=COUNT(A1:A10)
COUNTACounts non-empty cells.=COUNTA(A1:A10)
COUNTBLANKCounts empty cells in a range.=COUNTBLANK(A1:A10)
COUNTIFCounts cells that meet a single criterion.=COUNTIF(A1:A10, "Yes")
COUNTIFSCounts cells that meet multiple criteria.=COUNTIFS(A2:A10, "East", B2:B10, ">50")
MEDIANReturns the median of the given numbers.=MEDIAN(A1:A10)
MODEReturns the most common value.=MODE(A1:A10)
STDEV.P/SCalculates standard deviation (Population or Sample).=STDEV.P(A1:A10)
VAR.P/SCalculates variance (Population or Sample).=VAR.P(A1:A10)

Financial Functions

FunctionDescriptionSyntax / Example
PMTCalculates the payment for a loan.=PMT(rate, nper, pv)
IPMT/PPMTCalculates interest/principal portion of a payment.=IPMT(...), =PPMT(...)
FV/PVReturns future or present value of an investment.=FV(...), =PV(...)
NPVReturns the net present value of an investment.=NPV(rate, values)
IRRReturns the internal rate of return.=IRR(A1:A10)
RATEReturns the interest rate per period of an annuity.=RATE(nper, pmt, pv)

Common Excel Error Codes

ErrorMeaningSolution
#DIV/0!Division by zero or an empty cell.Replace 0 with a value or use IFERROR.
#VALUE!Invalid input type (e.g., text where a number is expected).Clean and convert text to numbers.
#REF!Reference is no longer valid (e.g., deleted cell).Update formula reference or undo deletion.
#NAME?Excel doesn't recognize text (often a typo).Check spelling of function or named range.
#N/AData is not available (common in lookups).Verify data existence or use IFNA.
#NUM!Formula contains invalid numeric data.Check for impossible calculations.
#NULL!Incorrect range syntax (e.g., space instead of colon).Correct the range separators.