Fix Incorrect Customer Names in the Excel Sales Invoice Tracker
Question details
Correct the customer lookup formula in the Sales Invoice Tracker so invoices show the customer name associated with the exact customer number.

- 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.
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.
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.
Open the Invoice sheet, then select Review > Unprotect Sheet. Enter the password if Excel requests one.
Select cell C4 and replace its formula in the formula bar with =IFERROR(VLOOKUP(VLOOKUP(rngInvoice,InvoicesMain,2,FALSE),CustomerList,3,FALSE),""). Press Enter.
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.
Select Review > Protect Sheet and set the desired protection options. Save the workbook after confirming the results.

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. Open the tracker: Open WPS Spreadsheet and use Open to select the Sales Invoice Tracker workbook.
- 2. Unlock the sheet: Select the Invoice sheet and, if it is protected, choose Review > Unprotect Sheet. Enter the password if prompted.
- 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. Test and save: Use the invoice selector to verify customer names, then choose Review > Protect Sheet if needed and save the workbook.

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.




