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.
Excel file, 17 KB. It opens in Google Sheets too.
- Do the tasks in order. A few of them use the answer before.
- Check your result against the answers under each set. A different formula that gives the same result is fine.
- 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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Day | Orders | Revenue | Per order |
| 2 | Mon | 18 | 612 | (your answer goes here) |
| 3 | Tue | 22 | 748 | (your answer goes here) |
| 4 | Wed | 15 | 495 | (your answer goes here) |
| 5 | Thu | 27 | 945 | (your answer goes here) |
| 6 | Fri | 31 | 1,116 | (your answer goes here) |
| 7 | Sat | 40 | 1,520 | (your answer goes here) |
| 8 | Sun | 15 | 480 | (your answer goes here) |
| 9 | ||||
| 10 | Total | (your answer goes here) | (your answer goes here) | |
| 11 | Average | (your answer goes here) | (your answer goes here) |
- In
B10, add up the orders for the week. - In
C10, add up the revenue. - In
B11, work out the average number of orders a day. - In
C11, work out the average revenue a day, rounded to a whole number. - In
D2, work out Monday’s revenue per order: the revenue divided by the orders. Fill it down toD8.
Answers to exercises 1 to 5
| Exercise | Formula | How it works | Result |
|---|---|---|---|
| 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), | 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/B2 | The 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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Discount rate | 20% | ||
| 2 | ||||
| 3 | Product | Price | Discount | Sale price |
| 4 | Notebook | 4.50 | (your answer goes here) | (your answer goes here) |
| 5 | Pen set | 7.25 | (your answer goes here) | (your answer goes here) |
| 6 | Desk lamp | 32.00 | (your answer goes here) | (your answer goes here) |
| 7 | Stapler | 11.80 | (your answer goes here) | (your answer goes here) |
| 8 | Backpack | 45.00 | (your answer goes here) | (your answer goes here) |
| 9 | Mug | 8.95 | (your answer goes here) | (your answer goes here) |
| 10 | ||||
| 11 | Products | (your answer goes here) | ||
| 12 | Lowest price | (your answer goes here) | ||
| 13 | Top sale price | (your answer goes here) |
- In
C4, work out the discount on the notebook: its price times the rate inB1. LockB1with $ so the formula still points at it when you fill down toC9. - In
D4, take the discount off the price to get the sale price. Fill it down toD9. - In
B11, count the products. - In
B12, find the lowest price. - In
B13, find the highest sale price.
Answers to exercises 6 to 10
| Exercise | Formula | How it works | Result |
|---|---|---|---|
| 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-C4 | Price 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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Price | Qty | Total |
| 2 | Notebook | 3.50 | 12 | (your answer goes here) |
| 3 | Pens | 4.20 | 8 | (your answer goes here) |
| 4 | Stapler | 9.99 | 3 | (your answer goes here) |
| 5 | Desk lamp | 24.00 | 2 | (your answer goes here) |
| 6 | Folders | 1.80 | 25 | (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.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Order | Customer | Region | Amount | Status | Size |
| 2 | 1001 | Lena | North | 120 | Paid | (your answer goes here) |
| 3 | 1002 | Omar | South | 85 | Paid | (your answer goes here) |
| 4 | 1003 | Priya | North | 240 | Unpaid | (your answer goes here) |
| 5 | 1004 | Sam | East | 70 | Paid | (your answer goes here) |
| 6 | 1005 | Lena | North | 95 | Paid | (your answer goes here) |
| 7 | 1006 | Tom | South | 310 | Unpaid | (your answer goes here) |
| 8 | 1007 | Priya | East | 150 | Paid | (your answer goes here) |
| 9 | 1008 | Omar | South | 40 | Paid | (your answer goes here) |
| 10 | ||||||
| 11 | North orders | (your answer goes here) | ||||
| 12 | Unpaid total | (your answer goes here) | ||||
| 13 | South average | (your answer goes here) | ||||
| 14 | North paid | (your answer goes here) |
- In
F2, show Large when the amount is 100 or more, and Small when it isn’t. Fill it down toF9. - In
B11, count the orders from the North. - In
B12, add up the amounts that haven’t been paid. - In
B13, work out the average order from the South. - In
B14, add up the North’s paid orders.
Answers to exercises 11 to 15
| Exercise | Formula | How it works | Result |
|---|---|---|---|
| 11 | =IF(D2>=100, | 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, | COUNTIF counts the cells in C2:C9 that match North. | 3 |
| 13 | =SUMIF(E2:E9, | SUMIF checks E2:E9 for Unpaid and adds the amounts on the same rows of D2:D9. | 550 |
| 14 | =AVERAGEIF(C2:C9, | AVERAGEIF averages only the amounts on rows where the region is South. | 145 |
| 15 | =SUMIFS(D2:D9, | 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.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Code | Item | Price | Stock | Category | Status |
| 2 | BK-201 | Atlas | 18.00 | 12 | (your answer goes here) | (your answer goes here) |
| 3 | BK-202 | Cookbook | 24.50 | 0 | (your answer goes here) | (your answer goes here) |
| 4 | ST-301 | Notebook | 4.50 | 85 | (your answer goes here) | (your answer goes here) |
| 5 | ST-302 | Pen set | 7.25 | 6 | (your answer goes here) | (your answer goes here) |
| 6 | GF-401 | Gift card | 25.00 | 40 | (your answer goes here) | (your answer goes here) |
| 7 | GF-402 | Tote bag | 9.99 | 3 | (your answer goes here) | (your answer goes here) |
| 8 | ||||||
| 9 | Code | ST-302 | ||||
| 10 | Price | (your answer goes here) | ||||
| 11 | Stock | (your answer goes here) | ||||
| 12 | ||||||
| 13 | Code | BK-299 | ||||
| 14 | Price | (your answer goes here) |
- In
E2, show the category: the first two letters of the code. Fill it down toE7. - In
F2, show Out of stock when the stock is 0, Reorder when it’s under 10, and OK otherwise. Fill it down toF7. - In
B10, look up the price of the code inB9with XLOOKUP. - In
B11, look up the stock for the same code with VLOOKUP. B13holds a code that isn’t on the list. InB14, look up its price, and show Not found when there’s no match.
Answers to exercises 16 to 20
| Exercise | Formula | How it works | Result |
|---|---|---|---|
| 16 | =LEFT(A2, | 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, | 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,. | OK, Out of stock, OK, Reorder, OK, Reorder |
| 18 | =XLOOKUP(B9, | XLOOKUP finds B9 in the codes and returns the price from the same row. Also works: =INDEX(C2:C7,. | 7.25 |
| 19 | =VLOOKUP(B9, | VLOOKUP searches the first column of A2:D7 and returns its 4th column. FALSE asks for an exact match. | 6 |
| 20 | =XLOOKUP(B13, | 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,. | 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.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Student | Theory | Practical | Result |
| 2 | Amara | 78 | 66 | (your answer goes here) |
| 3 | Ben | 64 | 48 | (your answer goes here) |
| 4 | Chen | 91 | 85 | (your answer goes here) |
| 5 | Dina | 55 | 71 | (your answer goes here) |
| 6 | Eli | 83 | 52 | (your answer goes here) |
| 7 | Farah | 47 | 59 | (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.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Month | North | South | East | North so far | Change |
| 2 | Jan | 1,200 | 950 | 700 | (your answer goes here) | |
| 3 | Feb | 1,350 | 900 | 820 | (your answer goes here) | (your answer goes here) |
| 4 | Mar | 1,500 | 1,100 | 760 | (your answer goes here) | (your answer goes here) |
| 5 | Apr | 1,420 | 1,250 | 910 | (your answer goes here) | (your answer goes here) |
| 6 | May | 1,600 | 1,300 | 980 | (your answer goes here) | (your answer goes here) |
| 7 | Jun | 1,750 | 1,180 | 1,050 | (your answer goes here) | (your answer goes here) |
| 8 | ||||||
| 9 | Month | Apr | ||||
| 10 | Region | South | ||||
| 11 | Sales | (your answer goes here) | ||||
| 12 | Region total | (your answer goes here) | ||||
| 13 | Best East month | (your answer goes here) |
- In
E2, work out a running total of the North’s sales. Lock the start of the range, then fill down toE7. - In
F3, work out the North’s change from the month before, as a percentage. Fill it down toF7. - In
B11, return the sales for the month inB9and the region inB10, with INDEX and MATCH. - In
B12, add up all six months for the region inB10. - In
B13, find the month when the East sold most.
Answers to exercises 21 to 25
| Exercise | Formula | How it works | Result |
|---|---|---|---|
| 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)/B2 | New 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, | The first MATCH finds the row and the second finds the column. INDEX returns the cell where they cross. Also works: =XLOOKUP(B9,. | 1,250 |
| 24 | =SUM(INDEX(B2:D7, | A row number of 0 tells INDEX to return the whole column, and SUM adds it up. Also works: =SUM(XLOOKUP(B10,. | 6,680 |
| 25 | =INDEX(A2:A7, | 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),. | 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.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Date | Product | Qty | Price | Discount | From | Discount | |
| 2 | 2 Jan 2026 | Notebook | 10 | 4.50 | (your answer goes here) | 1 | 0% | |
| 3 | 9 Jan 2026 | Pen set | 4 | 7.25 | (your answer goes here) | 5 | 5% | |
| 4 | 15 Jan 2026 | Desk lamp | 2 | 32.00 | (your answer goes here) | 10 | 10% | |
| 5 | 3 Feb 2026 | Notebook | 6 | 4.50 | (your answer goes here) | |||
| 6 | 11 Feb 2026 | Backpack | 1 | 45.00 | (your answer goes here) | |||
| 7 | 20 Feb 2026 | Pen set | 8 | 7.25 | (your answer goes here) | |||
| 8 | 4 Mar 2026 | Notebook | 12 | 4.50 | (your answer goes here) | |||
| 9 | 18 Mar 2026 | Desk lamp | 3 | 32.00 | (your answer goes here) | |||
| 10 | ||||||||
| 11 | Value | (your answer goes here) | ||||||
| 12 | February orders | (your answer goes here) | ||||||
| 13 | ||||||||
| 14 | 5 units or more | Products | ||||||
| 15 | (your answer goes here) | (your answer goes here) | ||||||
| 16 | ||||||||
| 17 | ||||||||
| 18 |
- In
E2, look up each order’s discount inG2:H4by its quantity: 5% from 5 units and 10% from 10. Lock the table and fill down toE9. - In
B11, work out the value of all eight orders before discounts, in one formula: each quantity times its price, added up. - In
B12, count the orders placed in February. - In
A15, list the product and quantity of every order of 5 units or more. - In
D15, list each product once, in alphabetical order.
Answers to exercises 26 to 30
| Exercise | Formula | How it works | Result |
|---|---|---|---|
| 26 | =XLOOKUP(C2, | 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,. | 10%, 0%, 0%, 5%, 0%, 5%, 10%, 0% |
| 27 | =SUMPRODUCT(C2:C9, | SUMPRODUCT multiplies the two ranges row by row and adds up the results. | 418.00 |
| 28 | =COUNTIFS(A2:A9, | 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, | 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.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Code | Qty | Price | Code | Product | Price | ||
| 2 | ST-3302 | 4 | (your answer goes here) | NB-2041 | Notebook | 3.50 | ||
| 3 | NB-2041 | 10 | (your answer goes here) | PN-1180 | Pens | 4.20 | ||
| 4 | FD-1005 | 30 | (your answer goes here) | ST-3302 | Stapler | 9.99 | ||
| 5 | DL-4410 | 1 | (your answer goes here) | DL-4410 | Desk lamp | 24.00 | ||
| 6 | FD-1005 | Folders | 1.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.
- Sort the orders by amount, largest first: select the table, then on the Data tab choose Sort. Which order comes first?
- 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.
- Insert a PivotTable (Insert tab, PivotTable) with Region in Rows and Amount in Values. What does it show for each region?
- 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
| Exercise | What you should see |
|---|---|
| 31 | Order 1006: Tom’s order of 310. |
| 32 | 6 orders, adding up to 560. |
| 33 | East 220, North 455 and South 435, with a grand total of 1,110. |
| 34 | 5 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.