Excel exercises: 34 practice tasks with answers

This page has 34 Excel exercises with answers, each set on a small table you can type in or download as a workbook. They’re grouped into beginner, intermediate and advanced sets, plus four on sorting, filtering and PivotTables.

Each set starts with a small table and five tasks. The answers follow, with the formula, how it works and the result you should get. Three tasks from Excel Foundations, our free course, also run on this page and check your formula when you press Check.

We ran every answer on this page through the practice sheet our lessons use. Each result you see is the one it returned.

How to use these exercises

Download the practice workbook and every table is ready on its own sheet, with the answer cells shaded yellow and the answers on a sheet of their own. Or type a table into Excel or Google Sheets yourself, starting in cell A1, and the cell names in the tasks work as written.

Download the practice workbook

Excel file, 17 KB. It opens in Google Sheets too.

  1. Do the tasks in order. A few of them use the answer before.
  2. Check your result against the answers under each set. A different formula that gives the same result is fine.
  3. Change a number in the table. If your result changes the way it should, the formula works. If it stays the same, you may have typed a number where a cell reference belongs.

Beginner Excel exercises

Exercises 1 to 10 use arithmetic, SUM, AVERAGE, MIN, MAX, COUNTA and ROUND, and the $ sign that keeps a reference fixed when you copy a formula. If any of these are new, start with our guide to basic Excel formulas.

Exercises 1 to 5: a week of sales

A shop’s orders and revenue for one week. Totals and averages go in rows 10 and 11, and the revenue per order in column D.

The table for exercises 1 to 5
ABCD
1DayOrdersRevenuePer order
2Mon18612 (your answer goes here)
3Tue22748 (your answer goes here)
4Wed15495 (your answer goes here)
5Thu27945 (your answer goes here)
6Fri311,116 (your answer goes here)
7Sat401,520 (your answer goes here)
8Sun15480 (your answer goes here)
9
10Total (your answer goes here) (your answer goes here)
11Average (your answer goes here) (your answer goes here)
  1. In B10, add up the orders for the week.
  2. In C10, add up the revenue.
  3. In B11, work out the average number of orders a day.
  4. In C11, work out the average revenue a day, rounded to a whole number.
  5. In D2, work out Monday’s revenue per order: the revenue divided by the orders. Fill it down to D8.

Answers to exercises 1 to 5

ExerciseFormulaHow it worksResult
1=SUM(B2:B8)SUM adds every number in the range. Also works: =B2+B3+B4+B5+B6+B7+B8.168
2=SUM(C2:C8)Copy B10 across to C10 and the range moves with it, to C2:C8.5,916
3=AVERAGE(B2:B8)AVERAGE adds the range and divides by the count, so 168 orders over 7 days gives 24.24
4=ROUND(AVERAGE(C2:C8),0)ROUND keeps the number of decimal places you give it, here 0. Hiding decimals with formatting only changes what the cell shows.845
5=C2/B2The references move as the formula fills, so D3 holds =C3/B3.34, 34, 33, 35, 36, 38, 32

Exercises 6 to 10: prices and a discount

Six products and a discount rate in B1. Every discount uses that one rate, so the formulas have to keep pointing at it.

The table for exercises 6 to 10
ABCD
1Discount rate20%
2
3ProductPriceDiscountSale price
4Notebook4.50 (your answer goes here) (your answer goes here)
5Pen set7.25 (your answer goes here) (your answer goes here)
6Desk lamp32.00 (your answer goes here) (your answer goes here)
7Stapler11.80 (your answer goes here) (your answer goes here)
8Backpack45.00 (your answer goes here) (your answer goes here)
9Mug8.95 (your answer goes here) (your answer goes here)
10
11Products (your answer goes here)
12Lowest price (your answer goes here)
13Top sale price (your answer goes here)
  1. In C4, work out the discount on the notebook: its price times the rate in B1. Lock B1 with $ so the formula still points at it when you fill down to C9.
  2. In D4, take the discount off the price to get the sale price. Fill it down to D9.
  3. In B11, count the products.
  4. In B12, find the lowest price.
  5. In B13, find the highest sale price.

Answers to exercises 6 to 10

