Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Chrissi
 
Posts: n/a
Default Nesting "If" in Excel

Hi, I am a student teacher using Excel 2003 for my marking. So far, I have
not had too many problems writing formulas but this one has me stumped.
To get a pass in their snap tests the students must pass 2 out of three
tests. I list them as Test 1, Test 2, and Test 3 with their names down the
side.
So I need to write a formula to test for all possible outcomes that will
result in a pass. Student can either pass Test 1 and Test 2 or Test 1 and
Test 3 or Test 2 and Test 3
I want to write the formulas so that the auto answer will be either "
Student Passed" or "Student Failed". I can understand that I need "If" "And"
"Or" and I can get some of them to work but not all. Would SKS please help.
Regards Chrissi
  #2   Report Post  
Ragdyer
 
Posts: n/a
Default

You don't mention what is the criteria in the individual cells that signify
a "pass".
Is it the text string "Pass", or is it a numerical result of the actual test
score, where a certain number must be attained to equate a "pass"?
If it IS a number, what value constitutes "pass".

Just guessing that the text "pass" will be entered into the individual
cells.

With names in Column A, and Test 1, 2, and 3 in Columns B, C, and D
respectively, try this formula in E2, and copy down as needed:

=IF(COUNTIF(B2:D2,"Pass")=2,"PASS","FAIL")
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Chrissi" wrote in message
...
Hi, I am a student teacher using Excel 2003 for my marking. So far, I have
not had too many problems writing formulas but this one has me stumped.
To get a pass in their snap tests the students must pass 2 out of three
tests. I list them as Test 1, Test 2, and Test 3 with their names down the
side.
So I need to write a formula to test for all possible outcomes that will
result in a pass. Student can either pass Test 1 and Test 2 or Test 1 and
Test 3 or Test 2 and Test 3
I want to write the formulas so that the auto answer will be either "
Student Passed" or "Student Failed". I can understand that I need "If"

"And"
"Or" and I can get some of them to work but not all. Would SKS please

help.
Regards Chrissi


  #3   Report Post  
Chrissi
 
Posts: n/a
Default

Hi Ragdyer, I'm sorry about cross-posting, I wasnt sure where to put my
problem as I am a new user as well. I have been told I neglected to put in
what the marks were. The kids have a spelling test on mon, wed and fri and I
enter them out of 100, 50 being the pass mark. They must get more than 50
twice each week to pass. Thank you your interest I will put this answer in
new user as well and not cross post again. Sorry. Chrissi

"Ragdyer" wrote:

You don't mention what is the criteria in the individual cells that signify
a "pass".
Is it the text string "Pass", or is it a numerical result of the actual test
score, where a certain number must be attained to equate a "pass"?
If it IS a number, what value constitutes "pass".

Just guessing that the text "pass" will be entered into the individual
cells.

With names in Column A, and Test 1, 2, and 3 in Columns B, C, and D
respectively, try this formula in E2, and copy down as needed:

=IF(COUNTIF(B2:D2,"Pass")=2,"PASS","FAIL")
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Chrissi" wrote in message
...
Hi, I am a student teacher using Excel 2003 for my marking. So far, I have
not had too many problems writing formulas but this one has me stumped.
To get a pass in their snap tests the students must pass 2 out of three
tests. I list them as Test 1, Test 2, and Test 3 with their names down the
side.
So I need to write a formula to test for all possible outcomes that will
result in a pass. Student can either pass Test 1 and Test 2 or Test 1 and
Test 3 or Test 2 and Test 3
I want to write the formulas so that the auto answer will be either "
Student Passed" or "Student Failed". I can understand that I need "If"

"And"
"Or" and I can get some of them to work but not all. Would SKS please

help.
Regards Chrissi



  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

Try this


="Student "&IF(COUNTIF(B2:D2,"=50")1,"passed","failed" )

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Chrissi" wrote in message
...
Hi Ragdyer, I'm sorry about cross-posting, I wasnt sure where to put my
problem as I am a new user as well. I have been told I neglected to put in
what the marks were. The kids have a spelling test on mon, wed and fri and

I
enter them out of 100, 50 being the pass mark. They must get more than 50
twice each week to pass. Thank you your interest I will put this answer in
new user as well and not cross post again. Sorry. Chrissi

"Ragdyer" wrote:

You don't mention what is the criteria in the individual cells that

signify
a "pass".
Is it the text string "Pass", or is it a numerical result of the actual

test
score, where a certain number must be attained to equate a "pass"?
If it IS a number, what value constitutes "pass".

Just guessing that the text "pass" will be entered into the individual
cells.

