shorter formula

dantb

Active Member
Joined
Mar 20, 2002
Messages
358
Running out of room,,any way to shortin this formula ?

=IF(AS13>=7,HLOOKUP(B13,$AD$13:$AL$20,8),IF(AS13>=6,HLOOKUP(B13,$AD$13:$AL$20,7),IF(AS13>=5,HLOOKUP(B13,$AD$13:$AL$20,6),IF(AS13>=4,HLOOKUP(B13,$AD$13:$AL$20,5),IF(AS13>=3,HLOOKUP(B13,$AD$13:$AL$20,4),IF(AS13>=2,HLOOKUP(B13,$AD$13:$AL$20,3),IF(AS13>=1,HLOOKUP(B13,$AD$13:$AL$20,2),"0.00")))))))
 

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
You might want to try the following:

=IF(AS13>=1,HLOOKUP(B13,$AD$13:$AL$20,IF(AS13>=7,8,IF(AS13>=6,7,IF(AS13>=5,6,IF(AS13>=4,5,IF(AS13>=3,4,IF(AS13>=2,3,2))))))),"0.00")
 
Upvote 0
Hi,

Does this work for you?

=IF(AS13<1,0,HLOOKUP(B13,$AD$13:$AL$20,IF(AS13>=8,7,INT(AS13))+1))

Regards,
Jay

Or even shorter...

=IF(A13<1,0,HLOOKUP(B13,$D$13:$L$20,MIN(7,INT(A13))+1))
This message was edited by Jay Petrulis on 2002-03-21 17:36
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,591
Members
449,174
Latest member
chandan4057

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