Vlookup between 2 zip codes

Roha1

New Member
Joined
Jul 20, 2017
Messages
15
I need help here. I have tried to find an answer but nothing.

My problem is that I got lot of Zip Codes that connect to a spesific sales Rep.


A4 3000 B4 3069 C4 Person 1
A5 3070 B5 3299 C5 Person 2
A6 3300 B6 3599 C6 Person 3

F4 is the place I put the Zip code I want to find a match for.

Like this it goes on.

I found on that should have worked "=LOOKUP(2,1/($A$4:$A$80>=F4)/($B$4:$B$80<=F4);$C$4:$C$80)"

The reply I get is only "#DIV/0!"
What is wrong with this?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Is this what you want?


Excel 2010
ABCDEFG
430003069Person 13778Person 7
530703299Person 2
633003599Person 3
736003669Person 4
836703699Person 5
937003776Person 6
1037773799Person 7
1138003899Person 8
Sheet4
Cell Formulas
RangeFormula
G4=LOOKUP(F4,A4:A80,C4:C80)
 
Upvote 0
That worked, some of the times, but I did several test, and a lot of the time it is not correct :( It finds names that do not correspond to the correct number :/
 
Upvote 0
if your data is not sorted or has gaps in ranges covered, you can use this instead:

=INDEX(C4:C80,MAX((A4:A80<=F4)*(B4:B80>=F4)*(ROW(A4:A80)-ROW(A4)+1)))

Key - instead of entering this formula and hitting enter, hit Ctrl+Shift+Enter instead to make this an array function. It will show up in the formula bar surrounded by braces ( {=INDEX.....+1)))} ). Do NOT type in the braces manually.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
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