Forumula to lookup zip codes assigned to a user and return their name

arace1118

New Member
Joined
Feb 4, 2018
Messages
3
Hello,

This one has stumped me for a few days now and I desperately need help. I thought simple lookup formulas would do the trick, but so far I can only get the desired result by having a ton of IFS functions (which is not efficient).

What I need to do is have a formula in "C" that is looking at "A", and return the name found in "B" that corresponds with the zip code owners name.
(This is a sample of a sheet that is 5,000+ records and 25+ users.)

Match%20zip%20to%20user_zpshizip2mi.png


Thank you in advance!!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
it's possible to do this look-up but why not arrange your table in M and N as a normal table with zip codes in one column and names in another so then it's a very simple vlookup?
 
Upvote 0
I could do that, but it would be very hard for my territory managers to keep up with data placed like that. I will do it that way if needed, but I'm hoping there is a better solution that would allow us to have the names at the top and zip codes below each person.

Thank you!
 
Upvote 0
You can use this formula. But do consider the option to rearrange the Names and Zip Codes in order to have a proper table, you can use faster formulas, pivot tables etc. And in general it's just how data should be arranged to make things easier


Excel 2013/2016
ABCDEFGHIJKLMNO
1zipcitystateAddress 2NotesStatusOwnerAustinKenwin
275002PortlandOrrfjerfifqdnew ownerAustin7509875001
37500275150
475999
5
6
7
8
Sheet1
Cell Formulas
RangeFormula
I2{=INDEX($M$1:$N$1,MAX(IF(C2=$M$2:$N$5,COLUMN($M$1:$N$1)-COLUMN($M$1)+1)))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top