Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have this formula typed into a cell:
=IF((C10+B26)180,C10+B26-360,C10+B26) AND...it works fine; however, I have to add the following parameter to the same cell: = IF((C10+B26)<180,C10+B26+360,C10+B26) Please notice the subtle differences..I am working with a global 360 degree sphere wherein when values are combined, I can be maxed at positive (+179.999) degrees or minimized at negative (-179.999) degrees. I tried the "OR" function outside my "IF" function, but all I got was "TRUE" for the answer..not an actual number. PLEASE OFFER THE CORRECT FORMULA. Thank you, FLKulchar |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have figured it out on my own...simply, I "nested" the 'IF' functions.
Thanks, FLKulchar "F. Lawrence Kulchar" wrote in message ... I have this formula typed into a cell: =IF((C10+B26)180,C10+B26-360,C10+B26) AND...it works fine; however, I have to add the following parameter to the same cell: = IF((C10+B26)<180,C10+B26+360,C10+B26) Please notice the subtle differences..I am working with a global 360 degree sphere wherein when values are combined, I can be maxed at positive (+179.999) degrees or minimized at negative (-179.999) degrees. I tried the "OR" function outside my "IF" function, but all I got was "TRUE" for the answer..not an actual number. PLEASE OFFER THE CORRECT FORMULA. Thank you, FLKulchar |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try lookup instead
=lookup((C10+B26),{-180,180,360;C10+B26+360,C10+B26,C10+B26-360}) "F. Lawrence Kulchar" wrote: I have this formula typed into a cell: =IF((C10+B26)180,C10+B26-360,C10+B26) AND...it works fine; however, I have to add the following parameter to the same cell: = IF((C10+B26)<180,C10+B26+360,C10+B26) Please notice the subtle differences..I am working with a global 360 degree sphere wherein when values are combined, I can be maxed at positive (+179.999) degrees or minimized at negative (-179.999) degrees. I tried the "OR" function outside my "IF" function, but all I got was "TRUE" for the answer..not an actual number. PLEASE OFFER THE CORRECT FORMULA. Thank you, FLKulchar |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Joel:
I cannot get your array "lookup" formula to work -- I get an error message with the C10 +B26+360 bit of info. Please explain please! Thanks, FLKulchar "Joel" wrote in message ... Try lookup instead =lookup((C10+B26),{-180,180,360;C10+B26+360,C10+B26,C10+B26-360}) "F. Lawrence Kulchar" wrote: I have this formula typed into a cell: =IF((C10+B26)180,C10+B26-360,C10+B26) AND...it works fine; however, I have to add the following parameter to the same cell: = IF((C10+B26)<180,C10+B26+360,C10+B26) Please notice the subtle differences..I am working with a global 360 degree sphere wherein when values are combined, I can be maxed at positive (+179.999) degrees or minimized at negative (-179.999) degrees. I tried the "OR" function outside my "IF" function, but all I got was "TRUE" for the answer..not an actual number. PLEASE OFFER THE CORRECT FORMULA. Thank you, FLKulchar |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
HERE IS THE CORRECTED nested "IF" FUNCTION ANSWER:
=IF((C10+B26)=180,C10+B26-360,IF((C10+B26)<=-180,C10+B26+360,C10+B26)) THERE WE GO..IT WORKS: As to the LOOKUP function, I do NOT comprehend it, i.e. I cannot get it to work! Thanks, FLKulchar "F. Lawrence Kulchar" wrote in message ... I have this formula typed into a cell: =IF((C10+B26)180,C10+B26-360,C10+B26) AND...it works fine; however, I have to add the following parameter to the same cell: = IF((C10+B26)<180,C10+B26+360,C10+B26) Please notice the subtle differences..I am working with a global 360 degree sphere wherein when values are combined, I can be maxed at positive (+179.999) degrees or minimized at negative (-179.999) degrees. I tried the "OR" function outside my "IF" function, but all I got was "TRUE" for the answer..not an actual number. PLEASE OFFER THE CORRECT FORMULA. Thank you, FLKulchar |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Joel:
This solution you suggested: Try lookup instead =lookup((C10+B26),{-180,180,360;C10+B26+360,C10+B26,C10+B26-360}) does NOT seem to work, as my EXCEL does not recognize the C10+B26 as part of the array...any explanations? Thanks, FLKulchar "Joel" wrote in message ... Try lookup instead =lookup((C10+B26),{-180,180,360;C10+B26+360,C10+B26,C10+B26-360}) "F. Lawrence Kulchar" wrote: I have this formula typed into a cell: =IF((C10+B26)180,C10+B26-360,C10+B26) AND...it works fine; however, I have to add the following parameter to the same cell: = IF((C10+B26)<180,C10+B26+360,C10+B26) Please notice the subtle differences..I am working with a global 360 degree sphere wherein when values are combined, I can be maxed at positive (+179.999) degrees or minimized at negative (-179.999) degrees. I tried the "OR" function outside my "IF" function, but all I got was "TRUE" for the answer..not an actual number. PLEASE OFFER THE CORRECT FORMULA. Thank you, FLKulchar |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula/functions for average and if functions | Excel Worksheet Functions | |||
XL2003 FILTER FUNCTIONS VS. XL2007 FILTER FUNCTIONS | Excel Worksheet Functions | |||
efficiency: database functions vs. math functions vs. array formula | Excel Discussion (Misc queries) | |||
Looking for a site with functions that substitute the ATP functions | Excel Worksheet Functions | |||
Nesting functions in the functions dialog box | Excel Worksheet Functions |