Purchase Order Tracker in Excel Using XLOOKUP and Drop-Downs

A purchase order (PO) tracker in Excel works as two parts: a log where every PO is recorded once, and a lookup screen where one PO number is picked from a drop-down and XLOOKUP pulls the supplier, value, status and received quantity from that log. The lookup screen shows the whole picture for one order without anyone scrolling through hundreds of rows. It needs Excel 2021 or Microsoft 365, because XLOOKUP is not available in earlier versions.

This guide covers how the tracker is built, how to choose the right lookup function, the exact setup steps, a worked example, the mistakes that cause most failures, and the point at which Excel stops being the right tool.

What the tracker is for and who needs it

A PO tracker answers four questions quickly: what was ordered, from whom, what has arrived, and what is still owed. In a small business these answers usually sit across email threads, a shared inbox and a finance system that nobody in purchasing can easily query. A tracker brings them into one reference.

It suits teams raising a few dozen to a few hundred POs a month, with one or two people maintaining the log. It suits operations managers who need a status view without a procurement system, and finance staff who need to match invoices to orders.

It does not suit high-volume purchasing with approval chains, supplier portals or three-way matching enforced by software. Those needs are covered in the section on when to stop using Excel.

Binsight Inventory Spreadsheet

Skip the setup

Binsight Inventory Spreadsheet

Stock in, stock out and reorder alerts that turn red before you run out. Uses lookups and conditional formatting.

See it on Taskdale →

Terms used in this guide

  • PO log: the master table in which each purchase order is recorded once, with one row per order line.
  • Lookup screen: the sheet where a user selects a PO number and reads its details.
  • Drop-down: a cell restricted to a list of allowed values, created with Data Validation.
  • Named range: a workbook name that refers to a range or table column, such as PO_List.
  • Excel Table: a formatted range with a name, headers and structured references such as tblPOLog[Status].
  • Lookup value: the item being searched for, here the PO number selected in the drop-down.
  • Return array: the column or columns from which the result is taken.
  • Receipt: a record of goods or services received against a PO, which may be partial.

How the tracker is built

The tracker uses three sheets. Keeping them separate prevents the most common structural problem, which is a single sheet where data entry and reporting compete for the same cells.

SheetPurposeWho edits it
ListsHolds the allowed status values, supplier names and approved unitsAdministrator, rarely
PO_LogOne row per PO line with order details, status and datesPurchasing, daily
ReceiptsOne row per delivery against a POReceiving staff
TrackerLookup screen with drop-down and formulasAnyone reading the data

The PO_Log and Receipts sheets hold the data. The Tracker sheet holds no data of its own, only formulas that read from the other two. This means a PO can be updated in one place and the Tracker reflects it immediately.

Choosing between XLOOKUP, VLOOKUP and INDEX/MATCH

Three functions can retrieve a value by PO number. The choice depends mainly on which Excel version the users have, and whether the lookup needs to go left or to handle missing values cleanly.

FunctionAvailable inSearches left of the key columnReturns a column chosen byHandles a missing value without extra wrapping
VLOOKUPAll versionsNoColumn number, which breaks if columns moveNo, returns #N/A
INDEX/MATCHAll versionsYesSeparate reference to the return columnNo, needs IFERROR
XLOOKUPExcel 2021, Microsoft 365, Excel for the webYesDirect reference to the return columnYes, through the if_not_found argument

For a new tracker on a current version of Excel, XLOOKUP is the better choice. It reads more clearly, it does not depend on column numbers that shift when someone inserts a column, and its built-in fallback text removes the need for nested error handling.

If any user works on Excel 2016 or 2019, use INDEX/MATCH instead. It produces the same result, only with more typing. Do not mix the two approaches in one workbook without a reason, because a reviewer who knows one style will misread the other.

Setting up the PO log

