Function Problems

Use VLOOKUP for a Partial Postcode Lookup in Excel

Steve KSteve K Nov 18, 2026 869 views

Question details

Find the area associated with a postcode using only its first letter.

Use VLOOKUP for a Partial Postcode Lookup in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Set up the lookup table

Enter postcode letters in B4:B16 and their corresponding areas in C4:C16. Place the full postcode to look up in F4.

2
Enter the formula

Select an empty result cell, such as G4, and enter =VLOOKUP(LEFT(F4,1),$B$4:$C$16,2,FALSE). Press Enter.

3
Apply it to more postcodes

Drag the fill handle from G4 down the result column. The postcode reference changes for each row, while $B$4:$C$16 remains fixed.

Combine LEFT and VLOOKUP to Match the First Postcode Letter
How the match works: LEFT extracts one character from F4, and FALSE requests an exact match in the first column of the lookup range. If the letter is missing from the table, the formula returns #N/A.
WPS Spreadsheet

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. 1. Open your spreadsheet: Open WPS Spreadsheet and select Open to load your workbook.
  2. 2. Prepare the data: Enter postcode letters in B4:B16, their areas in C4:C16, and a full postcode in F4.
  3. 3. Add the lookup formula: Select G4, enter =VLOOKUP(LEFT(F4,1),$B$4:$C$16,2,FALSE), and press Enter.
  4. 4. Fill the remaining rows: Drag the fill handle from G4 down to calculate areas for additional postcodes.
Match postcode areas using the first letter of each postcodeOpen and edit Microsoft Excel XLSX and XLS filesCopy the formula down a column for multiple lookupsWork in a familiar spreadsheet interface
microsoft office alternative - wps office

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.