lookup between a range.

countryfan_nt

Well-known Member
Joined
May 19, 2004
Messages
732
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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Krishnakumar

Well-known Member
Joined
Feb 28, 2003
Messages
2,615
=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
 

Forum statistics

Threads
1,175,946
Messages
5,900,493
Members
434,833
Latest member
lulubalisa

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
Top