Toolpuffin

    Loading...

    Up and down to choose, Enter to open, Esc to close.

    How to learn Excel formulas for beginners: SUM, IF, SUMIF and VLOOKUP

    Updated December 2026

    Written by the Toolpuffin team. Tools in this guide are tested in the browser.

    An Excel formula is a small instruction that calculates something from the cells around it. This guide explains the basics in plain words: how a formula starts, how references behave when you copy them, and four functions that cover a lot of everyday work. You can try every step in a practice sheet in your browser.

    Try the tool: Learn Excel Formulas

    What a formula is

    Microsoft's documentation says that all formulas in Excel begin with an equal sign (=). A formula can refer to values in other cells, such as =A1+A2, so the result updates when those cells change.

    Source: Microsoft Support: Overview of formulas in Excel

    A formula can contain functions, references, operators and constants. A function is a ready-made calculation such as PI(), a reference like A2 returns the value in cell A2, a constant is a number or text typed directly into the formula, and an operator such as ^ or * says what to do with them.

    Source: Microsoft Support: Detect formula errors in Excel

    Operators and the order of calculation

    The order matters. Microsoft's example is =5+2*3, which multiplies two numbers and then adds a number to the result, so the answer is 11 and not 21. Excel has a fixed order for its operators, and you can change it with parentheses: =(5+2)*3 adds first.

    Source: Microsoft Support: Enter a formula

    Source: Microsoft Support: The order in which Excel performs operations in formulas

    Relative and absolute references

    By default a cell reference is relative. The Microsoft documentation explains that when you copy a formula with a relative reference, the reference in the formula changes. If you copy =B4*C4 from D4 to D5, the formula in D5 adjusts to match its new row.

    To keep a reference fixed, make it absolute by typing a dollar sign ($) before the column and the row. Microsoft's multiplication example is =A2*$B$2: the $ symbols tell Excel that the reference to B2 is absolute, so when you copy the formula the reference always points to B2. This is how you multiply a whole column by one rate or one price.

    Source: Microsoft Support: Switch between relative, absolute, and mixed references

    Source: Microsoft Support: Multiply and divide numbers in Excel

    You do not have to type the dollar signs by hand. When a reference is selected in the formula, pressing F4 cycles through the combinations of absolute and relative references.

    Source: Microsoft Support: Keyboard shortcuts in Excel

    Four functions worth learning first

    SUM adds numbers. Microsoft shows that =SUM(A1:A2) and =SUM(A1,A2) both add the values in cells A1 and A2, and that A1:A2 is a range.

    Source: Microsoft Support: Create a formula by using a function

    IF returns one value when a condition is true and another when it is false. Its syntax is IF(logical_test, value_if_true, [value_if_false]), for example =IF(A2>B2,"Over Budget","OK").

    Source: Microsoft Support: IF function

    SUMIF sums the values in a range that meet a criterion you give. Microsoft's example =SUMIF(B2:B5, "John", C2:C5) sums only the values in C2:C5 where the matching cell in B2:B5 equals "John".

    Source: Microsoft Support: SUMIF function

    VLOOKUP looks a value up in the first column of a table and returns a value from another column in the same row. The syntax is VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). The last argument matters: FALSE asks for an exact match, and if you leave it out the default is TRUE, an approximate match.

    Source: Microsoft Support: VLOOKUP function

    Microsoft's page on the table_array argument adds that most of the time you should use FALSE. Microsoft also points to XLOOKUP as a newer function that returns exact matches by default, which is worth learning after the basics.

    Source: Microsoft Support: Use the table_array argument in a lookup function

    You want toFunctionExample
    Add numbersSUM=SUM(B2:B6)
    Choose between two resultsIF=IF(B2>=50,"pass","fail")
    Add only matching rowsSUMIF=SUMIF(A2:A7,"food",B2:B7)
    Find a value in a tableVLOOKUP=VLOOKUP(D2,A2:B5,2,FALSE)

    Using Excel in Dutch

    The Dutch version of Excel uses Dutch function names. Microsoft's Dutch pages list SOM and ALS for SUM and IF, and use GEMIDDELDE, AANTAL and VERT.ZOEKEN for AVERAGE, COUNT and VLOOKUP. Microsoft's Dutch VLOOKUP example is =VERT.ZOEKEN(E2;A2:C5;3;ONWAAR), which also shows semicolons between the arguments and ONWAAR for FALSE.

    Source: Microsoft Support: Excel-functies (per categorie)

    Source: Microsoft Support: Ingebouwde functies van Excel gebruiken om gegevens te vinden

    The names and separators depend on the language of your Excel, so a formula copied from a Dutch page may not work in an English Excel. The practice sheet accepts both spellings.

    Practise in your browser

    The course has 8 short lessons: adding with cell references, SUM, AVERAGE and MAX, absolute references, IF, SUMIF and COUNTIF, joining text, and VLOOKUP. You type formulas into a small practice sheet that runs in your browser, each lesson has a goal that is checked as you type, and your own files are never touched. It is a small spreadsheet, so it knows only a part of Excel's functions.

    More guides