With names in Column A, and Test 1, 2, and 3 in Columns B, C, and D
respectively, try this formula in E2, and copy down as needed:

=IF(COUNTIF(B2:D2,"Pass")=2,"PASS","FAIL")
--
HTH,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------

-

"Chrissi" wrote in message
...
Hi, I am a student teacher using Excel 2003 for my marking. So far, I

have
not had too many problems writing formulas but this one has me

stumped.
To get a pass in their snap tests the students must pass 2 out of

three
tests. I list them as Test 1, Test 2, and Test 3 with their names down

the
side.
So I need to write a formula to test for all possible outcomes that

will
result in a pass. Student can either pass Test 1 and Test 2 or Test 1

and
Test 3 or Test 2 and Test 3
I want to write the formulas so that the auto answer will be either "
Student Passed" or "Student Failed". I can understand that I need "If"

"And"
"Or" and I can get some of them to work but not all. Would SKS please

help.
Regards Chrissi





  #5   Report Post  
Bill Ridgeway
 
Posts: n/a
Default

A simple method would be to have a separate column for each test and to
express a pass as 1 and a fail as 0.

Assuming these to be columns A, B and C respectively you would need another
column with the formula -

=IF(a1+b1+c11,"Student passed","Student failed")

This is simpler than nesting IF statements with AND / ORs which can be
fraught with problems -as you've already found.

Regards.

Bill Ridgeway
Computer Solutions

"Chrissi" wrote in message
...
Hi, I am a student teacher using Excel 2003 for my marking. So far, I have
not had too many problems writing formulas but this one has me stumped.
To get a pass in their snap tests the students must pass 2 out of three
tests. I list them as Test 1, Test 2, and Test 3 with their names down the
side.
So I need to write a formula to test for all possible outcomes that will
result in a pass. Student can either pass Test 1 and Test 2 or Test 1 and
Test 3 or Test 2 and Test 3
I want to write the formulas so that the auto answer will be either "
Student Passed" or "Student Failed". I can understand that I need "If"
"And"
"Or" and I can get some of them to work but not all. Would SKS please
help.
Regards Chrissi





  #6   Report Post  
Roy Wagner
 
Posts: n/a
Default

Chrissi,

If I understand you, 50 is a fail, so you would change Bob's "=50" to
"50", other wise you'll be passing 50's. Sorry kids, spell better next time!

Roy
--
(delete .nospam)




"Bob Phillips" wrote:

Try this


="Student "&IF(COUNTIF(B2:D2,"=50")1,"passed","failed" )

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Chrissi" wrote in message
...
Hi Ragdyer, I'm sorry about cross-posting, I wasnt sure where to put my
problem as I am a new user as well. I have been told I neglected to put in
what the marks were. The kids have a spelling test on mon, wed and fri and

I
enter them out of 100, 50 being the pass mark. They must get more than 50
twice each week to pass. Thank you your interest I will put this answer in
new user as well and not cross post again. Sorry. Chrissi

"Ragdyer" wrote:

You don't mention what is the criteria in the individual cells that

signify
a "pass".
Is it the text string "Pass", or is it a numerical result of the actual

test
score, where a certain number must be attained to equate a "pass"?
If it IS a number, what value constitutes "pass".

Just guessing that the text "pass" will be entered into the individual
cells.

With names in Column A, and Test 1, 2, and 3 in Columns B, C, and D
respectively, try this formula in E2, and copy down as needed:

=IF(COUNTIF(B2:D2,"Pass")=2,"PASS","FAIL")
--
HTH,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------

-

"Chrissi" wrote in message
...
Hi, I am a student teacher using Excel 2003 for my marking. So far, I

have
not had too many problems writing formulas but this one has me

stumped.
To get a pass in their snap tests the students must pass 2 out of

three
tests. I list them as Test 1, Test 2, and Test 3 with their names down

the
side.
So I need to write a formula to test for all possible outcomes that

will
result in a pass. Student can either pass Test 1 and Test 2 or Test 1

and
Test 3 or Test 2 and Test 3
I want to write the formulas so that the auto answer will be either "
Student Passed" or "Student Failed". I can understand that I need "If"
"And"
"Or" and I can get some of them to work but not all. Would SKS please
help.
Regards Chrissi





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
VBA for Excel 2000 file is corrupt nkamp Excel Discussion (Misc queries) 0 May 26th 05 03:37 PM
Stop Excel Rounding Dates leinad512 Excel Discussion (Misc queries) 1 April 20th 05 04:19 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM
Excel error - Startup (and Acrobat PDFMaker) gxdata Setting up and Configuration of Excel 0 February 4th 05 03:44 AM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM


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