Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 834
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default If Statement Nesting?

Thank you to all. Everyone has pointed me in the direction that I was in
need of.
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
Nesting If and And terri Excel Worksheet Functions 4 July 7th 09 11:50 AM
Nesting an additional formula in an IF statement Karsea New Users to Excel 12 February 10th 09 10:16 PM
Nesting IF/OR Statement Wendy Excel Worksheet Functions 14 November 7th 08 04:26 AM
Another Nesting IF Statement Problem bigwilly11189 Excel Worksheet Functions 3 September 12th 05 02:05 AM
Nesting If Statement with "AND", "OR" conditions Jenna Excel Worksheet Functions 3 October 30th 04 07:46 PM


All times are GMT +1. The time now is 01:30 AM.

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"