Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default 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.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 913
Default 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
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default 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.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default 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!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ISBLANK function not working when cell is blank dut to function re mcmilja Excel Discussion (Misc queries) 9 May 7th 23 03:43 AM
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM


All times are GMT +1. The time now is 09:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"