lookup function Doesn't work well

coxixx

New Member
Joined
Dec 31, 2012
Messages
24
ABcde
11020a5=lookup(e1,B1:C6,d1:d6)
22130b30
33140c31
44150d55
55160e80
66170f70

<tbody>
</tbody>












this lookup function doesn't work well ?does anyone can help?
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
For 80 the formula returns f:

Excel 2010
ABCDEF
111020a80f
222130b
333140c
444150d
555160e
666170f

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet4

Worksheet Formulas
CellFormula
F1=LOOKUP(E1,B1:B6,D1:D6)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
for 80 should say "not found"
 
Upvote 0
why you are using column A i don't need it at all.

Trying to help can be hard at times...

1020a5Not Foundanot Found
2130b30bbb
3140c31ccc
4150d55eee
5160e80Not Foundfnot found
6170f70fff
23bbb

<COLGROUP><COL style="WIDTH: 48pt" span=4 width=64><COL style="WIDTH: 134pt; mso-width-source: userset; mso-width-alt: 6343" width=178><COL style="WIDTH: 48pt" width=64><COL style="WIDTH: 62pt; mso-width-source: userset; mso-width-alt: 2929" width=82><TBODY>
</TBODY>

The data is in B1:D6; the values to look up in E1:E6...

F1, control+shift+enter and copy down:

=IFERROR(INDEX($D$1:$D$6,MATCH(1,IF(E1>=$B$1:$B$6,IF(E1<=$C$1:$C$6,1)),0)),"Not Found")

G1, just enter and copy down:

=LOOKUP(IF(E1 < MIN($B$1:$B$6),MIN($B$1:$B$6),E1),$B$1:$B$6,$D$1:$D$6)

H1, just enter and copy down:

=IF(E1<MIN($B$1:$B$6),"not Found",IF(E1>MAX($C$1:$C$6),"not found",LOOKUP(E1,$B$1:$B$6,$D$1:$D$6)))
 
Upvote 0
Trying to help can be hard at times...

1020a5Not Foundanot Found
2130b30bbb
3140c31ccc
4150d55eee
5160e80Not Foundfnot found
6170f70fff
23bbb

<tbody>
</tbody>

The data is in B1:D6; the values to look up in E1:E6...

F1, control+shift+enter and copy down:

=IFERROR(INDEX($D$1:$D$6,MATCH(1,IF(E1>=$B$1:$B$6,IF(E1<=$C$1:$C$6,1)),0)),"Not Found")

G1, just enter and copy down:

=LOOKUP(IF(E1 < MIN($B$1:$B$6),MIN($B$1:$B$6),E1),$B$1:$B$6,$D$1:$D$6)

H1, just enter and copy down:

=IF(E1<min($b$1:$b$6),"not found",if(e1="">MAX($C$1:$C$6),"not found",LOOKUP(E1,$B$1:$B$6,$D$1:$D$6)))
AWESOME, you are the best .it works like a charm.
thank you so much for your help and time.</min($b$1:$b$6),"not>
 
Upvote 0

Forum statistics

Threads
1,215,526
Messages
6,125,328
Members
449,218
Latest member
Excel Master

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