Every Excel function you’ll use.
265 functions in plain English, with an example for each. Search by name, by what you want to do, or paste a formula.
Showing 265 of 265 functions
Start here
Our most used functions, each with a full lesson and a graded exercise.
2=SUMIFS(B2:B5,A2:A5,"<>West")→13,100Math and trigonometryXLOOKUP2021+Full lessonFinds a value in one column or row and returns the item in the same position from another. It replaces VLOOKUP and can look left.=XLOOKUP(A7,A2:A5,C2:C5)→"Cara"Lookup and referenceLookup and reference
Find a value in one place and bring back something from another.
23=ADDRESS(A2,B2)→"$C$5"Lookup and referenceAREASReturns the number of separate areas in a reference.Lookup and referenceCHOOSEFull lessonReturns one item from a list of values, picked by its position. Use it for scenario selectors, short lookups and mapping numbers to labels.=CHOOSE(2,"Low","Mid","High")→"Mid"Lookup and referenceCOLUMNFull lessonReturns the column number of a reference, or of the cell the formula is in. Use it to make a lookup formula that fills across.=COLUMN(D1)→4Lookup and referenceCOLUMNSFull lessonReturns the number of columns in a range or array, whether or not the cells are filled. Use it to count items across, average across a row or count the parts of split text.=COLUMNS(B1:E1)→4Lookup and referenceFORMULATEXTFull lessonReturns the formula in a cell as text, exactly as it appears in the formula bar. Use it to document a model or to show a formula beside its result.=FORMULATEXT(B2)→"=A2*1.2"Lookup and referenceGETPIVOTDATAread onlyReturns a value from a PivotTable.Lookup and referenceHLOOKUPFull lessonSearches the top row of a table for a value and returns the item from another row of the same column. It is VLOOKUP turned on its side.=HLOOKUP("Q3",B1:E5,3,FALSE)→The value in row 3 under th…Lookup and referenceHYPERLINKFull lessonCreates a clickable link in a cell. The cell shows your friendly text, or the link itself, and the link can be built from other cells.=HYPERLINK("https://example.com/o…→"Open order O-1001"Lookup and referenceIMAGE365read onlyPlaces an image from a web address in a cell.Lookup and referenceINDEXFull lessonReturns the value at a given row and column of a range. Paired with MATCH, it is the classic lookup that works in every version of Excel.=INDEX(C2:C5,3)→"Cara"Lookup and referenceINDIRECTFull lessonTurns text such as "B4" or "C2:C9" into a working reference. It is volatile and hard to audit, so use it sparingly.=INDIRECT("B"&4)→The value in B4Lookup and referenceLOOKUPFull lessonFinds the closest value at or below your lookup value in a sorted row or column and returns the item from the same position of another. It is the oldest lookup function.=LOOKUP(A9,A2:A6,B2:B6)→25Lookup and referenceMATCHFull lessonReturns the position of a value in a row or column. It is the partner of INDEX in the classic INDEX/MATCH lookup.=MATCH("West",A2:A5,0)→4Lookup and referenceOFFSETFull lessonReturns a reference that starts a set number of rows and columns from a cell and can be resized. It is volatile, so it recalculates constantly.=SUM(OFFSET(B2,0,0,3,1))→The total of B2:B4Lookup and referenceROWFull lessonReturns the row number of a reference, or of the cell the formula is in. Use it for automatic numbering and for building row-based formulas.=ROW(C5)→5Lookup and referenceROWSFull lessonReturns the number of rows in a range or array, whether or not the cells are filled. Use it to size a range, find the last item or count the results of a formula.=ROWS(A2:A9)→8Lookup and referenceTRANSPOSEFull lessonFlips a range so rows become columns and columns become rows. In current Excel the result spills and stays linked to the source.=TRANSPOSE(A2:A5)→a list, spilledLookup and referenceTRIMRANGE365read onlyRemoves empty rows and columns from the edges of a range.Lookup and referenceVLOOKUPFull lessonSearches the first column of a table for a value and returns the item from another column of the same row. It is in every version of Excel.=VLOOKUP(A7,A2:C5,3,FALSE)→"Cara"Lookup and referenceWEBSERVICEread onlyReturns data from a web service.Lookup and referenceXLOOKUP2021+Full lessonFinds a value in one column or row and returns the item in the same position from another. It replaces VLOOKUP and can look left.=XLOOKUP(A7,A2:A5,C2:C5)→"Cara"Lookup and referenceXMATCH2021+Full lessonReturns the position of a value in a row or column. It matches exactly by default and can search from the end, which makes it the modern MATCH.=XMATCH("West",A2:A5)→4Lookup and referenceLogical
Make decisions and handle errors.
11=AND(B4>5000,A4="East")→TRUELogicalFALSEReturns the logical value FALSE.LogicalIFFull lessonTests a condition and returns one value if it is true and another if it is false. It is the building block of most decision logic in a workbook.=IF(B4>5000,"Bonus","No bonus")→"Bonus"LogicalIFERRORFull lessonReturns a value you choose when a formula produces any error, and the formula's own result otherwise. Handy, but it hides mistakes as well as expected errors.=IFERROR(XLOOKUP(A7,A2:A5,B2:B5),…→0LogicalIFNAFull lessonReturns a value you choose only when a formula gives #N/A, and lets every other error show. It is the safer wrapper for lookups.=IFNA(XLOOKUP(A7,A2:A5,B2:B5),"No…→"Not found"LogicalIFS2019+Full lessonChecks a list of conditions in order and returns the result for the first one that is true. It replaces a stack of nested IFs.=IFS(B2>5000,"High",B2>3000,"Mid"…→"Mid"LogicalNOTFull lessonReverses a logical value: TRUE becomes FALSE and FALSE becomes TRUE. Use it to flip a test or to say "is not empty".=NOT(B5>3000)→TRUELogicalORFull lessonReturns TRUE when at least one condition you give it is true. Use it inside IF to accept any of several cases.=OR(A3="South",A3="West")→TRUELogicalSWITCH2019+Full lessonCompares one value with a list of options and returns the result for the first exact match, or a default if none match.=SWITCH(A2,"N","North","S","South…→"North" when A2 is "N"LogicalTRUEReturns the logical value TRUE.LogicalXORFull lessonReturns TRUE when an odd number of your conditions are true. With two conditions, it means one or the other but not both.=XOR(B2="Yes",C2="Yes")→TRUELogicalMath and trigonometry
Add, round, convert and total, including with conditions.
47=ABS(A2)→45.6Math and trigonometryAGGREGATEFull lessonRuns a calculation such as sum, average, large or median over a range, with options to skip errors, hidden rows and nested subtotals.=AGGREGATE(9,6,B2:B6)→8,455Math and trigonometryBASEConverts a number into text in another base, such as binary or hexadecimal.Math and trigonometryCEILINGRounds a number up to the nearest multiple of significance (older form of CEILING.MATH).Math and trigonometryCEILING.MATHFull lessonRounds a number up to the next multiple of a value you choose, such as 5, 15 or 0.25. By default it rounds up to a whole number.=CEILING.MATH(A2,25)→150Math and trigonometryCEILING.PRECISERounds a number up to a multiple of significance, whatever the signs.Math and trigonometryCOMBINReturns the number of ways to choose items from a set, ignoring order.Math and trigonometryCOSReturns the cosine of an angle in radians.Math and trigonometryDEGREESConverts radians to degrees.Math and trigonometryEVENRounds a number away from zero to the nearest even whole number.Math and trigonometryEXPFull lessonReturns e, about 2.71828, raised to a power. EXP is the tool for continuous growth and decay, and the inverse of LN.=EXP(A2)→1Math and trigonometryFACTReturns the factorial of a number (1 x 2 x 3 x …).Math and trigonometryFLOORRounds a number down to the nearest multiple of significance (older form of FLOOR.MATH).Math and trigonometryFLOOR.MATHFull lessonRounds a number down to the previous multiple of a value you choose, such as 10, 25 or 0.25. By default it rounds down to a whole number.=FLOOR.MATH(A2,10)→30Math and trigonometryFLOOR.PRECISERounds a number down to a multiple of significance, whatever the signs.Math and trigonometryGCDFull lessonReturns the greatest common divisor: the largest whole number that divides all the numbers you give it exactly.=GCD(A2,B2)→6Math and trigonometryINTFull lessonRounds a number down to the nearest whole number. Negative numbers move to the next lower integer, so -8.9 becomes -9.=INT(A2)→7Math and trigonometryLCMFull lessonReturns the least common multiple: the smallest positive whole number that all the numbers you give it divide into exactly.=LCM(A2,B2)→12Math and trigonometryLNFull lessonReturns the natural logarithm of a number: the power you raise e to in order to get it. LN undoes EXP.=LN(A2)→0Math and trigonometryLOGFull lessonReturns the logarithm of a number to a base you choose. With no base it uses 10, so LOG(1000) is 3.=LOG(A2)→3Math and trigonometryLOG10Returns the base-10 logarithm of a number.Math and trigonometryMODFull lessonReturns the remainder after dividing one number by another. The result has the same sign as the divisor.=MOD(A2,2)→1Math and trigonometryMROUNDFull lessonRounds a number to the nearest multiple you choose, such as 5, 0.05 or a pack size of 12.=MROUND(A2,5)→45Math and trigonometryODDRounds a number away from zero to the nearest odd whole number.Math and trigonometryPERCENTOF365Full lessonReturns the share a subset makes of a total: the sum of the subset divided by the sum of all the values.=PERCENTOF(B2,$B$2:$B$5)→0.4Math and trigonometryPIReturns pi to 15 digits, 3.14159265358979.Math and trigonometryPOWERFull lessonRaises a number to a power. POWER(2, 10) is 1,024. It does the same as the ^ operator.=POWER(A2,B2)→1,024Math and trigonometryPRODUCTFull lessonMultiplies all the numbers you give it, in cells, ranges or typed values. Text and blank cells in a range are ignored.=PRODUCT(A2:C2)→360Math and trigonometryQUOTIENTFull lessonReturns the whole-number part of a division and throws the remainder away. QUOTIENT(250, 48) is 5.=QUOTIENT(A2,B2)→5Math and trigonometryRADIANSConverts degrees to radians.Math and trigonometryRANDFull lessonReturns a random decimal from 0 up to, but not including, 1. It gives a new number every time the sheet recalculates.=INT(RAND())→0Math and trigonometryRANDBETWEENFull lessonReturns a random whole number between two numbers you choose, including both ends. It changes on every recalculation.=LET(n,RANDBETWEEN(1,6),AND(n>=1,…→TRUEMath and trigonometryROUNDFull lessonRounds a number to a set number of decimal places, or to tens, hundreds and thousands with a negative number. Halves round away from zero.=ROUND(A2,2)→19.46Math and trigonometryROUNDDOWNFull lessonRounds a number down, towards zero, to a set number of decimal places. It cuts off the extra digits without looking at them.=ROUNDDOWN(A2,0)→7Math and trigonometryROUNDUPFull lessonRounds a number up, away from zero, to a set number of decimal places. Any leftover decimal pushes the result up.=ROUNDUP(A2,0)→8Math and trigonometrySIGNFull lessonReturns 1 for a positive number, -1 for a negative number and 0 for zero. It tells you the direction, not the size.=SIGN(C2-B2)→1Math and trigonometrySINReturns the sine of an angle in radians.Math and trigonometrySQRTFull lessonReturns the square root of a number. SQRT(144) is 12. A negative number returns #NUM!.=SQRT(A2)→12Math and trigonometrySQRTPIReturns the square root of a number multiplied by pi.Math and trigonometrySUBTOTALFull lessonReturns a sum, average, count, maximum and more for a list, skipping other SUBTOTALs in the range and rows hidden by a filter.=SUBTOTAL(109,B2:B50)→The sum of the visible rows…Math and trigonometrySUMFull lessonAdds numbers, cells and ranges. Text and TRUE/FALSE inside a range are ignored.=SUM(B2:B5)→16,000Math and trigonometrySUMIFFull lessonAdds the cells that meet one condition, such as every sale in a region or every amount over a limit.=SUMIF(B2:B5,">3000")→13,100Math and trigonometrySUMIFSFull lessonAdds the cells in rows that meet every condition you set, such as region and product, or a date range and a minimum amount.=SUMIFS(B2:B5,A2:A5,"<>West")→13,100Math and trigonometrySUMPRODUCTFull lessonMultiplies matching items in two or more ranges and adds the results. Also counts and sums with calculated conditions.=SUMPRODUCT(B2:B5,C2:C5)→B2×C2 + B3×C3 + …Math and trigonometrySUMSQFull lessonReturns the sum of the squares of the numbers you give it. SUMSQ(3, 4) is 25. It is the building block for distances and error measures.=SUMSQ(A2,B2)→25Math and trigonometryTANReturns the tangent of an angle in radians.Math and trigonometryTRUNCFull lessonCuts off the decimal part of a number, or keeps a set number of decimals, without rounding. -8.9 becomes -8.=TRUNC(A2)→8Math and trigonometryStatistical
Averages, counts, ranks and spread.
54=AVERAGE(B2:B5)→4,000StatisticalAVERAGEAFull lessonReturns the average of values including text and logicals: text and FALSE in a range count as 0 and TRUE counts as 1.=AVERAGEA(B2:B5)→9StatisticalAVERAGEIFFull lessonAverages the numbers in a range that meet one condition, such as the average order value for one region.=AVERAGEIF(A2:A9,"East",C2:C9)→1,200StatisticalAVERAGEIFSFull lessonAverages the numbers in a range that meet two or more conditions at once, such as one region in one quarter.=AVERAGEIFS(B2:B5,B2:B5,">3000")→4,366.67StatisticalCORRELFull lessonReturns the correlation coefficient between two sets of numbers: a value from -1 to 1 showing how closely they move together.=ROUND(CORREL(B2:B6,C2:C6),3)→1StatisticalCOUNTFull lessonCounts how many cells in a range contain numbers, including dates. Text, blanks and errors are not counted.=COUNT(A2:B5)→4StatisticalCOUNTAFull lessonCounts the cells that are not empty, whether they hold numbers, text, errors or empty text returned by a formula.=COUNTA(A2:C5)→12StatisticalCOUNTBLANKFull lessonCounts the empty cells in a range, including cells where a formula returns empty text.=COUNTBLANK(C2:C5)→1StatisticalCOUNTIFFull lessonCounts the cells in a range that meet one condition, such as every ticket with the status Open.=COUNTIF(B2:B5,">3000")→3StatisticalCOUNTIFSFull lessonCounts the rows that meet two or more conditions at once, such as late orders from one warehouse.=COUNTIFS(B2:B5,">3000",A2:A5,"<>…→2StatisticalCOVARIANCE.PReturns the population covariance: the average product of paired deviations from each mean.StatisticalCOVARIANCE.SReturns the sample covariance: the average product of paired deviations, divided by n - 1.StatisticalFORECASTFull lessonPredicts a value for a new x by fitting a straight line through known x and y values. The older name of FORECAST.LINEAR.=ROUND(FORECAST(7,B2:B7,A2:A7),2)→160StatisticalFORECAST.LINEAR2016+Full lessonPredicts a y value for a given x by fitting a straight line through known pairs of x and y values.=ROUND(FORECAST.LINEAR(7,B2:B7,A2…→151.7StatisticalFREQUENCYCounts how many values fall into each bin and returns a vertical list with one more count than there are bins.StatisticalGEOMEANFull lessonReturns the geometric mean of positive numbers: the right kind of average for growth rates and other values that multiply.=GEOMEAN(B2:B4)→4StatisticalGROWTHFits an exponential curve to known data and returns the predicted y values for new x values.StatisticalHARMEANReturns the harmonic mean: the count divided by the sum of reciprocals. Every number must be positive.StatisticalINTERCEPTFull lessonReturns the point where the best-fit straight line crosses the y axis: the predicted y when x is 0.=INTERCEPT(B2:B6,A2:A6)→2,080StatisticalLARGEFull lessonReturns the kth largest value in a set of numbers, such as the second highest sale or the third biggest order.=LARGE(B2:B9,2)→56,300StatisticalLINESTReturns the slope and intercept of the least-squares line, and optionally its regression statistics.StatisticalMAXFull lessonReturns the largest number in the values you give it. Text and blanks are ignored, and with no numbers it returns 0.=MAX(B2:B5)→5,800StatisticalMAXAFull lessonReturns the largest value in a set, counting TRUE as 1 and text or FALSE as 0 where MAX would ignore them.=MAXA(A2:A4)→0StatisticalMAXIFS2019+Full lessonReturns the largest value in a range among the rows that meet one or more conditions, such as the biggest spend for one department.=MAXIFS(B2:B5,A2:A5,"<>East")→4,200StatisticalMEDIANFull lessonReturns the middle value of a set of numbers. It is less affected by outliers than the average.=MEDIAN(B2:B5)→3,650: halfway between 3,10…StatisticalMINFull lessonReturns the smallest number in the values you give it. Text and blanks are ignored, and with no numbers it returns 0.=MIN(B2:B5)→2,900StatisticalMINAReturns the smallest value, counting TRUE as 1 and text as 0.StatisticalMINIFS2019+Full lessonReturns the smallest value in a range among the rows that meet one or more conditions, such as the lowest price for one item.=MINIFS(B2:B5,B2:B5,">3000")→3,100StatisticalMODEReturns the most frequent number (older name for MODE.SNGL).StatisticalMODE.MULTFull lessonReturns a vertical list of every value that occurs most often in a set of numbers, so ties are not lost.=MODE.MULT(A2:A7)→a list, spilledStatisticalMODE.SNGLFull lessonReturns the most frequently occurring number in a set. If no number repeats, it returns #N/A.=MODE.SNGL(B2:B9)→9StatisticalPEARSONFull lessonReturns the Pearson correlation coefficient between two sets of values: a number from -1 to 1. It gives the same result as CORREL.=ROUND(PEARSON(A2:A7,B2:B7),4)→-1StatisticalPERCENTILEReturns the k-th percentile (older name for PERCENTILE.INC).StatisticalPERCENTILE.EXCFull lessonReturns the kth percentile of a data set, where k is strictly between 0 and 1 and the end points are excluded.=PERCENTILE.EXC(B2:B11,0.25)→146.25StatisticalPERCENTILE.INCFull lessonReturns the value below which a given fraction of the data falls, from 0 (the minimum) to 1 (the maximum), inclusive.=PERCENTILE.INC(B2:B11,0.5)→182.5StatisticalQUARTILEReturns a quartile (older name for QUARTILE.INC).StatisticalQUARTILE.EXCReturns quartile 1, 2 or 3 using the exclusive percentile method.StatisticalQUARTILE.INCFull lessonReturns the minimum, first quartile, median, third quartile or maximum of a data set, using the inclusive method.=QUARTILE.INC(B2:B11,1)→152.5StatisticalRANKReturns the rank of a number (older name for RANK.EQ).StatisticalRANK.AVGFull lessonReturns the rank of a number within a list, giving tied values the average of the ranks they share, such as 2.5.=RANK.AVG(B3,$B$2:$B$6)→3.5StatisticalRANK.EQFull lessonReturns the rank of a number within a list: 1 for the largest by default, or 1 for the smallest. Tied values share the top rank.=RANK.EQ(B2,$B$2:$B$8)→3StatisticalRSQFull lessonReturns R squared, the share of the variation in one set of values that a straight-line relationship with another set explains.=ROUND(RSQ(B2:B7,A2:A7),4)→0.97StatisticalSLOPEFull lessonReturns the slope of the straight line that best fits your data: how much y changes for each one-unit increase in x.=SLOPE(C2:C6,B2:B6)→2.8StatisticalSMALLFull lessonReturns the kth smallest value in a set of numbers, such as the second fastest delivery or the third lowest price.=SMALL(B2:B9,2)→11StatisticalSTDEVSample standard deviation (older name for STDEV.S).StatisticalSTDEV.PFull lessonReturns the standard deviation of a whole population: how far values typically sit from their average when you have every member of the group.=STDEV.P(B2:B9)→2StatisticalSTDEV.SFull lessonReturns the standard deviation of a sample: how far values typically sit from their average, when the data is a sample of a larger group.=ROUND(STDEV.S(B2:B9),2)→2.14StatisticalSTDEVPPopulation standard deviation (older name for STDEV.P).StatisticalTRENDFits a straight line to known data and returns the y values on that line for new x values.StatisticalVARSample variance (older name for VAR.S).StatisticalVAR.PReturns the variance of a whole population.StatisticalVAR.SFull lessonReturns the variance of a sample: the average squared distance of values from their mean, using n - 1 in the divisor.=VAR.S(B2:B6)→0.5StatisticalVARPPopulation variance (older name for VAR.P).StatisticalText
Clean up, split, join and reformat text.
36=A2&CHAR(10)&B2→"Dana Whitfield
Finance"TextCLEANFull lessonRemoves non-printing characters, such as line breaks and tabs, from text.=CLEAN(A2)→"FX-1010"TextCODEFull lessonReturns the number code of the first character in text, such as 65 for "A" or 32 for a space.=CODE(A3)→97TextCONCAT2019+Full lessonJoins text from cells, ranges and typed values into one piece of text, with no separator added.=CONCAT(A2," ",B2)→"Ana Ruiz"TextCONCATENATEFull lessonJoins separate pieces of text into one. The older version of CONCAT, kept so that old workbooks still work.=CONCATENATE(A2," ",B2)→"Tomas Brandt"TextDOLLARFull lessonConverts a number to text in currency format with a chosen number of decimals, such as "$1,234.57".=DOLLAR(A2)→"$1,234.57"TextEXACTFull lessonChecks whether two pieces of text are identical, including capital letters. Returns TRUE or FALSE.=EXACT(A2,B2)→FALSETextFINDFull lessonReturns the position of one piece of text inside another. It is case-sensitive and does not allow wildcards.=FIND("-","INV-2026")→4TextFIXEDFull lessonRounds a number to a set number of decimals and returns it as text, with or without thousands separators.=FIXED(A2,2)→"1,234.57"TextLEFTFull lessonReturns the first characters of a piece of text, counting from the left.=LEFT(A2,3)→"INV"TextLENFull lessonReturns the number of characters in a piece of text, spaces included.=LEN(A2)→13TextLOWERFull lessonConverts all letters in text to lower case.=LOWER(A2)→"ana.ruiz@example.com"TextMIDFull lessonReturns a stated number of characters from the middle of text, starting at a position you choose.=MID(A2,5,4)→"2026"TextNUMBERVALUEFull lessonConverts text to a number using the decimal and thousands separators you specify, whatever your regional settings.=NUMBERVALUE(A2,",",".")→1,234.56TextPROPERFull lessonCapitalises the first letter of each word and converts the rest to lower case.=PROPER(A2)→"Jane Smith"TextREGEXEXTRACT365Full lessonread onlyExtracts the part of text that matches a regular expression: the first match, every match, or the capture groups of the first match.=REGEXEXTRACT(A2,"INV-\d+")→"INV-2041"TextREGEXREPLACE365Full lessonread onlyReplaces the parts of text that match a regular expression with new text.=REGEXREPLACE(A2,"[^0-9]","")→"0255500142"TextREGEXTEST365Full lessonread onlyChecks whether text matches a regular expression pattern and returns TRUE or FALSE.=REGEXTEST(A2,"^[A-Z]{2}-\d{4}$")→TRUETextREPLACEFull lessonReplaces a set number of characters, starting at a position you choose, with new text.=REPLACE(A2,1,3,"BIL")→"BIL-0457"TextREPTFull lessonRepeats text a given number of times. Use it for in-cell bars, dividers and padding.=REPT("-",20)→"--------------------"TextRIGHTFull lessonReturns the last characters of a piece of text, counting from the right.=RIGHT(A2,4)→"0042"TextSEARCHFull lessonReturns the position of one piece of text inside another, ignoring case and allowing the wildcards ? and *.=SEARCH("rush",B3)→22TextSUBSTITUTEFull lessonReplaces specific text inside a string with other text. It matches case exactly and can target one occurrence.=SUBSTITUTE(A2,"-","/")→"INV/2026/0042"TextTReturns the value if it is text, and empty text otherwise.TextTEXTFull lessonConverts a number or date to text in the format you specify, such as 1,234.50, 26% or 15-Mar-2025.=TEXT(A2,"0.00")→"3.14"TextTEXTAFTER2024+Full lessonReturns the text that comes after a delimiter, counting from the start or the end of the text.=TEXTAFTER(A2,"@")→"example.com"TextTEXTBEFORE2024+Full lessonReturns the text that comes before a delimiter, counting from the start or the end of the text.=TEXTBEFORE(A2,"@")→"dana.whitfield"TextTEXTJOIN2019+Full lessonJoins text from cells and ranges with a separator between each item, and can skip empty cells.=TEXTJOIN(", ",TRUE,C2:C5)→"Ana, Ben, Cara, Dev"TextTEXTSPLIT2024+Full lessonSplits text into separate cells across columns or down rows, wherever a delimiter appears. The result spills.=TEXTSPLIT("Ana,Ben,Cara",",")→Ana | Ben | Cara, spilled a…TextTRIMFull lessonRemoves spaces from the start and end of text, and reduces runs of spaces between words to a single space.=TRIM(A2)→"jane smith"TextUNICHARFull lessonReturns the character for a Unicode code point, such as 65 for "A", 8364 for the euro sign or 9733 for a star.=UNICHAR(A2)→"A"TextUNICODEFull lessonReturns the Unicode code point of the first character in a piece of text, such as 65 for "A" or 8364 for the euro sign.=UNICODE(A2)→65TextUPPERFull lessonConverts all letters in text to capitals.=UPPER(A2)→"INV-042"TextVALUEFull lessonConverts text that looks like a number, date or time into a real number.=VALUE(A2)→1,043TextVALUETOTEXT2021+Returns any value as text.TextDate and time
Month ends, working days and the time between dates.
25=DATE(A2,B2,C2)→45,731Date and timeDATEDIFFull lessonCounts the complete years, months or days between two dates. It works in every version of Excel but is missing from the function list and autocomplete.=DATEDIF("1 Jan 2020","27 Nov 202…→6 whole yearsDate and timeDATEVALUEFull lessonConverts a date stored as text into a real Excel date, the serial number that formulas can sort, subtract and compare.=DATEVALUE(A2)→45,731Date and timeDAYFull lessonReturns the day of the month of a date, as a number from 1 to 31.=DAY(A2)→15Date and timeDAYSFull lessonReturns the number of calendar days between two dates, as end date minus start date.=DAYS(B2,A2)→73Date and timeDAYS360Full lessonReturns the number of days between two dates on a 360-day year of twelve 30-day months, as used in some accounting and interest calculations.=DAYS360(A2,B2)→60Date and timeEDATEFull lessonReturns the date a given number of months before or after a start date, on the same day of the month where possible.=EDATE("31 Jan 2026",1)→28 Feb 2026Date and timeEOMONTHFull lessonReturns the last day of the month, a given number of months before or after a start date.=EOMONTH("15 Mar 2026",0)→31 Mar 2026Date and timeHOURFull lessonReturns the hour of a time or timestamp as a whole number from 0 to 23.=HOUR(A2)→14Date and timeISOWEEKNUMFull lessonReturns the ISO 8601 week number of a date, from 1 to 53. Weeks start on Monday, and week 1 is the week containing the first Thursday of the year.=ISOWEEKNUM(A2)→11Date and timeMINUTEFull lessonReturns the minute of a time or timestamp as a whole number from 0 to 59.=MINUTE(A2)→45Date and timeMONTHFull lessonReturns the month of a date as a number from 1 (January) to 12 (December).=MONTH(A2)→3Date and timeNETWORKDAYSFull lessonCounts the working days between two dates, inclusive, skipping Saturdays, Sundays and any holidays you list.=NETWORKDAYS("1 Dec 2026","31 Dec…→23 working daysDate and timeNETWORKDAYS.INTLFull lessonCounts working days between two dates with a weekend you choose, from a preset code or a day-by-day pattern, and skips listed holidays.=NETWORKDAYS.INTL(A2,B2,11)→11Date and timeNOWFull lessonReturns the current date and time as one number. It is volatile: it updates every time the workbook recalculates.=NOW()>DATE(2024,1,1)→TRUEDate and timeSECONDFull lessonReturns the seconds of a time or timestamp as a whole number from 0 to 59.=SECOND(A2)→30Date and timeTIMEFull lessonBuilds a time of day from an hour, a minute and a second. The result is a fraction of a 24-hour day.=ROUND(TIME(A2,B2,0),6)→0.4Date and timeTIMEVALUEFull lessonConverts a time written as text, such as "6:00 AM", into a decimal fraction of a day that Excel can calculate with.=TIMEVALUE(A2)→0.25Date and timeTODAYFull lessonReturns the current date, with no time of day. It is volatile: it recalculates every time the workbook does.=TODAY()-B2→Days since the date in B2Date and timeWEEKDAYFull lessonReturns the day of the week of a date as a number. You choose whether the week starts on Sunday or Monday.=WEEKDAY(A2)→7Date and timeWEEKNUMFull lessonReturns the week number of a date within its year. Several numbering systems are available, including the ISO standard.=WEEKNUM(A2)→11Date and timeWORKDAYFull lessonReturns the date a given number of working days before or after a start date, skipping weekends and any holidays you list.=WORKDAY("1 Dec 2026",10)→15 Dec 2026Date and timeWORKDAY.INTLFull lessonReturns the date a given number of working days before or after a start date, with a weekend you choose and optional holidays.=WORKDAY.INTL(A2,B2,11)→45,730Date and timeYEARFull lessonReturns the year of a date as a four-digit number between 1900 and 9999.=YEAR(A2)→2,025Date and timeYEARFRACFull lessonReturns the time between two dates as a decimal number of years, using the day-count basis you choose.=YEARFRAC("1 Jan 2026","1 Jul 202…→About 0.5Date and timeFinancial
Loans, investments and the value of future cash.
23=ROUND(CUMIPMT(B2/12,B3*12,B1,1,1…→-11,933.19FinancialCUMPRINCFull lessonReturns the total principal repaid on a loan between two periods, for example how much of a mortgage you pay off in year one.=ROUND(CUMPRINC(B2/12,B3*12,B1,1,…→-3,501.42FinancialDBReturns fixed-declining-balance depreciation for a period.FinancialDDBReturns double-declining-balance (or another factor) depreciation for a period.FinancialEFFECTFull lessonConverts a nominal annual interest rate into the effective annual rate once compounding is taken into account.=ROUND(EFFECT(B1,B2),6)→0.13FinancialFVFull lessonReturns the future value of an investment or loan from regular payments, a constant interest rate and an optional starting balance.=FV(4%/12,120,-200)→About 29,450FinancialIPMTFull lessonReturns the interest part of a single payment on a loan or investment with constant payments and a constant interest rate.=IPMT(B2/12,1,B3,B1)→-75FinancialIRRFull lessonReturns the internal rate of return of a series of cash flows at regular intervals: the rate at which their net present value is zero.=IRR(B2:B9)→The project’s internal rate…FinancialMIRRReturns the modified internal rate of return, using separate borrowing and reinvestment rates.FinancialNOMINALFull lessonConverts an effective annual interest rate into the nominal annual rate for a given number of compounding periods per year.=ROUND(NOMINAL(B1,B2),6)→0.06FinancialNPERFull lessonReturns the number of periods needed to repay a loan or reach a savings goal, for a constant payment and interest rate.=ROUND(NPER(B2/12,-B3,B1),2)→43.85FinancialNPVFull lessonReturns the net present value of a series of future cash flows, discounted at a constant rate. The first value is assumed to arrive one period from now.=NPV(8%,C5:C14)+C4→Net present value, with the…FinancialPDURATIONReturns how many periods an investment needs to grow to a target value at a fixed rate.FinancialPMTFull lessonReturns the fixed payment on a loan or the regular saving needed to reach a goal, for a constant interest rate and a set number of periods.=PMT(5%/12,60,-20000)→About 377.42 a monthFinancialPPMTFull lessonReturns the principal part of a single payment on a loan or investment with constant payments and a constant interest rate.=ROUND(PPMT(B2/12,1,B3,B1),2)→-589.81FinancialPVFull lessonReturns the present value of a series of equal future payments or a single future sum, discounted at a constant interest rate.=ROUND(PV(B2/12,B3*12,-B1),2)→25,862.78FinancialRATEFull lessonReturns the interest rate per period of a loan or investment, found by iteration from the number of periods, the payment and the amounts.=ROUND(RATE(B2,-B3,B1),6)→0.01FinancialRRIReturns the equivalent compound growth rate per period that turns a starting value into an ending value.FinancialSLNReturns straight-line depreciation for one period.FinancialSTOCKHISTORY365read onlyReturns historical price data for a financial instrument.FinancialSYDReturns sum-of-years’-digits depreciation for a period.FinancialXIRRFull lessonReturns the annualised internal rate of return of cash flows that occur on specific dates, using actual days over a 365-day year.=XIRR(B2:B9,A2:A9)→Annual return using the act…FinancialXNPVFull lessonReturns the net present value of cash flows that occur on specific dates, discounting each by the actual number of days since the first date.=XNPV(8%,B2:B9,A2:A9)→NPV using the actual dates …FinancialDynamic arrays
Formulas that return a whole list, which spills into the cells below.
19=CHOOSECOLS(A2:D7,1,4)→a list, spilledDynamic arraysCHOOSEROWS2024+Full lessonReturns the rows you name from a range or array, in the order you name them. Negative numbers count from the bottom.=CHOOSEROWS(A2:C9,1,3)→a list, spilledDynamic arraysDROP2024+Full lessonRemoves a set number of rows or columns from the start or end of a range or array and returns the rest.=DROP(A1:C6,1)→a list, spilledDynamic arraysEXPAND2024+Full lessonGrows an array to a size you choose, filling the new cells with #N/A or a value you pick.=EXPAND(A2:B3,4,3)→a list, spilledDynamic arraysFILTER2021+Full lessonReturns only the rows (or columns) of a range that meet a condition. The result spills into the cells below and to the right.=FILTER(A2:C5,B2:B5>3000)→The North, South and East r…Dynamic arraysGROUPBY365Full lessonread onlyGroups rows by one or more fields and summarises the values with a function such as SUM. It is a pivot table built from one formula.=GROUPBY(A2:A9,B2:B9,SUM)→a list, spilledDynamic arraysHSTACK2024+Full lessonPlaces ranges or arrays side by side into one array. Shorter arrays are padded with #N/A.=HSTACK(A2:A4,B2:B4*C2:C4)→a list, spilledDynamic arraysPIVOTBY365Full lessonread onlyBuilds a two-way summary of values, with one field down the side and another across the top, from a single formula.=PIVOTBY(A2:A10,B2:B10,C2:C10,SUM)→a list, spilledDynamic arraysRANDARRAY2021+Full lessonReturns an array of random numbers, decimals or whole numbers, in a size and range you choose. It recalculates on every change.=COUNT(RANDARRAY(5,3))→15Dynamic arraysSEQUENCE2021+Full lessonReturns a grid of sequential numbers, such as 1 to 12 or a run of weekly dates, from a single formula.=SEQUENCE(12)→1 to 12, down the columnDynamic arraysSORT2021+Full lessonReturns a sorted copy of a range or array. The original data stays where it is, and the result spills.=SORT(A2:B5,2,-1)→Rows ordered by sales, high…Dynamic arraysSORTBY2021+Full lessonSorts a range by the values in one or more other ranges, which do not have to be part of the result.=SORTBY(A2:B7,C2:C7,-1)→a list, spilledDynamic arraysTAKE2024+Full lessonReturns a set number of rows or columns from the start or end of a range or array. Negative numbers take from the end.=TAKE(A2:D6,3)→a list, spilledDynamic arraysTOCOL2024+Full lessonTurns a range or array into a single column, optionally skipping blanks and errors.=TOCOL(A2:C4)→a list, spilledDynamic arraysTOROW2024+Full lessonTurns a range or array into a single row, optionally skipping blanks and errors.=TOROW(A2:C4)→a list, spilledDynamic arraysUNIQUE2021+Full lessonReturns each distinct value or row of a range once, in the order it first appears.=UNIQUE(A2:A100)→Each region once, spilledDynamic arraysVSTACK2024+Full lessonStacks ranges or arrays on top of each other into one array. Narrower arrays are padded with #N/A.=VSTACK(Jan!A2:C50,Feb!A2:C50)→Both months in one listDynamic arraysWRAPCOLS2024+Full lessonWraps a single row or column of values into a grid, filling each column before starting the next.=WRAPCOLS(A2:A13,4)→a list, spilledDynamic arraysWRAPROWS2024+Full lessonWraps a single row or column of values into a grid, filling each row before starting the next.=WRAPROWS(A2:A13,4)→a list, spilledDynamic arraysLAMBDA and LET
Name values and build your own functions.
9=BYCOL(B2:D5,LAMBDA(c,SUM(c)))→a list, spilledLAMBDA and LETBYROW2024+Full lessonRuns a LAMBDA on each row of an array and returns one result per row, as a single column.=BYROW(B2:D5,LAMBDA(r,SUM(r)))→a list, spilledLAMBDA and LETISOMITTED2024+Inside a LAMBDA, returns TRUE when a parameter was not supplied.LAMBDA and LETLAMBDA2024+Full lessonCreates your own reusable function from parameters and a calculation. Save it with a name and call it like any other function.=LAMBDA(x,x*1.2)(B2)→B2 × 1.2LAMBDA and LETLET2021+Full lessonGives names to values or calculations inside a formula, so each is worked out once and the formula reads in plain steps.=LET(rate,8%,amt,B2,amt*(1+rate))→B2 plus 8%LAMBDA and LETMAKEARRAY2024+Full lessonBuilds an array of a size you choose, calling a LAMBDA with each row and column number to work out every value.=MAKEARRAY(3,4,LAMBDA(r,c,r*c))→a list, spilledLAMBDA and LETMAP2024+Full lessonRuns a LAMBDA on every value of one or more arrays and returns the results in an array of the same shape.=MAP(B2:B6,LAMBDA(v,IF(v>=100,"On…→a list, spilledLAMBDA and LETREDUCE2024+Full lessonWalks through an array one value at a time, carrying a running result called the accumulator, and returns its final value.=REDUCE(0,A2:A6,LAMBDA(acc,v,acc+…→680LAMBDA and LETSCAN2024+Full lessonWalks through an array with a LAMBDA, carrying a running result, and returns the result after every step, such as a running total.=SCAN(0,B2:B7,LAMBDA(acc,v,acc+v))→a list, spilledLAMBDA and LETInformation
Test what a cell contains.
18=ISBLANK(B2)→TRUEInformationISERRReturns TRUE if a value is any error except #N/A.InformationISERRORFull lessonReturns TRUE when a value is any error, including #N/A. Use it to flag, count or branch on errors without changing the result.=ISERROR(B2/C2)→TRUEInformationISEVENReturns TRUE if a number is even (decimals are truncated).InformationISFORMULAReturns TRUE if a cell contains a formula.InformationISLOGICALReturns TRUE if a value is TRUE or FALSE.InformationISNAFull lessonReturns TRUE if a value is the #N/A error, and FALSE for anything else, including other errors.=ISNA(A2)→TRUEInformationISNONTEXTReturns TRUE if a value is not text, including empty cells.InformationISNUMBERFull lessonReturns TRUE when a value is a number, dates included. A number stored as text is not a number. It is the standard way to test for a successful search.=ISNUMBER(A3)→FALSEInformationISODDReturns TRUE if a number is odd (decimals are truncated).InformationISREFReturns TRUE if a value is a reference.InformationISTEXTFull lessonReturns TRUE when a value is text, including text that looks like a number. Use it to find numbers stored as text before they break a total or a lookup.=ISTEXT(A2)→TRUEInformationNConverts a value to a number: numbers stay, TRUE is 1, anything else is 0.InformationNAFull lessonReturns the #N/A error on purpose. Use it to mark a value as not available, so charts skip the point and later formulas can detect the gap.=NA()→#N/AInformationTYPEReturns the type of a value: 1 number, 2 text, 4 logical, 16 error, 64 array.InformationReading about a function is the start.
Each track turns these into four-minute lessons in a real sheet, with a reason for every mistake.