Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
AMS AMS is offline
external usenet poster
 
Posts: 6
Default IF statement with multiple scenarios.

I am struggling with an IF statement...here's my situation:

I need the default value of a cell (C64) to be 8 as long as cells F24 and
F25 contain text "n". If F24 text is "y" (F25 will remain "n"), then I need
the value of C64 to be (8-I24). If the F25 text is "y" (F24 will remain
"n"), then the value of C64 must be (8+I25). Is this possible to do within
one cell?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default IF statement with multiple scenarios.

One way:

C64: =8 - I24*(F24="y") + I25*(F25="y")

In article ,
AMS wrote:

I am struggling with an IF statement...here's my situation:

I need the default value of a cell (C64) to be 8 as long as cells F24 and
F25 contain text "n". If F24 text is "y" (F25 will remain "n"), then I need
the value of C64 to be (8-I24). If the F25 text is "y" (F24 will remain
"n"), then the value of C64 must be (8+I25). Is this possible to do within
one cell?

  #3   Report Post  
Posted to microsoft.public.excel.misc
AMS AMS is offline
external usenet poster
 
Posts: 6
Default IF statement with multiple scenarios.

Perfect. Thank you.

"JE McGimpsey" wrote:

One way:

C64: =8 - I24*(F24="y") + I25*(F25="y")

In article ,
AMS wrote:

I am struggling with an IF statement...here's my situation:

I need the default value of a cell (C64) to be 8 as long as cells F24 and
F25 contain text "n". If F24 text is "y" (F25 will remain "n"), then I need
the value of C64 to be (8-I24). If the F25 text is "y" (F24 will remain
"n"), then the value of C64 must be (8+I25). Is this possible to do within
one cell?


  #4   Report Post  
Posted to microsoft.public.excel.misc
bj bj is offline
external usenet poster
 
Posts: 1,397
Default IF statement with multiple scenarios.

=if(f24="n",if(f25="n",8,8+I25),if(f5="n",8-I24,"neither f24 nor f25 = n"))
You did not say what to do if bothe are not "n"

"AMS" wrote:

I am struggling with an IF statement...here's my situation:

I need the default value of a cell (C64) to be 8 as long as cells F24 and
F25 contain text "n". If F24 text is "y" (F25 will remain "n"), then I need
the value of C64 to be (8-I24). If the F25 text is "y" (F24 will remain
"n"), then the value of C64 must be (8+I25). Is this possible to do within
one cell?

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
Data table around multiple scenarios UNCCNU Excel Worksheet Functions 0 April 24th 07 08:02 PM
How to do if/then formula with multiple scenarios. JudyK Excel Discussion (Misc queries) 1 October 16th 06 05:39 PM
consolidating results of multiple scenarios sloth Excel Discussion (Misc queries) 0 September 24th 06 10:45 PM
Return multiple scenarios Casey D Excel Worksheet Functions 3 March 7th 06 09:45 PM
Multiple vendors and scenarios - Excel Vincent Kelly via OfficeKB.com Excel Worksheet Functions 1 March 2nd 05 04:47 AM


All times are GMT +1. The time now is 11:48 PM.

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

About Us

"It's about Microsoft Excel"