ExerciseFormulaHow it worksResult
6=B4*$B$1$B$1 stays put while B4 moves, so C5 holds =B5*$B$1. Without the $, C5 would multiply by the empty B2.0.90, 1.45, 6.40, 2.36, 9.00, 1.79
7=B4-C4Price minus discount, on the same row. Also works: =B4*(1-$B$1).3.60, 5.80, 25.60, 9.44, 36.00, 7.16
8=COUNTA(A4:A9)COUNTA counts the cells that aren’t empty, text included. =COUNT(B4:B9) counts the prices, which gives 6 too.6
9=MIN(B4:B9)MIN returns the smallest number in the range.4.50
10=MAX(D4:D9)This uses the sale prices from exercise 7, so do that one first.36.00

Try one more in your browser. This task comes from lesson 13 of Excel Foundations, and it checks your formula the way the course does.

Work out every line total in D2:D6. Write the formula in D2, then fill it down.

Write the formula for D2. We’ll fill it down to D6 for you.

Example data for this task
ABCD
1ProductPriceQtyTotal
2Notebook3.5012 (your answer goes here)
3Pens4.208 (your answer goes here)
4Stapler9.993 (your answer goes here)
5Desk lamp24.002 (your answer goes here)
6Folders1.8025 (your answer goes here)

Create a free account to carry on with the rest of Excel Foundations.

Intermediate Excel exercises

Exercises 11 to 20 add decisions and conditions with IF, COUNTIF, SUMIF, AVERAGEIF and SUMIFS, then LEFT and the lookups XLOOKUP and VLOOKUP. Each function has its own guide: IF, COUNTIF, SUMIF, XLOOKUP and VLOOKUP.

Exercises 11 to 15: online orders

Eight orders from an online shop, with the customer, the region, the amount and whether each one has been paid.

The table for exercises 11 to 15
ABCDEF
1OrderCustomerRegionAmountStatusSize
21001LenaNorth120Paid (your answer goes here)
31002OmarSouth85Paid (your answer goes here)
41003PriyaNorth240Unpaid (your answer goes here)
51004SamEast70Paid (your answer goes here)
61005LenaNorth95Paid (your answer goes here)
71006TomSouth310Unpaid (your answer goes here)
81007PriyaEast150Paid (your answer goes here)
91008OmarSouth40Paid (your answer goes here)
10
11North orders (your answer goes here)
12Unpaid total (your answer goes here)
13South average (your answer goes here)
14North paid (your answer goes here)
  1. In F2, show Large when the amount is 100 or more, and Small when it isn’t. Fill it down to F9.
  2. In B11, count the orders from the North.
  3. In B12, add up the amounts that haven’t been paid.
  4. In B13, work out the average order from the South.
  5. In B14, add up the North’s paid orders.

Answers to exercises 11 to 15

ExerciseFormulaHow it worksResult
11=IF(D2>=100,"Large","Small")IF runs the test D2>=100, then returns the first value when it’s true and the second when it isn’t. Text goes inside double quotes.Large, Small, Large, Small, Small, Large, Large, Small
12=COUNTIF(C2:C9,"North")COUNTIF counts the cells in C2:C9 that match North.3
13=SUMIF(E2:E9,"Unpaid",D2:D9)SUMIF checks E2:E9 for Unpaid and adds the amounts on the same rows of D2:D9.550
14=AVERAGEIF(C2:C9,"South",D2:D9)AVERAGEIF averages only the amounts on rows where the region is South.145
15=SUMIFS(D2:D9,C2:C9,"North",E2:E9,"Paid")SUMIFS takes the range to add first, then a range and a condition for each test. A row counts only when both match.215

Exercises 16 to 20: a product list

Six products with a code, a price and a stock count. B9 and B13 hold the codes to look up.

