Country or region and language

    Choose your country or region and your language.

    Suggested for you

      All countries and regions

        Choose your character

        It shows in the top bar and on your profile. Change it any time.

        The Work Gym / Free resources

        Excel formulas cheat sheet

        The 40 Excel formulas people use most at work, from basic totals to lookups and dynamic arrays. Every example runs on the small table below and shows its result, and each row links to a lesson where you practice it with your answer checked.

        Every example uses this table in cells A1:H9. Revenue is a formula, =F2*G2 and so on.

        Each row links to a lesson of the Excel course, where you practice it and your answer is checked. The first unit is free.

        The sample table

        ABCDEFGH
        1OrderDateRegionRepProductUnitsPriceRevenue
        210013/2/2026WestAna RuizKettle435140
        310023/3/2026EastBen ColeMug12896
        410033/5/2026WestAna RuizTeapot24284
        510043/9/2026NorthChloe ParkKettle335105
        610053/12/2026EastBen ColeKettle535175
        710063/16/2026WestDev ShahMug208160
        810073/20/2026NorthChloe ParkTeapot14242
        910083/27/2026EastDev ShahMug6848

        Totals and counts

        NameWhat it doesExamplePractice
        SUMAdds up the numbers in a range. Text and empty cells are skipped.
        =SUM(H2:H9)
        Result: 850
        SUM and AutoSum
        AVERAGEThe mean of the numbers in a range.
        =AVERAGE(F2:F9)
        Result: 6.625
        AVERAGE, MIN and MAX
        MAXThe largest number in a range. MIN gives the smallest.
        =MAX(H2:H9)
        Result: 175
        AVERAGE, MIN and MAX
        COUNTCounts the cells that hold numbers.
        =COUNT(F2:F9)
        Result: 8
        COUNT, COUNTA and COUNTBLANK
        COUNTACounts the cells that are not empty, text included.
        =COUNTA(D2:D9)
        Result: 8
        COUNT, COUNTA and COUNTBLANK
        ROUNDRounds a number to the digits you choose. ROUNDUP and ROUNDDOWN always round one way.
        =ROUND(AVERAGE(F2:F9),1)
        Result: 6.6
        ROUND, ROUNDUP and ROUNDDOWN

        Logic and errors

        NameWhat it doesExamplePractice
        IFReturns one value when a test is true and another when it is false.
        =IF(H2>=100,"Large","Small")
        Result: "Large"
        IF: choose between two results
        ANDTRUE only when every test is true. OR is TRUE when any one is.
        =IF(AND(C2="West",F2>3),"Yes","No")
        Result: "Yes"
        AND and OR inside IF
        IFSChecks tests in order and returns the value of the first one that is true. End with TRUE for a default.
        =IFS(H5>=150,"High",H5>=100,"Medium",TRUE,"Low")
        Result: "Medium"
        IFS and nested IF
        IFERRORShows your own value instead of an error such as #DIV/0! or #N/A.
        =IFERROR(H2/0,0)
        Result: 0
        IFERROR, IFNA and fixing lookups that fail

        Lookups

        NameWhat it doesExamplePractice
        VLOOKUPFinds a value in the first column of a table and returns the value from another column of the same row. Use FALSE for an exact match.
        =VLOOKUP(1005,A2:H9,4,FALSE)
        Result: "Ben Cole"
        VLOOKUP: exact match
        XLOOKUPLooks up a value in one range and returns the matching item from another. It matches exactly by default, and the result column can sit on either side.
        =XLOOKUP(1007,A2:A9,H2:H9)
        Result: 42
        XLOOKUP
        INDEX + MATCHMATCH finds the position of a value and INDEX returns the item at that position. Together they look up in any direction.
        =INDEX(D2:D9,MATCH(160,H2:H9,0))
        Result: "Dev Shah"
        INDEX and MATCH

        Totals with conditions

        NameWhat it doesExamplePractice
        COUNTIFCounts the cells that meet one condition.
        =COUNTIF(C2:C9,"East")
        Result: 3
        COUNTIF: count what matches
        SUMIFAdds the numbers whose row meets one condition.
        =SUMIF(C2:C9,"West",H2:H9)
        Result: 384
        SUMIF: add up what matches
        SUMIFSAdds the numbers that meet several conditions at once. The range to add comes first.
        =SUMIFS(H2:H9,C2:C9,"East",E2:E9,"Mug")
        Result: 144
        SUMIFS and COUNTIFS: several conditions
        COUNTIFSCounts the rows that meet several conditions. Put comparisons in quotes, like ">3".
        =COUNTIFS(E2:E9,"Kettle",F2:F9,">3")
        Result: 2
        SUMIFS and COUNTIFS: several conditions
        MAXIFSThe largest number among the rows that meet your conditions. MINIFS gives the smallest.
        =MAXIFS(H2:H9,C2:C9,"West")
        Result: 160
        AVERAGEIF(S), MAXIFS and MINIFS
        SUMPRODUCTMultiplies ranges item by item and adds the results, such as units times price.
        =SUMPRODUCT(F2:F9,G2:G9)
        Result: 850
        SUMPRODUCT

        Text

        NameWhat it doesExamplePractice
        LEFTThe first characters of a text. RIGHT takes them from the end.
        =LEFT(D2,3)
        Result: "Ana"
        LEN, LEFT and RIGHT
        MIDA number of characters from the middle of a text, starting at the position you give.
        =MID(D5,7,4)
        Result: "Park"
        MID
        LENThe number of characters in a text, spaces included.
        =LEN(D5)
        Result: 10
        LEN, LEFT and RIGHT
        FINDThe position of one text inside another. It is case-sensitive; SEARCH is not.
        =FIND(" ",D5)
        Result: 6
        FIND and SEARCH
        TRIMRemoves the spaces at both ends and leaves one space between words.
        =TRIM("  Ana   Ruiz ")
        Result: "Ana Ruiz"
        TRIM, CLEAN, UPPER, LOWER and PROPER
        UPPERTurns text into capitals. LOWER gives lower case and PROPER capitalizes each word.
        =UPPER(C2)
        Result: "WEST"
        TRIM, CLEAN, UPPER, LOWER and PROPER
        &Joins text and cell values into one text. CONCAT does the same as a function.
        =D2&" ("&C2&")"
        Result: "Ana Ruiz (West)"
        Joining text: &, CONCAT and TEXTJOIN
        TEXTJOINJoins a range of text with a separator you choose, and can skip empty cells.
        =TEXTJOIN(", ",TRUE,C2:C4)
        Result: "West, East, West"
        Joining text: &, CONCAT and TEXTJOIN
        SUBSTITUTEReplaces every copy of one text with another.
        =SUBSTITUTE(D7,"Shah","S.")
        Result: "Dev S."
        SUBSTITUTE and REPLACE

        Dates

        NameWhat it doesExamplePractice
        DATEBuilds a date from a year, a month and a day.
        =DATE(2026,3,31)
        Result: Mar 31, 2026
        Dates as numbers: DATE, YEAR, MONTH and DAY
        MONTHThe month of a date, from 1 to 12. YEAR and DAY work the same way.
        =MONTH(B2)
        Result: 3
        Dates as numbers: DATE, YEAR, MONTH and DAY
        TODAYToday's date. It updates every time the workbook recalculates; NOW adds the time.
        =TODAY()
        Result: today's date
        TODAY and NOW
        EOMONTHThe last day of the month, a given number of months before or after a date. 0 means the same month.
        =EOMONTH(B2,0)
        Result: Mar 31, 2026
        EOMONTH and EDATE
        DATEDIFThe time between two dates in days ("d"), whole months ("m") or whole years ("y").
        =DATEDIF(B2,B9,"d")
        Result: 25
        DAYS and DATEDIF
        NETWORKDAYSCounts the working days between two dates, Monday to Friday, both ends included. You can list holidays to skip.
        =NETWORKDAYS(B2,B9)
        Result: 20
        NETWORKDAYS and WORKDAY

        Dynamic arrays

        NameWhat it doesExamplePractice
        UNIQUELists each distinct value once. The result spills into the cells below.
        =UNIQUE(C2:C9)
        Result: West · East · North
        UNIQUE
        FILTERReturns the rows that meet a condition and updates when the data changes.
        =FILTER(A2:A9,H2:H9>150)
        Result: 1,005 · 1,006
        FILTER
        SORTSorts a range with a formula. -1 puts the largest first.
        =SORT(H2:H9,1,-1)
        Result: 175 · 160 · 140 · 105 · 96 · 84 · 48 · 42
        SORT and SORTBY

        Ranking and loans

        NameWhat it doesExamplePractice
        RANK.EQThe rank of a number in a list, largest first by default. Equal numbers share a rank.
        =RANK.EQ(H6,H2:H9)
        Result: 1
        LARGE, SMALL and RANK
        LARGEThe k-th largest number: 2 gives the second largest. SMALL counts from the smallest.
        =LARGE(H2:H9,2)
        Result: 160
        LARGE, SMALL and RANK
        PMTThe payment per period on a loan at a fixed rate. Divide a yearly rate by 12 for monthly payments. The result is negative because it is money you pay out.
        =ROUND(PMT(5%/12,36,10000),2)
        Result: -299.71
        PMT: loan payments

        Checked against

        Every row was last checked on Nov 20, 2026.

        Questions

        Can I download the Excel formulas cheat sheet as a PDF?

        Yes. Press Print or save as PDF and choose "Save as PDF" in your browser's print window. The printed layout drops the site header and keeps the formulas, examples and results on compact pages.

        Do these formulas work in older versions of Excel?

        Most of them do. IFS, MAXIFS and TEXTJOIN need Excel 2019 or later, and XLOOKUP, UNIQUE, FILTER and SORT need Excel 2021 or Microsoft 365. In older versions, use VLOOKUP or INDEX and MATCH instead of XLOOKUP.

        How were the results checked?

        Every formula on this page was entered into a spreadsheet engine with the sample table above, and the result shown is the one it returned.

        More cheat sheets

        Free resources

        Your Work Gym account

        Save your progress and pick up on another device. Your browser's progress comes with you.

        New accounts get 12 hours of full access: every course, unit, project and exam. The clock starts when you open your first lesson.

        Plan your practice from a job ad or syllabus

        Have a referral code?

        or

        You can keep practicing without an account.

        Change your plan

        Checking the price

        Help and feedback

        Ask a question, tell us what is not working, or share an idea. We reply by email.

        What is it about?

        We use it only to reply to you.