Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
A not very sophisticated solution but here goes:
Assuming data is sorted by date and starts in row 2: In C2 (say): =IF(A2<A1,SUMIF($A$2:$A$9,A2,$B$2:$B$9)/COUNTIF($A$2:$A$9,A2),"") Change ranges and copy down. It will calculate average and put in column C against first occurence of a given date. You can copy/paste special, filter (on "not blank" )to get list with dates. HTH "little bear" wrote: I have a table of dates and values with a different number of rows for each date, and i would like to average over each date no matter how many rows there are for each date. the data look like: 7/1/06 1 7/1/06 2 7/1/06 3 7/2/06 5 7/2/06 3 7/3/06 9 7/4/06 1 7/4/06 2 so what i need to do is increment the date and calc the average of all the corresponding values for that date, then go to the next date, etc. there are 26,000 rows of data. Thank you very much! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
that is so interesting! why does it work? I would think that the avg would
be over the entire range of values in column D rather than only the ones that meet the date criterion in A2. thanks! "Toppers" wrote: A not very sophisticated solution but here goes: Assuming data is sorted by date and starts in row 2: In C2 (say): =IF(A2<A1,SUMIF($A$2:$A$9,A2,$B$2:$B$9)/COUNTIF($A$2:$A$9,A2),"") Change ranges and copy down. It will calculate average and put in column C against first occurence of a given date. You can copy/paste special, filter (on "not blank" )to get list with dates. HTH "little bear" wrote: I have a table of dates and values with a different number of rows for each date, and i would like to average over each date no matter how many rows there are for each date. the data look like: 7/1/06 1 7/1/06 2 7/1/06 3 7/2/06 5 7/2/06 3 7/3/06 9 7/4/06 1 7/4/06 2 so what i need to do is increment the date and calc the average of all the corresponding values for that date, then go to the next date, etc. there are 26,000 rows of data. Thank you very much! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
count between start date and end date | Excel Discussion (Misc queries) | |||
Determining Date X based on Other dates | Excel Worksheet Functions | |||
Calculate difference between 2 date and times with average | Excel Discussion (Misc queries) | |||
Another Date issue. | Excel Worksheet Functions | |||
Average to date | Excel Worksheet Functions |