A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

If Statement Nesting?



 
 
Thread Tools Display Modes
  #1  
Old March 30th, 2010, 07:28 PM posted to microsoft.public.excel.misc
ThunderBlade
external usenet poster
 
Posts: 11
Default If Statement Nesting?

Can You Nest an If Statment so that the Logic has to check 2 different cells
before it outputs the True/False date?
  #2  
Old March 30th, 2010, 07:33 PM posted to microsoft.public.excel.misc
Bob Phillips[_3_]
external usenet poster
 
Posts: 489
Default If Statement Nesting?

You don't need to nest, use AND

=IF(AND(B2="yes",C217), true_action, false_action)


--

HTH

Bob

"ThunderBlade" wrote in message
...
Can You Nest an If Statment so that the Logic has to check 2 different
cells
before it outputs the True/False date?



  #3  
Old March 30th, 2010, 07:36 PM posted to microsoft.public.excel.misc
Mike H
external usenet poster
 
Posts: 8,419
Default If Statement Nesting?

Hi

You use AND

=if(and(A1=1,B1=2),Do this if true, do this if false)
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"ThunderBlade" wrote:

Can You Nest an If Statment so that the Logic has to check 2 different cells
before it outputs the True/False date?

  #4  
Old March 30th, 2010, 07:39 PM posted to microsoft.public.excel.misc
JLatham
external usenet poster
 
Posts: 1,896
Default If Statement Nesting?

I'm going to say Yes. Would have helped if you had given a little more
information, but yes, you can.

You can use the OR() function or the AND() function to test 2 cells
simultaneously, or you can simply nest IFs to test 1 cell, and if it
passes/fails then check the other.

Examples: A1 has weather indication (Raining or something else more pleasant)
A2 has day of the week in it. You want to be informed you can go
golfing/fishing if it is NOT raining and it IS Saturday:
=IF(AND(A1"Raining",A2="Saturday"),"Go Golfing","Stay Home")
or
=IF(A1="Raining","Stay Home",IF(A2="Saturday","Go Fishing","Stuck at Home
Again"))


"ThunderBlade" wrote:

Can You Nest an If Statment so that the Logic has to check 2 different cells
before it outputs the True/False date?

  #5  
Old March 30th, 2010, 10:46 PM posted to microsoft.public.excel.misc
ThunderBlade
external usenet poster
 
Posts: 11
Default If Statement Nesting?

Thank you to all. Everyone has pointed me in the direction that I was in
need of.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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