ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Need something other than IF function (https://www.excelbanter.com/excel-worksheet-functions/196366-need-something-other-than-if-function.html)

PrinceAli

Need something other than IF function
 
=IF(AE196<=8,$Z$275,IF(AE196<=10,$Z$276,IF(AE196<= 12,$Z
$277,IF(AE196<=14,$Z$278,IF(AE196<=16,$Z$279,IF(AE 196<=18,$Z
$280,IF(AE196<=20,$Z$281,IF(AE196<=22,$Z$282,"DEEP "))))))))

AE196 is the depth of the structure

If the depth is less than X, then the trench width will be whatever
Z2XX is.

Unfortunately I cannot do more than 8 IF statements. Is there any
other better alternative to this?

Thanks.

Peo Sjoblom[_2_]

Need something other than IF function
 
Put the data in a table and use vlookup

http://www.contextures.com/xlFunctions02.html

scroll down until you see

"Create a VLookup formula for a range of values"

Insert a new column to the left of the Z column, of course if Y is unused
you don't need to do that and in Y275 put 0 (assuming the values cannot be
less than zero)
in Y276 put 10 and so on, then use

=IF(AE196="","",VLOOKUP(AE196,Y275:Z282,2))

change Y275:Z282 to what your final table dimension will be

--


Regards,


Peo Sjoblom

"PrinceAli" wrote in message
...
=IF(AE196<=8,$Z$275,IF(AE196<=10,$Z$276,IF(AE196<= 12,$Z
$277,IF(AE196<=14,$Z$278,IF(AE196<=16,$Z$279,IF(AE 196<=18,$Z
$280,IF(AE196<=20,$Z$281,IF(AE196<=22,$Z$282,"DEEP "))))))))

AE196 is the depth of the structure

If the depth is less than X, then the trench width will be whatever
Z2XX is.

Unfortunately I cannot do more than 8 IF statements. Is there any
other better alternative to this?

Thanks.




Bob Phillips

Need something other than IF function
 
=IF(AE16<=8,$Z$275,IF(AE1622,"DEEP",INDEX($Z$276: $Z$282,ROUNDUP((AE16-8)/2,0))))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"PrinceAli" wrote in message
...
=IF(AE196<=8,$Z$275,IF(AE196<=10,$Z$276,IF(AE196<= 12,$Z
$277,IF(AE196<=14,$Z$278,IF(AE196<=16,$Z$279,IF(AE 196<=18,$Z
$280,IF(AE196<=20,$Z$281,IF(AE196<=22,$Z$282,"DEEP "))))))))

AE196 is the depth of the structure

If the depth is less than X, then the trench width will be whatever
Z2XX is.

Unfortunately I cannot do more than 8 IF statements. Is there any
other better alternative to this?

Thanks.




Lars-Åke Aspelin[_2_]

Need something other than IF function
 
On Fri, 25 Jul 2008 09:41:38 -0700, "Peo Sjoblom"
wrote:

Put the data in a table and use vlookup

http://www.contextures.com/xlFunctions02.html

scroll down until you see

"Create a VLookup formula for a range of values"

Insert a new column to the left of the Z column, of course if Y is unused
you don't need to do that and in Y275 put 0 (assuming the values cannot be
less than zero)
in Y276 put 10 and so on, then use

=IF(AE196="","",VLOOKUP(AE196,Y275:Z282,2))

change Y275:Z282 to what your final table dimension will be



Just as an alternative, that you can try if it is not convenient to
use the Y column (or any other column to the left of column Z) for
your lookup vector, you can use the LOOKUP function that allows you to
put the lookup vector at any place, even in another sheet.

Lars-Åke

PrinceAli

Need something other than IF function
 
On Jul 25, 12:44*pm, "Bob Phillips" wrote:
=IF(AE16<=8,$Z$275,IF(AE1622,"DEEP",INDEX($Z$276: $Z$282,ROUNDUP((AE16-8)/2,0))))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"PrinceAli" wrote in message

...

=IF(AE196<=8,$Z$275,IF(AE196<=10,$Z$276,IF(AE196<= 12,$Z
$277,IF(AE196<=14,$Z$278,IF(AE196<=16,$Z$279,IF(AE 196<=18,$Z
$280,IF(AE196<=20,$Z$281,IF(AE196<=22,$Z$282,"DEEP "))))))))


AE196 is the depth of the structure


If the depth is less than X, then the trench width will be whatever
Z2XX is.


Unfortunately I cannot do more than 8 IF statements. Is there any
other better alternative to this?


Thanks.


Thank you!


All times are GMT +1. The time now is 02:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com