The table for exercises 16 to 20
ABCDEF
1CodeItemPriceStockCategoryStatus
2BK-201Atlas18.0012 (your answer goes here) (your answer goes here)
3BK-202Cookbook24.500 (your answer goes here) (your answer goes here)
4ST-301Notebook4.5085 (your answer goes here) (your answer goes here)
5ST-302Pen set7.256 (your answer goes here) (your answer goes here)
6GF-401Gift card25.0040 (your answer goes here) (your answer goes here)
7GF-402Tote bag9.993 (your answer goes here) (your answer goes here)
8
9CodeST-302
10Price (your answer goes here)
11Stock (your answer goes here)
12
13CodeBK-299
14Price (your answer goes here)
  1. In E2, show the category: the first two letters of the code. Fill it down to E7.
  2. In F2, show Out of stock when the stock is 0, Reorder when it’s under 10, and OK otherwise. Fill it down to F7.
  3. In B10, look up the price of the code in B9 with XLOOKUP.
  4. In B11, look up the stock for the same code with VLOOKUP.
  5. B13 holds a code that isn’t on the list. In B14, look up its price, and show Not found when there’s no match.

Answers to exercises 16 to 20

ExerciseFormulaHow it worksResult
16=LEFT(A2,2)LEFT returns the number of characters you ask for, counting from the left. RIGHT does the same from the end.BK, BK, ST, ST, GF, GF
17=IF(D2=0,"Out of stock",IF(D2<10,"Reorder","OK"))The second IF runs only when the first test is false. Test for 0 first: 0 is under 10 too, so the other way round would mark it Reorder. Also works: =IFS(D2=0,"Out of stock",D2<10,"Reorder",TRUE,"OK").OK, Out of stock, OK, Reorder, OK, Reorder
18=XLOOKUP(B9,A2:A7,C2:C7)XLOOKUP finds B9 in the codes and returns the price from the same row. Also works: =INDEX(C2:C7,MATCH(B9,A2:A7,0)).7.25
19=VLOOKUP(B9,A2:D7,4,FALSE)VLOOKUP searches the first column of A2:D7 and returns its 4th column. FALSE asks for an exact match.6
20=XLOOKUP(B13,A2:A7,C2:C7,"Not found")XLOOKUP’s fourth argument is what to show when nothing matches. In Excel 2019 and earlier, wrap VLOOKUP in IFERROR. Also works: =IFERROR(VLOOKUP(B13,A2:D7,3,FALSE),"Not found").Not found

Try this one in your browser: it needs IF and AND together. It comes from lesson 17 of Excel Foundations.

In D2:D7, show Pass only if both marks are 50 or more. Otherwise show Resit.

Write the formula for D2. We’ll fill it down to D7 for you.

Example data for this task
ABCD
1StudentTheoryPracticalResult
2Amara7866 (your answer goes here)
3Ben6448 (your answer goes here)
4Chen9185 (your answer goes here)
5Dina5571 (your answer goes here)
6Eli8352 (your answer goes here)
7Farah4759 (your answer goes here)

Create a free account to practise the rest of Excel Foundations.

Advanced Excel exercises

Exercises 21 to 30 cover running totals, percentage change, lookups in two directions with INDEX and MATCH, approximate-match bands, SUMPRODUCT, counting between two dates, and FILTER, SORT and UNIQUE, which need Excel 2021 or later, Microsoft 365, Excel for the web or Google Sheets. There’s more on percentage change, with exercises of its own, in our guide to percentage formulas, and our guide to drop-down lists uses SORT and UNIQUE to build the items a list offers.

Exercises 21 to 25: sales by month and region

Six months of sales for three regions. B9 and B10 hold a month and a region to look up.

The table for exercises 21 to 25
ABCDEF
1MonthNorthSouthEastNorth so farChange
2Jan1,200950700 (your answer goes here)
3Feb1,350900820 (your answer goes here) (your answer goes here)
4Mar1,5001,100760 (your answer goes here) (your answer goes here)
5Apr1,4201,250910 (your answer goes here) (your answer goes here)
6May1,6001,300980 (your answer goes here) (your answer goes here)
7Jun1,7501,1801,050 (your answer goes here) (your answer goes here)
8
9MonthApr
10RegionSouth
11Sales (your answer goes here)
12Region total (your answer goes here)
13Best East month (your answer goes here)
  1. In E2, work out a running total of the North’s sales. Lock the start of the range, then fill down to E7.
  2. In F3, work out the North’s change from the month before, as a percentage. Fill it down to F7.
  3. In B11, return the sales for the month in B9 and the region in B10, with INDEX and MATCH.
  4. In B12, add up all six months for the region in B10.
  5. In B13, find the month when the East sold most.

