#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default IF function

I have been given a task in Excel and am struggling to come up with a
formula. Can anyone help?

Calculate the average grades for the students.
Using the average grade create an IF statement to generate a target grade
based on the criteria below.

Note: this will require the use of AND and OR

A - Average 60+; English AND Maths 70+.
B - Average 60+; English, Maths OR Science 70+
C - Average 60+
D - Average between 40-60; English, Maths AND Science 50+
E - other

Use conditional formatting to highlight those grades below C
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 340
Default IF function

Suppose the layout starting with column A is:

Name English Maths Science Grade

In cell E2 enter:

=IF(AVERAGE(B2,C2,D2)=60,IF(AND(B2=70,C2=70),"A ",IF(OR(B2=70,C2=70,D2=70),"B","C")),IF(AND(AVE RAGE(B2,C2,D2)=40,B2=50,C2=50,D2=50),"D","E"))

Then highlight the grade column and choose conditional formatting with
condition:

[Cell Value] is [Greater than or Equal] to [C]


mitchbragg wrote:

I have been given a task in Excel and am struggling to come up with a
formula. Can anyone help?

Calculate the average grades for the students.
Using the average grade create an IF statement to generate a target grade
based on the criteria below.

Note: this will require the use of AND and OR

A - Average 60+; English AND Maths 70+.
B - Average 60+; English, Maths OR Science 70+
C - Average 60+
D - Average between 40-60; English, Maths AND Science 50+
E - other

Use conditional formatting to highlight those grades below C


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 340
Default IF function

Correction: Conditional formatting should be "less than or equal to".
Also AVERAGE(B2,C2,D2)=40 can be removed as all grades have to be
larger than 50.

mitchbragg wrote:

I have been given a task in Excel and am struggling to come up with a
formula. Can anyone help?

Calculate the average grades for the students.
Using the average grade create an IF statement to generate a target grade
based on the criteria below.

Note: this will require the use of AND and OR

A - Average 60+; English AND Maths 70+.
B - Average 60+; English, Maths OR Science 70+
C - Average 60+
D - Average between 40-60; English, Maths AND Science 50+
E - other

Use conditional formatting to highlight those grades below C


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default IF function

Thank you very much, it worked. Oh and for the conditional formatting, I
used "greater than" as it was any grade below C, not including the C grade
itself. Also the students needed to get a score higher than 60 or 70, so I
just removed the equals signs and left the greater than signs on their own.

"Lori" wrote:

Correction: Conditional formatting should be "less than or equal to".
Also AVERAGE(B2,C2,D2)=40 can be removed as all grades have to be
larger than 50.

mitchbragg wrote:

I have been given a task in Excel and am struggling to come up with a
formula. Can anyone help?

Calculate the average grades for the students.
Using the average grade create an IF statement to generate a target grade
based on the criteria below.

Note: this will require the use of AND and OR

A - Average 60+; English AND Maths 70+.
B - Average 60+; English, Maths OR Science 70+
C - Average 60+
D - Average between 40-60; English, Maths AND Science 50+
E - other

Use conditional formatting to highlight those grades below C



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 340
Default IF function

Glad you got it to work... Lori

mitchbragg wrote:

Thank you very much, it worked. Oh and for the conditional formatting, I
used "greater than" as it was any grade below C, not including the C grade
itself. Also the students needed to get a score higher than 60 or 70, so I
just removed the equals signs and left the greater than signs on their own.

"Lori" wrote:

Correction: Conditional formatting should be "less than or equal to".
Also AVERAGE(B2,C2,D2)=40 can be removed as all grades have to be
larger than 50.

mitchbragg wrote:

I have been given a task in Excel and am struggling to come up with a
formula. Can anyone help?

Calculate the average grades for the students.
Using the average grade create an IF statement to generate a target grade
based on the criteria below.

Note: this will require the use of AND and OR

A - Average 60+; English AND Maths 70+.
B - Average 60+; English, Maths OR Science 70+
C - Average 60+
D - Average between 40-60; English, Maths AND Science 50+
E - other

Use conditional formatting to highlight those grades below C




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
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 05:45 AM.

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"