Excel practice › Excel interview test › Accounts payable
Excel test for accounts payable interviews: 8 practice exercises with answers
This is a free Excel test for accounts payable and accounts assistant roles, with answers. You solve 8 exercises in a working spreadsheet in your browser: due dates from payment terms, an early-payment discount, a duplicate invoice check and the total of a payment run. No download and no sign-up.
It is not any employer's or test vendor's actual test. It covers the Excel skills that tests for accounts payable jobs commonly list, on made-up vendors and invoices.
What these tests check
| Level | What you're asked to do | On this page |
|---|---|---|
| Basic | Add a number of days to a date; IF that returns one of two texts | Exercises 1 and 2 |
| Intermediate | An exact-match lookup in the vendor list, alone and inside a date calculation; IF with a test on two dates; two conditions at once (AND inside IF) | Exercises 3 to 6 |
| Advanced | A count with two conditions used as a test (COUNTIFS): a duplicate invoice; a total with a status and a date limit (SUMIFS): a payment run | Exercises 7 and 8 |
Tests differ by employer and by role. Ask the recruiter which version of Excel the test uses and which level it targets.
This page practices formulas. It doesn't cover pivot tables, bank reconciliation, the accounting system you'd work in, or keyboard shortcuts. It is the payables side only: the Excel test for accounting interviews is the receivables side, with a budget variance, an account lookup and an aging report.
Part 1: due dates and payment terms
The data is made up: eight vendor invoices in the log of a small office. Each vendor gives a number of days to pay, counted from the invoice date. Those are its payment terms.
Type the formula in the box and press Enter. Clicking a cell inserts its address. Each answer is checked on the data you see and again on changed data, so a typed-in number won't pass. The answer is under each exercise.
The Terms column holds each vendor's payment terms in days, counted from the invoice date. In F2, calculate the due date of invoice 3381.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Invoice | Vendor | Invoice date | Amount | Terms | Due date |
| 2 | 3381 | Alder Paper | 10/5/2026 | 1250 | 30 | |
| 3 | 20918 | Copperleaf Print | 10/7/2026 | 2140 | 45 | |
| 4 | 7702 | Kestrel Toner | 10/8/2026 | 486.5 | 30 | |
| 5 | 5540 | Eastgate Packaging | 10/12/2026 | 3260 | 60 | |
| 6 | 3396 | Alder Paper | 10/19/2026 | 890 | 30 | |
| 7 | 412 | Dunmore Supply | 10/22/2026 | 375 | 15 | |
| 8 | 7715 | Kestrel Toner | 10/27/2026 | 1120 | 30 | |
| 9 | 419 | Dunmore Supply | 10/29/2026 | 264.8 | 15 |
Show the answer
=C2+E2 gives 11/4/2026.
Excel stores a date as a number of days, so a date plus 30 is the date 30 days later: October 5 plus 30 days is November 4. Point at the Terms cell and don't type the 30: the vendor in row 3 gives 45 days. In Excel the result can show as a plain number until you format the cell as a date.
The due dates are filled in and the report date is in G2. In E2, show Overdue when invoice 3381 is past its due date on the report date, and Not due otherwise. An invoice due on the report date itself is not overdue yet.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Invoice | Vendor | Due date | Amount | Overdue? | As of | |
| 2 | 3381 | Alder Paper | 11/4/2026 | 1250 | 11/6/2026 | ||
| 3 | 20918 | Copperleaf Print | 11/21/2026 | 2140 | |||
| 4 | 7702 | Kestrel Toner | 11/7/2026 | 486.5 | |||
| 5 | 5540 | Eastgate Packaging | 12/11/2026 | 3260 | |||
| 6 | 3396 | Alder Paper | 11/18/2026 | 890 | |||
| 7 | 412 | Dunmore Supply | 11/6/2026 | 375 | |||
| 8 | 7715 | Kestrel Toner | 11/26/2026 | 1120 | |||
| 9 | 419 | Dunmore Supply | 11/13/2026 | 264.8 |
Show the answer
=IF(G2>C2,"Overdue","Not due") gives Overdue.
IF returns one of two values, and a text result goes in quotes. Two dates compare like two numbers, because Excel stores a date as a number of days: the later date is the larger one. The detail to get right is the due date itself. Invoice 412 in row 7 is due on the report date, and with >= it would show as overdue. Lock the report date as $G$2 before copying the formula down.
The log has no terms yet. The vendor list in F1:G6 holds each vendor's payment terms in days. In D2, return the terms for the vendor of the invoice in row 2.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Invoice | Vendor | Invoice date | Terms | Vendor | Terms (days) | |
| 2 | 3381 | Alder Paper | 10/5/2026 | Alder Paper | 30 | ||
| 3 | 20918 | Copperleaf Print | 10/7/2026 | Copperleaf Print | 45 | ||
| 4 | 7702 | Kestrel Toner | 10/8/2026 | Dunmore Supply | 15 | ||
| 5 | 5540 | Eastgate Packaging | 10/12/2026 | Eastgate Packaging | 60 | ||
| 6 | 3396 | Alder Paper | 10/19/2026 | Kestrel Toner | 30 | ||
| 7 | 412 | Dunmore Supply | 10/22/2026 | ||||
| 8 | 7715 | Kestrel Toner | 10/27/2026 | ||||
| 9 | 419 | Dunmore Supply | 10/29/2026 |
Show the answer
=VLOOKUP(B2,F2:G6,2,FALSE) gives 30.
The value to find is the vendor in B2, the table is F2:G6 and the terms are its 2nd column. FALSE asks for an exact match. Before copying the formula down, lock the table as $F$2:$G$6. =XLOOKUP(B2,F2:F6,G2:G6) returns the same number. More on VLOOKUP and XLOOKUP.
Same sheet, but now column D is the due date and there is no Terms column to help. In D2, calculate the due date of invoice 3381 in one formula: the invoice date plus the vendor's terms from the list in F1:G6.
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Invoice | Vendor | Invoice date | Due date | Vendor | Terms (days) | |
| 2 | 3381 | Alder Paper | 10/5/2026 | Alder Paper | 30 | ||
| 3 | 20918 | Copperleaf Print | 10/7/2026 | Copperleaf Print | 45 | ||
| 4 | 7702 | Kestrel Toner | 10/8/2026 | Dunmore Supply | 15 | ||
| 5 | 5540 | Eastgate Packaging | 10/12/2026 | Eastgate Packaging | 60 | ||
| 6 | 3396 | Alder Paper | 10/19/2026 | Kestrel Toner | 30 | ||
| 7 | 412 | Dunmore Supply | 10/22/2026 | ||||
| 8 | 7715 | Kestrel Toner | 10/27/2026 | ||||
| 9 | 419 | Dunmore Supply | 10/29/2026 |
Show the answer
=C2+VLOOKUP(B2,F2:G6,2,FALSE) gives 11/4/2026.
A function's result is a number, so it can be part of a calculation: the lookup returns 30 and the formula adds it to October 5. The result is the date from exercise 1, without the helper column. =C2+XLOOKUP(B2,F2:F6,G2:G6) gives the same date where XLOOKUP exists. For a vendor that isn't on the list the lookup gives #N/A, and so does the whole formula. Catching that with IFERROR is exercise 10 of the general interview test.
Part 2: checks before you pay
A batch of eight invoices keyed in this week, waiting for approval. Three checks before any of them is paid: is there a discount for paying early, do the quantities match the purchase order, and was an invoice entered twice.
These vendors give a discount for paying early. When the payment goes out 10 days or fewer after the invoice date, you take the rate in H2 off the amount. Later than that, you pay the full amount. The next payment run is on the date in G2. In E2, calculate what to pay for invoice 3417.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Invoice | Vendor | Invoice date | Amount | To pay | Pay date | Rate | |
| 2 | 3417 | Alder Paper | 11/5/2026 | 1400 | 11/13/2026 | 0.02 | ||
| 3 | 7731 | Kestrel Toner | 11/2/2026 | 612.5 | ||||
| 4 | 20931 | Copperleaf Print | 10/29/2026 | 2180 | ||||
| 5 | 5562 | Eastgate Packaging | 11/4/2026 | 3050 | ||||
| 6 | 7731 | Dunmore Supply | 11/6/2026 | 318 | ||||
| 7 | 3417 | Alder Paper | 11/5/2026 | 1400 | ||||
| 8 | 3425 | Alder Paper | 11/10/2026 | 940 | ||||
| 9 | 7738 | Kestrel Toner | 11/9/2026 | 2315 |
Show the answer
=IF(G2-C2<=10,D2*(1-H2),D2) gives 1372.
The test of an IF can be a calculation. The pay date minus the invoice date is the number of days between them: 8 here, so the discount applies. 1-H2 is the share you still pay, and D2*(1-H2) is the amount less 2%. D2-D2*H2 is the same thing. Keeping the rate in a cell means one change updates every row: lock it as $H$2, and the pay date as $G$2, before copying the formula down.
An invoice is paid only when the quantity received equals the quantity on the purchase order, and the amount is at or under the approval limit in H2. In F2, show Pay when both are true for invoice 3417, and Hold otherwise.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Invoice | Vendor | Amount | PO qty | Received | Decision | Limit | |
| 2 | 3417 | Alder Paper | 1400 | 50 | 50 | 2000 | ||
| 3 | 7731 | Kestrel Toner | 612.5 | 12 | 12 | |||
| 4 | 20931 | Copperleaf Print | 2180 | 500 | 500 | |||
| 5 | 5562 | Eastgate Packaging | 3050 | 200 | 180 | |||
| 6 | 7731 | Dunmore Supply | 318 | 30 | 30 | |||
| 7 | 3417 | Alder Paper | 1400 | 50 | 50 | |||
| 8 | 3425 | Alder Paper | 940 | 40 | 36 | |||
| 9 | 7738 | Kestrel Toner | 2315 | 20 | 20 |
Show the answer
=IF(AND(E2=D2,C2<=H2),"Pay","Hold") gives Pay.
AND returns TRUE only when every condition is true, and IF turns that into one of the two words. Each condition is a complete comparison. With OR, invoice 20931 in row 4 would be paid: its quantities match, but 2,180 is over the limit. Copied down with the limit locked as $H$2, the formula also says Pay for row 7, which is the same invoice as row 2. The next exercise catches that.
One invoice in this batch was keyed in twice. A duplicate is a row with the same vendor and the same invoice number as another row. The number alone doesn't prove it: Kestrel Toner and Dunmore Supply each sent an invoice 7731. In E2, show Duplicate when the invoice in row 2 is in the batch more than once, and OK otherwise.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Invoice | Vendor | Invoice date | Amount | Check |
| 2 | 3417 | Alder Paper | 11/5/2026 | 1400 | |
| 3 | 7731 | Kestrel Toner | 11/2/2026 | 612.5 | |
| 4 | 20931 | Copperleaf Print | 10/29/2026 | 2180 | |
| 5 | 5562 | Eastgate Packaging | 11/4/2026 | 3050 | |
| 6 | 7731 | Dunmore Supply | 11/6/2026 | 318 | |
| 7 | 3417 | Alder Paper | 11/5/2026 | 1400 | |
| 8 | 3425 | Alder Paper | 11/10/2026 | 940 | |
| 9 | 7738 | Kestrel Toner | 11/9/2026 | 2315 |
Show the answer
=IF(COUNTIFS(A2:A9,A2,B2:B9,B2)>1,"Duplicate","OK") gives Duplicate.
COUNTIFS counts the rows where the invoice number equals A2 and the vendor equals B2. The row counts itself, so 1 means the invoice is there once and 2 means it was entered again: rows 2 and 7 here. A count on the invoice number alone would also flag rows 3 and 6, two different vendors with an invoice 7731. Before copying the formula down, lock both ranges: $A$2:$A$9 and $B$2:$B$9.
Part 3: the payment run
Back to the invoice log from Part 1, a few days later. The due dates are filled in and two invoices have been paid.
The next payment run covers every invoice with status Unpaid that is due on or before the date in G2. In H2, total what that run has to pay.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Invoice | Vendor | Due date | Amount | Status | Pay through | Total | |
| 2 | 3381 | Alder Paper | 11/4/2026 | 1250 | Unpaid | 11/13/2026 | ||
| 3 | 20918 | Copperleaf Print | 11/21/2026 | 2140 | Unpaid | |||
| 4 | 7702 | Kestrel Toner | 11/7/2026 | 486.5 | Unpaid | |||
| 5 | 5540 | Eastgate Packaging | 12/11/2026 | 3260 | Unpaid | |||
| 6 | 3396 | Alder Paper | 11/18/2026 | 890 | Paid | |||
| 7 | 412 | Dunmore Supply | 11/6/2026 | 375 | Paid | |||
| 8 | 7715 | Kestrel Toner | 11/26/2026 | 1120 | Unpaid | |||
| 9 | 419 | Dunmore Supply | 11/13/2026 | 264.8 | Unpaid |
Show the answer
=SUMIFS(D2:D9,E2:E9,"Unpaid",C2:C9,"<="&G2) gives 2001.3.
SUMIFS starts with the range to add up, then takes pairs of range and condition. A row has to meet both to be counted. A comparison with a cell is written as text joined to the cell: "<="&G2. Three invoices qualify: 3381, 7702 and 419. With < alone, invoice 419, due exactly on that date, would be left out and the total would be 1,736.5. Without the status condition, invoice 412, which is already paid, would be added too.
How to use the time you have
If the test is tomorrow. Do the 8 exercises on this page. For each one you couldn't solve, open the answer, read why it works, then empty the box and type the formula yourself. Then take the free 10-question Excel test, which ends with a level and the first topic you missed.
If you have a few days. Work on what you missed. Lesson 1 (cells, SUM, AVERAGE, MAX) and lesson 2 (IF, AND, OR, nested IF) are free, and so are the function pages linked from each answer. The lessons on VLOOKUP, SUMIFS and COUNTIFS and dates are part of Pro: $29 once for all three tracks, or $19 for the Excel track alone. No subscription, and a 14-day refund. Then do the accounting page, which is free: it is the receivables side of the same job family, with 8 more exercises and answers.
What is not on this page. Two formulas that fit this job are practiced on the general interview test, also free: a lookup for a name that isn't on the list (IFERROR, exercise 10) and the working days between two dates (NETWORKDAYS, exercise 9). Pivot tables and keyboard shortcuts are lesson 9 and lesson 8, both part of Pro. Bank reconciliation and the accounting system itself are not practiced anywhere on this site.
Rather work in Excel itself? Download these 8 exercises as a workbook (.xlsx): one sheet per exercise, answers on the last sheet. All practice files
Questions people ask
Is this Excel test for accounts payable free, with answers?
Yes. Every exercise has a Show the answer line under it, with the formula, its result and a short explanation. The page is free and there is nothing to sign up for.
Does this Excel test fit an accounts assistant or another accounting job?
It fits the payables part of those jobs: due dates, vendor terms, checks before paying and a payment run. For the receivables part, the Excel test for accounting interviews has 8 more exercises with answers, on a budget, a chart of accounts and an aging report. Neither page practices pivot tables or bank reconciliation.
Is this the Excel test an accounts payable employer will give me?
No. This is practice material written for this site, on made-up vendors and invoices. It is not a copy of any employer's or test company's test. Ask the recruiter which version of Excel the test uses, which level it targets, whether it is timed, and whether it includes pivot tables, which this page does not practice.
Do I need Excel installed for this free Excel test for an accounting interview?
No. The spreadsheet on this page runs in your browser. The formulas are the same ones Excel uses, so what you type here is what you would type in Excel. Two differences: the sheet shows plain numbers, with no currency or percentage formatting, and it has no TODAY function, so the report date is always in a cell.