Answers to exercises 21 to 25

ExerciseFormulaHow it worksResult
21=SUM($B$2:B2)$B$2 stays put and the end of the range moves, so E7 adds the whole of B2:B7.1,200; 2,550; 4,050; 5,470; 7,070; 8,820
22=(B3-B2)/B2New minus old, divided by old: February is 12.5% up on January. Format the cells as percentages to show it that way. Also works: =B3/B2-1.12.5%, 11.1%, -5.3%, 12.7%, 9.4%
23=INDEX(B2:D7,MATCH(B9,A2:A7,0),MATCH(B10,B1:D1,0))The first MATCH finds the row and the second finds the column. INDEX returns the cell where they cross. Also works: =XLOOKUP(B9,A2:A7,XLOOKUP(B10,B1:D1,B2:D7)).1,250
24=SUM(INDEX(B2:D7,0,MATCH(B10,B1:D1,0)))A row number of 0 tells INDEX to return the whole column, and SUM adds it up. Also works: =SUM(XLOOKUP(B10,B1:D1,B2:D7)).6,680
25=INDEX(A2:A7,MATCH(MAX(D2:D7),D2:D7,0))MAX finds the East’s best figure, MATCH finds its row, and INDEX returns the month on that row. Also works: =XLOOKUP(MAX(D2:D7),D2:D7,A2:A7).Jun

Exercises 26 to 30: order lines with dates

Eight orders from the first three months of the year, and a discount table in G1:H4. Dates are numbers in Excel, so you can compare and count them like any other number.

The table for exercises 26 to 30
ABCDEFGH
1DateProductQtyPriceDiscountFromDiscount
22 Jan 2026Notebook104.50 (your answer goes here)10%
39 Jan 2026Pen set47.25 (your answer goes here)55%
415 Jan 2026Desk lamp232.00 (your answer goes here)1010%
53 Feb 2026Notebook64.50 (your answer goes here)
611 Feb 2026Backpack145.00 (your answer goes here)
720 Feb 2026Pen set87.25 (your answer goes here)
84 Mar 2026Notebook124.50 (your answer goes here)
918 Mar 2026Desk lamp332.00 (your answer goes here)
10
11Value (your answer goes here)
12February orders (your answer goes here)
13
145 units or moreProducts
15 (your answer goes here) (your answer goes here)
16
17
18
  1. In E2, look up each order’s discount in G2:H4 by its quantity: 5% from 5 units and 10% from 10. Lock the table and fill down to E9.
  2. In B11, work out the value of all eight orders before discounts, in one formula: each quantity times its price, added up.
  3. In B12, count the orders placed in February.
  4. In A15, list the product and quantity of every order of 5 units or more.
  5. In D15, list each product once, in alphabetical order.

Answers to exercises 26 to 30

ExerciseFormulaHow it worksResult
26=XLOOKUP(C2,$G$2:$G$4,$H$2:$H$4,,-1)Match mode -1 takes the next smaller value when there’s no exact match, so 8 units gets the 5% band. VLOOKUP with TRUE does the same, as long as you sort the table smallest first. Also works: =VLOOKUP(C2,$G$2:$H$4,2,TRUE).10%, 0%, 0%, 5%, 0%, 5%, 10%, 0%
27=SUMPRODUCT(C2:C9,D2:D9)SUMPRODUCT multiplies the two ranges row by row and adds up the results.418.00
28=COUNTIFS(A2:A9,">="&DATE(2026,2,1),A2:A9,"<"&DATE(2026,3,1))Two conditions on the same range: on or after 1 February, and before 1 March. & joins each comparison to its date.3
29=FILTER(B2:C9,C2:C9>=5)FILTER keeps the rows where the test is true. The results spill into the cells below and to the right.Notebook 10
Notebook 6
Pen set 8
Notebook 12
30=SORT(UNIQUE(B2:B9))UNIQUE drops the repeats and SORT puts the rest in order.Backpack, Desk lamp, Notebook, Pen set

The last task to try here comes from lesson 28 of Excel Foundations. It combines a lookup with locked ranges.

Look up every price in C2:C5. Lock the lookup ranges so they don't move when you fill.

