Forum Discussion
Jamesboden
Sep 02, 2022Copper Contributor
Part lookup
Hey Guys. Hoping someone can help. I'm trying to do a Vlookup for postcodes and what area they are. I need a Vlookup rule that will only search for the first one of two letters of the postcode, not...
Jamesboden
Sep 02, 2022Copper Contributor
Jamesboden
Sep 02, 2022Copper Contributor
So basically, If I enter the first part of any postcode. Say SO I want it to return the area its is in.
- OliverScheurichSep 02, 2022Gold Contributor
=VLOOKUP(D2,$A$2:$B$11,2,FALSE)You can try this formula. The ranges can be adapted as required.
- JamesbodenSep 02, 2022Copper ContributorHey. this is fine. but I want to put in a full postcode AB1 1AA for example and it return an answer.
- OliverScheurichSep 02, 2022Gold Contributor
=IFERROR(VLOOKUP(LEFT(D2,2),$A$2:$B$11,2,FALSE),VLOOKUP(LEFT(D2,1),$A$2:$B$11,2,FALSE))You can try this formula.