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

Can you help please?

I have a table where each student has sat 2 papers. If they get 50 or
over it is a pass, if they get 80 or more they distinction and if they
get less then 50, it is a fail. This works fine if they pass or fail
both papers, however if they fail one but get a distinction in the
other, my formula is not working.

thank you

Roni

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default Nested If statements

=IF(A1=80,"Distinction",IF(A150,"Pass","Fail"))

What formula are you using that doesn't work?

Dave
--
Brevity is the soul of wit.


" wrote:

Can you help please?

I have a table where each student has sat 2 papers. If they get 50 or
over it is a pass, if they get 80 or more they distinction and if they
get less then 50, it is a fail. This works fine if they pass or fail
both papers, however if they fail one but get a distinction in the
other, my formula is not working.

thank you

Roni


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Nested If statements

Try something like this:

With
A1: Student
A2: (a name)

B1: Paper_1
B2 (a score)
C1: Paper_2
C2: (a score)

This formula averages the 2 scores and looks up the result.
D2: =LOOKUP(AVERAGE(B2:C2),{0;50;80},{"FAIL";"PASS";"D ISTINCTION"})

OR...if you put this table in cells F1:G3
0 FAIL
50 PASS
80 DISTINCTION

Then
D2: =LOOKUP(AVERAGE(B2:C2),$F$1:$F$3,$G$1:$G$3)

Either way, you can copy the formula in D2 down as far as you need.

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


" wrote:

Can you help please?

I have a table where each student has sat 2 papers. If they get 50 or
over it is a pass, if they get 80 or more they distinction and if they
get less then 50, it is a fail. This works fine if they pass or fail
both papers, however if they fail one but get a distinction in the
other, my formula is not working.

thank you

Roni


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 296
Default Nested If statements


If this is your truth table.....


Paper1 Paper2 Result
<50 <50 Fail
<50 50 to <80 Fail
<50 =80 Fail
50 to <80 <50 Fail
50 to <80 50 to <80 Pass
50 to <80 =80 Pass
=80 <50 Fail
=80 50 to <80 Pass
=80 =80 Distinction


Then with a Paer 1 score in A1 and Paper2 score in B1, then the
following will work.

=IF(AND(A1=80,B1=80),"Distinction",IF(AND(A1=50 ,B1=50),"Pass","Fail"))

HTH


On 21 Sep 2006 13:48:59 -0700, wrote:

Can you help please?

I have a table where each student has sat 2 papers. If they get 50 or
over it is a pass, if they get 80 or more they distinction and if they
get less then 50, it is a fail. This works fine if they pass or fail
both papers, however if they fail one but get a distinction in the
other, my formula is not working.

thank you

Roni


__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
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
Returning text from nested IF and Vlookup statements Patricia Excel Worksheet Functions 10 July 28th 06 04:22 PM
Nested IF Statements Django Excel Discussion (Misc queries) 2 March 4th 06 01:44 AM
Nested If Statements Jasmine Excel Worksheet Functions 2 January 26th 06 03:47 PM
UDFunctions and nested If-the-else statements JDB Excel Worksheet Functions 1 January 25th 06 03:29 PM
Nested IF statements John Simons Excel Worksheet Functions 14 February 16th 05 06:17 AM


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