Write the formula for C2. We’ll fill it down to C5 for you.

Example data for this task
ABCDEFGH
1CodeQtyPriceCodeProductPrice
2ST-33024 (your answer goes here)NB-2041Notebook3.50
3NB-204110 (your answer goes here)PN-1180Pens4.20
4FD-100530 (your answer goes here)ST-3302Stapler9.99
5DL-44101 (your answer goes here)DL-4410Desk lamp24.00
6FD-1005Folders1.80

Create a free account to practise every lookup in Excel Foundations.

Sort, filter and PivotTable exercises

These four use the orders table from exercises 11 to 15, and Excel’s menus in place of formulas. Do them on a copy of the table, or on the Sort and filter sheet in the workbook, so your formulas stay as they are.

  1. Sort the orders by amount, largest first: select the table, then on the Data tab choose Sort. Which order comes first?
  2. Turn on the filter (Data tab, Filter) and show only the Paid orders. How many are left, and what do their amounts add up to? Select the amounts and read the Sum at the bottom of the window.
  3. Insert a PivotTable (Insert tab, PivotTable) with Region in Rows and Amount in Values. What does it show for each region?
  4. Copy the Customer column to an empty sheet, then remove the duplicates (Data tab, Remove Duplicates). How many names are left?

Answers to exercises 31 to 34

ExerciseWhat you should see
31Order 1006: Tom’s order of 310.
326 orders, adding up to 560.
33East 220, North 455 and South 435, with a grand total of 1,110.
345 names: Lena, Omar, Priya, Sam, Tom.

Our guide to finding and removing duplicates goes further than exercise 34: how to see what Remove Duplicates will take out before you run it, and how to do the same with a formula.

Questions

How do I practise Excel?

Work on small tables where you can check the answer. Write the formula, compare its result with the answer, then change a number in the table and make sure the result changes with it. Do the levels in order: each one uses skills from the level before.

Where can I get data to practise on?

The practice workbook on this page has every table ready to use. To make your own, ten rows of something you track, such as expenses or grades, are enough to practise SUM, IF, COUNTIF and lookups.

Do these exercises work in Google Sheets?

Yes. Every formula on this page works in Google Sheets, XLOOKUP, FILTER, SORT and UNIQUE included. The menus have different names there: Data, then Sort range; Data, then Create a filter; Insert, then Pivot table; and Data, then Data cleanup, then Remove duplicates.

Which version of Excel do I need?

Most of the exercises work in Excel 2010 and later. Exercises 18, 20, 26, 29 and 30 use XLOOKUP, FILTER, SORT or UNIQUE, which need Excel 2021 or later, Microsoft 365, Excel for the web or Google Sheets. Each XLOOKUP answer comes with a formula for older versions too.

What Excel skills do employers test?

Excel tests for office jobs tend to cover the beginner and intermediate skills on this page: sums, averages and percentages, IF, COUNTIF and SUMIF, and lookups, often with a PivotTable and a time limit. Our guide to Excel assessment tests explains each kind of test and has a practice test with answers.

How do I know which level I’m at?

Start with the first set that has something new in it. If you can do every exercise in a set without looking at the answers, move on to the next one. If a set takes several tries, do it again the next day before you go further.

Can I practise Excel online for free?

Yes. The three tasks on this page run in your browser, and so does Excel Foundations, our free course: 30 lessons and 82 exercises in a live sheet that checks each formula. Excel for the web is free with a Microsoft account too.

Keep practising

Excel Foundations, our free course, has 30 short lessons and 82 exercises in a live sheet. The checker reads each formula and tells you what to fix, and passing the final test earns a certificate of completion.

See what’s in Excel Foundations

For more at the advanced level, Excel Intermediate and Excel for Analysis have 110 exercises between them on dates, INDEX and MATCH, dynamic arrays, SUMPRODUCT and LET. Both come with Pro. If you have an Excel test coming up for a job, our guide to Excel assessment tests has a practice test with answers, and Excel Test Prep has timed practice tests and two full mock tests.

Start with Excel Foundations. It’s free.

Pro is $19 a month or $99 a year for every other track, with SQL included as it launches.

Create free account Go to your lessons