The PO log is the foundation. Errors here carry into every formula, so the setup should be done before any formula is written.

  1. SOP 1.1: Create the log as an Excel Table. Select the header row and the first data row, then press Ctrl+T and confirm that the table has headers. Name it tblPOLog in the Table Design tab.
  2. SOP 1.2: Define the column headers. Use the following columns in this order: PO Number, Date Raised, Supplier, Item Description, Quantity Ordered, Unit Price, Line Value, Required By, Status, Notes.
  3. SOP 1.3: Add a calculated column for Line Value. Enter =[@[Quantity Ordered]]*[@[Unit Price]] in the first row. The table then fills the formula downward automatically.
  4. SOP 1.4: Set the data formats. Format Date Raised and Required By as dates, Unit Price and Line Value as currency, and Quantity Ordered as a whole number. Text stored as numbers causes lookup failures, so check that every number is a number.
  5. SOP 1.5: Create the Status list on the Lists sheet. Enter the allowed values in a single column: Draft, Approved, Sent, Partially received, Received, Invoiced, Closed, Cancelled. Name the range StatusList.
  6. SOP 1.6: Apply status validation to the log. Select the Status column in tblPOLog, open Data Validation, choose List and enter =StatusList. This stops free-typed variations such as “Recieved” or “Partial” that would otherwise appear as separate statuses in any report.

A PO with three line items gets three rows. The PO Number repeats on each row. The lookup logic in the next sections assumes this, and the edge cases section explains how to handle it.

Building the PO number drop-down

The drop-down on the lookup screen must list every PO in the log, and it must grow when a new PO is added. A fixed range would miss new orders, so the list is built from the table column.

  1. SOP 2.1: Define a named range for the PO numbers. Open Formulas, then Name Manager, choose New, name it PO_List and set the refers-to field to =tblPOLog[PO Number].
  2. SOP 2.2: Create the drop-down cell. On the Tracker sheet, select the cell where the PO number will be chosen, for example C3.
  3. SOP 2.3: Open Data Validation. Go to Data, then Data Validation, then choose List from the Allow box.
  4. SOP 2.4: Enter the source. Type =PO_List in the Source field. Leave Ignore blank ticked and In-cell dropdown ticked.
  5. SOP 2.5: Add an error message. On the Error Alert tab, set a message such as “Select a PO number from the log.” This stops a user typing a number that does not exist.

The error alert is a control, not a guarantee. Pasting a value into the cell bypasses data validation. That is why the formulas also handle a PO number that is not in the log, as shown below.

Small Business Command Center

Ready-made template

Small Business Command Center

Clients, invoices, expenses and tasks in one workbook. A good fit if you run the business from a single file.

See it on Taskdale →

Writing the XLOOKUP formulas

XLOOKUP takes up to six arguments. For this tracker, four matter:

XLOOKUP(lookup_value, lookup_array, return_array, if_not_found)

  • lookup_value is the selected PO number, here $C$3.
  • lookup_array is the column that holds PO numbers, here tblPOLog[PO Number].
  • return_array is the column to return, for example tblPOLog[Supplier].
  • if_not_found is the text shown when the PO is not in the log, for example “Not in log”.

Each detail on the lookup screen uses the same pattern, changing only the return array.

Supplier:      =XLOOKUP($C$3, tblPOLog[PO Number], tblPOLog[Supplier], "Not in log")
Status:        =XLOOKUP($C$3, tblPOLog[PO Number], tblPOLog[Status], "Not in log")
Ordered qty:   =XLOOKUP($C$3, tblPOLog[PO Number], tblPOLog[Quantity Ordered], "Not in log")
Line value:    =XLOOKUP($C$3, tblPOLog[PO Number], tblPOLog[Line Value], "Not in log")
Required by:   =XLOOKUP($C$3, tblPOLog[PO Number], tblPOLog[Required By], "Not in log")

The $C$3 reference is absolute. It stays fixed when the formula is copied down or across, so every row on the Tracker sheet reads the same selected PO. Using a relative reference here is one of the most common errors, and it produces results that look plausible but change as the formula moves.

To return several fields with one formula, the return array can span adjacent columns:

=XLOOKUP($C$3, tblPOLog[PO Number], tblPOLog[[Supplier]:[Required By]], "Not in log")

This spills the results into adjacent cells. The cells to the right and below must be empty, or Excel returns a #SPILL! error. Single-field formulas are easier to audit, so most teams prefer them even though they repeat the lookup.

Adding the received quantity

The log shows what was ordered. Goods may arrive in several deliveries, so the received quantity comes from the Receipts sheet, summed by PO number.

Received to date:  =SUMIFS(tblReceipts[Qty Received], tblReceipts[PO Number], $C$3)
Outstanding:       =XLOOKUP($C$3, tblPOLog[PO Number], tblPOLog[Quantity Ordered], 0) - [Received to date cell]

