#1   Report Post  
Penny
 
Posts: n/a
Default a condition question

I have two columns of data. I want to know the average GPA of only those
students at Carter Middle School. Help?

GPA(COL A) School (COL H)
3.3 Carter Middle School
2.3 Carter Middle School
2.8 Centennial
4.0 Carter Middle School

  #2   Report Post  
Bob Umlas
 
Posts: n/a
Default

=SUMPRODUCT((B1:B4="Carter Middle
School")*A1:A4)/SUMPRODUCT(--(B1:B4="Carter Middle School"))

"Penny" wrote in message
...
I have two columns of data. I want to know the average GPA of only those
students at Carter Middle School. Help?

GPA(COL A) School (COL H)
3.3 Carter Middle School
2.3 Carter Middle School
2.8 Centennial
4.0 Carter Middle School



  #3   Report Post  
Penny
 
Posts: n/a
Default

I should have been more specific. I thought you were going to use the
average function and then I was hoping to figure out the rest. I also need
to be able to compute the standard deviations, minimum, and maximum.

Thanks, Penny


"Bob Umlas" wrote:

=SUMPRODUCT((B1:B4="Carter Middle
School")*A1:A4)/SUMPRODUCT(--(B1:B4="Carter Middle School"))

"Penny" wrote in message
...
I have two columns of data. I want to know the average GPA of only those
students at Carter Middle School. Help?

GPA(COL A) School (COL H)
3.3 Carter Middle School
2.3 Carter Middle School
2.8 Centennial
4.0 Carter Middle School




  #4   Report Post  
Max
 
Posts: n/a
Default

I've responded further to you in your earlier thread, suggesting the use of
AVERAGE(IF(...)) array formulas. Take a look there.
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Penny" wrote in message
...
I should have been more specific. I thought you were going to use the
average function and then I was hoping to figure out the rest. I also

need
to be able to compute the standard deviations, minimum, and maximum.

Thanks, Penny



  #5   Report Post  
B. R.Ramachandran
 
Posts: n/a
Default

If you don't mind creating an extra column, you could do one of the following:

Lee's assume that the GPA's are in Column A and the names of schools in Col
H, and that Col I is empty; use the formula =IF(H1="Carter Middle
School",A1*1,"") in the cell I1 and drag the formula down the column. Column
I thus created will contain GPA values only for Carter Middle Schhol in the
respective rows and will be blank in rows corresponding to other schools.
Now you can find the average, stdev, max, and min for Col I.

An alternative approach may be,

Create a dummy column (say Column I) with consecurive numbers,
1,2,.........n, and sort the spread sheet in ascending/descending order of
Col H (containing school names). Data for the Carter Middle School would be
in a group, and you can calculate the average, etc., for that range. Cut and
paste those values with paste special, so that they would not change if you
were to restore the spread sheet to the original order (by resorting the
spread-sheet with the dummy column, i.e., Column I, you created).

B.R. Ramachandran

"Penny" wrote:

I have two columns of data. I want to know the average GPA of only those
students at Carter Middle School. Help?

GPA(COL A) School (COL H)
3.3 Carter Middle School
2.3 Carter Middle School
2.8 Centennial
4.0 Carter Middle School



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
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM
count duplicate (or, inversely, unique) entries, but based on a condition markx Excel Worksheet Functions 3 March 8th 05 06:57 PM
Condition IF Jeff Excel Discussion (Misc queries) 3 February 15th 05 10:19 PM
An easy macro question and one I believe to be a little more diffi TroutKing Excel Worksheet Functions 3 January 18th 05 09:17 PM
Question regarding a strange condition in Excel spdsht... Flop Excel Discussion (Misc queries) 2 January 14th 05 06:05 PM


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