Alternative for Nested IF formula

Luke_1814

New Member
Joined
Aug 17, 2017
Messages
21
Hi Guys,
Chose the right box to store Part A which has volume of 2.7

Box name(Column A)Box Volume(Column B)
b11
b22
b33

<tbody>
</tbody>

Based on on above table i would use an if conditions which goes like this,
=IF($F$1<=B2,A2,IF($F$1<=B3,A3,IF($F$1<=B4,A4)))

is there any other alternative instead of using IF function. the above example contains 3 rows, however in reality i would need to apply IF func for 100+ rows. Please help.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Use a lookup table.

VLOOKUP or INDEX(...MATCH...)

e.g.

=VLOOKUP(Lookupvalue,Sheet2!A$2:B$4,2,0)
 
Last edited:
Upvote 0
=IFERROR(INDEX(A2:A4,(MATCH(ROUND(F1+0.4,0),B2:B4,1))),"Don't fit!")
 
Upvote 0
It worked only incase if the value is an integer. however in case there is decimal it takes the 1st unit place value.

Thank you for your response :)
 
Upvote 0
=IFERROR(INDEX(A2:A4,(MATCH(ROUND(F1+0.4,0),B2:B4,1))),"Don't fit!")

Hi,
Ideally if i use F1 value more than 3 it should show me "Don't fit", however in this case the result shows a A4 Cell.
Please help.


And may i know why have you used F1+0.4?
 
Upvote 0
depends how many decimals. 0.4999999999 have a beter result.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,692
Members
448,979
Latest member
DET4492

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