Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Daniel
 
Posts: n/a
Default Calculate median for different groups

Hi,

I have a file with data and some months on, the months
are as numbers, e.g. jan =1 , feb =2, . I would like to
be able to calcule the mean values based on data in col
a by month in col c. It would be good if i could have
just one formula that looks at the records in col c and
if it is say 1, than looks at the value in col and then
returns the median ov all records where colc is 1, then I
could do the same for the other months.

Hope this makes sense,

Cheers

Daniel
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

Median or mean? Median for Jan.:

=MEDIAN(IF(C1:C100=1,A1:A100))

Array-entered, meaning press ctr/shift/enter.

HTH
Jason
Atlanta, GA

-----Original Message-----
Hi,

I have a file with data and some months on, the months
are as numbers, e.g. jan =1 , feb =2, . I would like to
be able to calcule the mean values based on data in col
a by month in col c. It would be good if i could have
just one formula that looks at the records in col c and
if it is say 1, than looks at the value in col and then
returns the median ov all records where colc is 1, then I
could do the same for the other months.

Hope this makes sense,

Cheers

Daniel
.

  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

I suspect you'll ultimately be happier if you use a Pivot Table, which
can show the mean values for all months simultaneously:

http://peltiertech.com/Excel/Pivots/pivotstart.htm

But for an individual month you could use (array-entered):

=AVERAGE(IF(A1:A100=1,C1:C100,""))


In article ,
"Daniel" wrote:

Hi,

I have a file with data and some months on, the months
are as numbers, e.g. jan =1 , feb =2, . I would like to
be able to calcule the mean values based on data in col
a by month in col c. It would be good if i could have
just one formula that looks at the records in col c and
if it is say 1, than looks at the value in col and then
returns the median ov all records where colc is 1, then I
could do the same for the other months.

Hope this makes sense,

Cheers

Daniel

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
Not able to calculate. mark_kramarczyk Excel Worksheet Functions 1 December 29th 04 08:55 PM
how do i view all groups under excel in google groups JulieD Excel Discussion (Misc queries) 2 December 16th 04 04:33 PM
Will not calculate average/median formulas;acts like no data in c. Frustrated User of Excel today Excel Worksheet Functions 3 December 9th 04 05:31 PM
Excel's Pivot Table & Subtotal function should have a median fie. Mary Excel Worksheet Functions 1 December 3rd 04 03:27 PM
How do you calculate the nth root of a number in Excel 2003? William Excel Worksheet Functions 2 November 17th 04 04:19 PM


All times are GMT +1. The time now is 01:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"