formulastreak

IF function practice exercises (free, checked instantly)

No download, no sign-up3 exercises · checked instantly

IF is the first function that makes a spreadsheet decide something, and it shows up in nearly every report and job test. These three exercises go from a number result to text results: a bonus when a rep hits target, a shipping fee that drops to zero over a threshold, and a Yes/No column. Each one is filled down a whole column and checked row by row, so a formula that only works for the first row doesn't pass.

Quick refresher

IF(logical_test, value_if_true, value_if_false) returns the second argument when the test is TRUE and the third when it's FALSE. The test is a comparison such as G2>=F2. Text results go in double quotes, "Yes"; numbers and cell references don't. The IF with AND and OR guide adds more conditions, and the IF function reference lists every argument.

  1. 1

    Reps who reach their target earn a $500 bonus. In H2, use IF: 500 when the Q3 total (G2) is at least the Target (F2), otherwise 0.

    • Use IF
    Select H2 and type = to start its formula (in the cell or the formula bar)
    ABCDEFGH
    1RepRegionJulAugSepTargetQ3 totalBonus
    2Amara OseiNorth$12,400$13,100$11,800$36,000$37,300
    3Ben FischerSouth$9,800$10,250$12,100$30,000$32,150
    4Lina ChenEast$15,200$14,800$16,900$45,000$46,900
    5Diego AlvarezWest$8,700$9,100$8,400$28,000$26,200
    6Eva NovakNorth$11,200$12,600$13,900$36,000$37,700
    7Farid HaddadSouth$13,300$12,900$14,100$39,000$40,300
    8Grace KimEast$10,100$9,600$10,800$33,000$30,500
    9Hugo MartinWest$14,500$15,800$15,100$42,000$45,400
  2. 2

    Shipping is free for orders of at least the amount in L1, otherwise it costs the fee in L2. Compare each order's Total (column I) and show its shipping in J2.

    • Use IF
    • No typed numbers
    Select J2 and type = to start its formula (in the cell or the formula bar)
    ABCDEFGHIJKL
    1OrderDateCustomerProductCategoryQtyPriceStatusTotalShippingFree from$50.00
    210012 Mar 2026Mara OkaforMonsteraPlants1$34.00Shipped$34.00Fee$4.95
    310022 Mar 2026Jonas LindTerracotta potPots3$12.50Shipped$37.50
    410033 Mar 2026Priya RamanSnake plantPlants2$22.00Shipped$44.00
    510044 Mar 2026Tomás RuizWatering canTools1$18.00Pending$18.00
    610055 Mar 2026Elif DemirFernPlants4$9.50Shipped$38.00
    710065 Mar 2026Mara OkaforPotting mixSoil2$7.25Returned$14.50
    810076 Mar 2026Kenji MoriPruning shearsTools1$24.00Shipped$24.00
    910087 Mar 2026Ines VargaCeramic potPots2$19.00Pending$38.00
    1010098 Mar 2026Jonas LindMonsteraPlants1$34.00Shipped$34.00
    1110109 Mar 2026Sofia RossiFernPlants6$9.50Shipped$57.00
    12101110 Mar 2026Priya RamanPotting mixSoil5$7.25Shipped$36.25
    13101211 Mar 2026Leo BrandtSnake plantPlants1$22.00Pending$22.00
  3. 3

    Did each rep hit their target? In H2, show "Yes" if the Q3 total (G2) is at least the Target (F2), otherwise "No".

    • Use IF
    Select H2 and type = to start its formula (in the cell or the formula bar)
    ABCDEFGH
    1RepRegionJulAugSepTargetQ3 totalHit target?
    2Amara OseiNorth$12,400$13,100$11,800$36,000$37,300
    3Ben FischerSouth$9,800$10,250$12,100$30,000$32,150
    4Lina ChenEast$15,200$14,800$16,900$45,000$46,900
    5Diego AlvarezWest$8,700$9,100$8,400$28,000$26,200
    6Eva NovakNorth$11,200$12,600$13,900$36,000$37,700
    7Farid HaddadSouth$13,300$12,900$14,100$39,000$40,300
    8Grace KimEast$10,100$9,600$10,800$33,000$30,500
    9Hugo MartinWest$14,500$15,800$15,100$42,000$45,400

What these exercises check

Each exercise fills a whole column and checks every row, so a formula that only works for the first row doesn't pass. Text results are compared exactly, so quotes and spelling matter. IF is behind most flags and labels in real spreadsheets: budget alerts, pass and fail, bonus eligibility, and anything that says “only when”.

Common mistakes

Tips

Updated . Answers are checked on our server against the course's answer key and against changed data; nothing you type is stored.

Practise IF on a live sheet

Lesson 10, TRUE, FALSE and IF (Unit 3, Decisions), has 5 more graded exercises, checked instantly, with steps and hints when you're stuck. Pro