SUMIFS returns zero when there are no receipts, so it needs no error handling. The outstanding quantity is the ordered quantity minus the received total. Replace [Received to date cell] with the actual cell reference, such as C9.

Worked example: tracking PO-2024-0147

The figures below are illustrative. They show how the tracker behaves in a realistic case.

A small packaging distributor raises purchase order PO-2024-0147 on 4 March for 400 corrugated cartons at £3.20 each, to be delivered by 14 March. The supplier is Harlow Packaging Ltd. The order is logged as one row in tblPOLog, with the Line Value column calculating £1,280.00.

On 12 March, 250 cartons arrive. Receiving staff add one row to tblReceipts with PO Number PO-2024-0147, Qty Received 250 and a date. The PO log status is changed from Sent to Partially received.

A user opens the Tracker sheet and selects PO-2024-0147 from the drop-down in C3. The lookup screen returns:

FieldResult
SupplierHarlow Packaging Ltd
StatusPartially received
Ordered quantity400
Received to date250
Outstanding150
Line value£1,280.00
Required by14 March

On 14 March the remaining 150 cartons arrive, and a second receipt row is added. The received total becomes 400, the outstanding figure falls to zero, and the status is changed to Received. If the user now types PO-2024-0999 into the drop-down cell by pasting, the Supplier field returns “Not in log”, which shows the lookup has found no match and is not returning a stale value.

The example shows the value of separating receipts from orders. The PO log records intent. The Receipts sheet records fact. A status cell can be wrong, but the sum of receipts cannot be wrong without a row being entered incorrectly.

Common mistakes and their fixes

  • Using a fixed range for the drop-down. A source such as =$B$2:$B$50 stops working at row 51. Use the named range built on the table instead.
  • Relative references in the lookup cell. Write $C$3, not C3, so the formula holds its reference when copied.
  • Forgetting the if_not_found argument. Without it, a missing PO shows #N/A, which breaks any total or chart that depends on the cell. Always supply a text fallback.
  • Hard-coding values on the Tracker sheet. A typed supplier name will not change when the log changes. Every field on the lookup screen should be a formula.
  • Mixing text and numbers in the key column. A PO number stored as a number will not match the same number stored as text. Pick one format and apply it to the whole column.
  • Letting anyone edit the formulas. Protect the Tracker sheet with Review, then Protect Sheet, leaving only the drop-down cell unlocked. This prevents accidental overwrites.
  • Using XLOOKUP in a shared file opened in older Excel. A colleague on Excel 2019 will see #NAME? errors. Confirm the version of every user before building.

When to stop using Excel for this

Excel is the right tool while the tracker is read more often than it is changed, the log stays under a few thousand rows, and one or two people maintain it. Move to a dedicated procurement or accounts-payable system when any of the following applies:

  • Purchase orders need approval by named managers before they are sent to suppliers.
  • Invoices must be matched automatically against orders and receipts, a process called three-way matching.
  • More than one team enters orders at the same time, and conflicting edits have already caused errors.
  • An auditor or lender asks for a full change history that Excel cannot produce on request.
  • The log passes a few thousand active lines, and recalculation begins to noticeably slow the workbook.

A simple test helps. If a mistake in the tracker would cause a payment to be made twice or an order to be missed, the tracker has become a financial control, and it needs controls that a spreadsheet does not provide.

Checklist before go-live

  • The PO log is an Excel Table named tblPOLog, with no blank rows inside it.
  • Status values are restricted to the Lists sheet through data validation.
  • The PO_List named range refers to the table column, not a fixed address.
  • The drop-down on the Tracker sheet accepts only values from PO_List, with an error alert.
  • Every lookup formula uses an absolute reference to the selected cell and an if_not_found argument.
  • Receipts are recorded on a separate sheet, and received totals use SUMIFS.
  • A duplicate check on PO Number runs weekly.
  • The Tracker sheet is protected, with only the drop-down cell unlocked.
  • Every intended user has Excel 2021, Microsoft 365 or Excel for the web.
  • A test PO has been entered, received in two parts, closed and checked against expected figures.
Bidwright Contractor Estimate and Job Costing

Get the finished file

Bidwright Contractor Estimate and Job Costing

Price jobs, track labour and materials against the quote, and see which jobs actually made money.

See it on Taskdale →

Scroll to Top