Use VLOOKUP for a Partial Postcode Lookup in Excel
Question details
Find the area associated with a postcode using only its first letter.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains full postcodes and a separate table mapping postcode letters to areas.
- Observed behavior
- The lookup should return the area mapped to the first letter rather than match the full postcode.
Check that the first column of your lookup table contains individual postcode letters and the next column contains their corresponding areas. Identify the cell containing the full postcode and adjust the example cell references if necessary.
Combine LEFT and VLOOKUP to Match the First Postcode Letter
Use this formula when each first letter in your lookup table maps to one area.
Enter postcode letters in B4:B16 and their corresponding areas in C4:C16. Place the full postcode to look up in F4.
Select an empty result cell, such as G4, and enter =VLOOKUP(LEFT(F4,1),$B$4:$C$16,2,FALSE). Press Enter.
Drag the fill handle from G4 down the result column. The postcode reference changes for each row, while $B$4:$C$16 remains fixed.

Look Up Postcode Areas in WPS Spreadsheet
Use the same LEFT and VLOOKUP formula in WPS Spreadsheet to return an area based on the first letter of a postcode.
- 1. Open your spreadsheet: Open WPS Spreadsheet and select Open to load your workbook.
- 2. Prepare the data: Enter postcode letters in B4:B16, their areas in C4:C16, and a full postcode in F4.
- 3. Add the lookup formula: Select G4, enter =VLOOKUP(LEFT(F4,1),$B$4:$C$16,2,FALSE), and press Enter.
- 4. Fill the remaining rows: Drag the fill handle from G4 down to calculate areas for additional postcodes.

Frequently Asked Questions
Why does the formula return #N/A?
The first letter extracted from F4 may not appear in B4:B16. Check the lookup table and make sure the postcode does not begin with a space.
How can I ignore leading spaces in a postcode?
Use =VLOOKUP(LEFT(TRIM(F4),1),$B$4:$C$16,2,FALSE). TRIM removes leading and trailing spaces before LEFT extracts the first character.
What do the dollar signs in the lookup range do?
In $B$4:$C$16, the dollar signs keep the lookup range fixed when you copy or fill the formula into other cells.
What happens if the lookup table contains the same letter twice?
VLOOKUP returns the area from the first matching row. Use one row per postcode letter if each letter should map to a single area.




