Hi,
We have different sales reps who deal with different areas of the UK, companies are allocated to sales reps depending on the start of the company's postcode. E.g. postcode starting AB is allocated to Joe Bloggs, postcode starting NE is allocated to Fred Smith.
I have an Excel spreadsheet containing companies from all over the UK (postcode in column P) and I need the corresponding sales rep's name entered into column D.
The postcodes are in full, so it would read, for example, AB21 3GY rather than just AB, so the macro would need to look at the start of the cell, which could be either two letters or one, as some postcodes have just one letter at the start.
I did try an IF formula rather than a macro, but I think it will get too complicated (or be impossible) as there are many postcodes.
Is anyone able to help?
Many thanks
Bookmarks