Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Nested IF statement

I am working in Excel 2003. Cell A1 can contain several different words
(WHOLE, SKIM, ETC). B1, C1, D1 and E1 can contain either the words "YES" or
"NO". If A1 contains the word "WHOLE" and B1, C1, D1 and E1 all contain
the word "YES", I need to put the word "CORRECT" in F1. I am having
difficulty nesting the IF statements and would appreciate any help. Thanks,

Ricki


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Nested IF statement

This might suffice for your intents to check responses in B1:E1
In F1: =IF(COUNTIF(B1:E1,"Yes")=4,"Correct","")
Copy down
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:21,000 Files:370 Subscribers:66
xdemechanik
---
"Ricki Miles" wrote in message
...
I am working in Excel 2003. Cell A1 can contain several different words
(WHOLE, SKIM, ETC). B1, C1, D1 and E1 can contain either the words "YES"
or "NO". If A1 contains the word "WHOLE" and B1, C1, D1 and E1 all
contain the word "YES", I need to put the word "CORRECT" in F1. I am
having difficulty nesting the IF statements and would appreciate any help.
Thanks,

Ricki



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Nested IF statement

On Dec 15, 4:33*pm, "Ricki Miles" wrote:
I am working in Excel 2003. *Cell A1 can contain several
different words (WHOLE, SKIM, ETC). *B1, C1, D1 and
E1 can contain either the words "YES" or "NO". * *If A1
contains the word "WHOLE" and B1, C1, D1 and E1 all
contain the word "YES", I need to put the word "CORRECT"
in F1. *I am having difficulty nesting the IF statements and
would appreciate any help.


Well, the following would suffice for the example above. In F1:

=if(and(A1="whole",B1="yes",C1="yes",D1="yes",E1=" yes"), "correct",
"")

However, if your more-general problem is more complex that you
described, you might need a different kind of solution.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Nested IF statement

Try it this way:

=IF(AND(A1="WHOLE",COUNTIF(B1:E1,"YES")=4),"CORREC T","wrong")

Hope this helps.

Pete

On Dec 16, 12:33*am, "Ricki Miles" wrote:
I am working in Excel 2003. *Cell A1 can contain several different words
(WHOLE, SKIM, ETC). *B1, C1, D1 and E1 can contain either the words "YES" or
"NO". * *If A1 contains the word "WHOLE" and B1, C1, D1 and E1 all contain
the word "YES", I need to put the word "CORRECT" in F1. *I am having
difficulty nesting the IF statements and would appreciate any help. *Thanks,

Ricki


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Nested IF statement

Thank you all so much - it is working now. I appreciate the help!

Ricki

"Pete_UK" wrote in message
...
Try it this way:

=IF(AND(A1="WHOLE",COUNTIF(B1:E1,"YES")=4),"CORREC T","wrong")

Hope this helps.

Pete

On Dec 16, 12:33 am, "Ricki Miles" wrote:
I am working in Excel 2003. Cell A1 can contain several different words
(WHOLE, SKIM, ETC). B1, C1, D1 and E1 can contain either the words "YES"
or
"NO". If A1 contains the word "WHOLE" and B1, C1, D1 and E1 all contain
the word "YES", I need to put the word "CORRECT" in F1. I am having
difficulty nesting the IF statements and would appreciate any help.
Thanks,

Ricki





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Nested IF statement

You're welcome, Ricki - glad to be of help.

Pete

On Dec 16, 3:44*am, "Ricki Miles" wrote:
Thank you all so much - it is working now. *I appreciate the help!

Ricki

"Pete_UK" wrote in message

...
Try it this way:

=IF(AND(A1="WHOLE",COUNTIF(B1:E1,"YES")=4),"CORREC T","wrong")

Hope this helps.

Pete

On Dec 16, 12:33 am, "Ricki Miles" wrote:



I am working in Excel 2003. Cell A1 can contain several different words
(WHOLE, SKIM, ETC). B1, C1, D1 and E1 can contain either the words "YES"
or
"NO". If A1 contains the word "WHOLE" and B1, C1, D1 and E1 all contain
the word "YES", I need to put the word "CORRECT" in F1. I am having
difficulty nesting the IF statements and would appreciate any help.
Thanks,


Ricki- Hide quoted text -


- Show quoted text -


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
If statement nested k11ngy Excel Discussion (Misc queries) 5 October 13th 08 02:38 PM
Nested IF Statement Help Donnie Excel Discussion (Misc queries) 4 September 10th 08 09:04 PM
Nested IF/OR/AND statement Gayla Excel Discussion (Misc queries) 0 June 20th 07 07:46 PM
nested what if statement brian Excel Worksheet Functions 1 April 23rd 07 12:11 AM
Nested If Statement guilbj2 Excel Discussion (Misc queries) 4 February 27th 06 04:01 PM


All times are GMT +1. The time now is 03:59 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"