Function Problems

Fix Incorrect Customer Names in the Excel Sales Invoice Tracker

Phi Hung VoPhi Hung Vo Nov 25, 2026 869 views

Question details

Correct the customer lookup formula in the Sales Invoice Tracker so invoices show the customer name associated with the exact customer number.

Fix Incorrect Customer Names in the Excel Sales Invoice Tracker
Product
Microsoft Excel Sales Invoice Tracker template
Device & OS
not provided
Scenario
A user selects an invoice in the tracker and expects the Invoice sheet to display the corresponding customer name.
Observed behavior
Customer numbers 10 through 19 may return customer 1, and customer 20 may return customer 2 when the customer lookup uses approximate matching.
Before you start

Open the Sales Invoice Tracker and locate the Invoice sheet and cell C4. If the sheet is protected, check whether you have the password needed to unprotect it.

Solution 1Recommended

Change the Customer Lookup in Invoice Cell C4 to an Exact Match

Use this fix when the customer name lookup in C4 ends with TRUE and returns the wrong customer.

The outer VLOOKUP searches CustomerList for the customer associated with the invoice. Changing its final argument from TRUE to FALSE requires an exact match.

1
Unprotect the Invoice sheet

Open the Invoice sheet, then select Review > Unprotect Sheet. Enter the password if Excel requests one.

2
Update the formula

Select cell C4 and replace its formula in the formula bar with =IFERROR(VLOOKUP(VLOOKUP(rngInvoice,InvoicesMain,2,FALSE),CustomerList,3,FALSE),""). Press Enter.

3
Test customer names

Use the invoice selector on the Invoice sheet to check invoices for customers 10, 19, and 20 against the customer list. Confirm that C4 displays the correct names.

4
Protect the sheet again

Select Review > Protect Sheet and set the desired protection options. Save the workbook after confirming the results.

Change the Customer Lookup in Invoice Cell C4 to an Exact Match
Blank result after the change: IFERROR returns a blank if the lookup cannot find a match. Check that the customer number exists in CustomerList and that its value and data type match the invoice record.
Fix the lookup in WPS Spreadsheet

Correct the Invoice Tracker Formula in WPS Spreadsheet

Open the tracker in WPS Spreadsheet and change the customer lookup in cell C4 to use an exact match.

  1. 1. Open the tracker: Open WPS Spreadsheet and use Open to select the Sales Invoice Tracker workbook.
  2. 2. Unlock the sheet: Select the Invoice sheet and, if it is protected, choose Review > Unprotect Sheet. Enter the password if prompted.
  3. 3. Edit cell C4: Select C4 and enter =IFERROR(VLOOKUP(VLOOKUP(rngInvoice,InvoicesMain,2,FALSE),CustomerList,3,FALSE),"") in the formula bar, then press Enter.
  4. 4. Test and save: Use the invoice selector to verify customer names, then choose Review > Protect Sheet if needed and save the workbook.
Correct customer names with an exact-match VLOOKUP formulaOpen and edit Microsoft Excel XLSX workbooksUse a familiar spreadsheet interface to review and test formulas
microsoft office alternative - wps office

Frequently Asked Questions

Why does customer 10 show the name for customer 1?

The customer lookup in Invoice cell C4 may use TRUE for approximate matching. Change the outer VLOOKUP's final argument to FALSE so it looks for the exact customer number.

What does FALSE do in the VLOOKUP formula?

FALSE tells VLOOKUP to find an exact match in the first column of the lookup range. If it finds no match, the surrounding IFERROR formula displays a blank.

Why can't I edit cell C4?

The Invoice sheet may be protected. Select Review > Unprotect Sheet and enter the password if prompted, then edit C4 in the formula bar.

What should I check if the customer name is blank after the fix?

Check that the customer number exists in CustomerList and matches the invoice record in both value and data type. The IFERROR formula hides lookup errors by returning a blank.