Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ISBLANK function not working when cell is blank dut to function re | Excel Discussion (Misc queries) | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions |