Forum Discussion
dipeshdhanak
Nov 20, 2023Copper Contributor
Help with Data Columns
I have a column of Data with a partial postcode, and each one is assigned to a Sales officer. so e.g., CV, B, DY, WV are all assigned to Joe Bloggs for example. In another column I have full postcodes, and I have to put the correct sales agent name next to the full postcode. Is there a quick way of doing this?
So far the way I have found is using Vlookup, but in the column with the full postcode, I have to delete and make it into a partial postcode so I can use exact lookup otherwise it won't give me the correct sales agent.
Thank you in advance.
You haven't told us what the full postcodes look like, so I made some up. See the attached demo.
- OliverScheurichGold Contributor
=INDEX($B$2:$B$5,MATCH(TRUE,ISNUMBER(SEARCH($A$2:$A$5,E2)),0))
An alternative could be this formula. Enter the formula with ctrl+shift+enter if you don't work with Office 365 or Excel for the web or Excel 2021.
- dipeshdhanakCopper ContributorThanks a lot.
You haven't told us what the full postcodes look like, so I made some up. See the attached demo.
- dipeshdhanakCopper ContributorThanks a lot think that saved me a few days.
- dipeshdhanakCopper ContributorActually upon checking, for some reason on a few of them, it has returned the wrong sales agent for some reason. So e.g. if im looking for BN8 6QB, and BN is Mrs Joy, its bringing up Mr Patel instead. BB is assigned to Mr Patel, so maybe the formula is getting confused when the full postcode has repeat letters in there?