lookup between a range.

countryfan_nt

Well-known Member
Joined
May 19, 2004
Messages
758
Hello friends,

I tried using the Vlook function by looking for 52 or 72 or 66. The arrays are Col A & B.


I understand why it is not working col A does not have an excat match, is there anyway around it to make it work?

COL A COL B
52 0 to 28 1
72 29 to 33 2
66 34 to 37 3
38 to 42 4
43 to 50 5
51 to 58 6
59 to 63 7
64 to 68 8
69 to 95 9
96 10

Thank you,
Nawaf
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
=LOOKUP(F1,{0,28,33,37,42,50,58,63,68,95},{1,2,3,4,5,6,7,8,9,10})

where F1 houses the lookup value.

HTH
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,424
Members
448,961
Latest member
nzskater

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