Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need help with monthly averages, and copying formulas
I have a list of data (about 19000 rows/data values) with water quality
values at 53 locations ranging from March, 1979 through March, 2003. Some months have 1 value, others have anywhere from 2 to 4. I need helping coming up with a formula that will calculate the average, and that I can copy to the cell below, for example the average for April, 2001 in cell K250, and the average for May, 2001 in cell K251. D E F (value) 465 Apr-01 Salinity 33.5 466 Apr-01 Salinity 29.6 467 Apr-01 Salinity 27.8 468 May-01 Salinity 32.6 469 May-01 Salinity 32.5 470 May-01 Salinity 32.3 Also, I seem to have a hard time grasping how the more complicated formulas and arrays work. In spite of hours of reading and trying to understand, it isn't intuitive to me. Please bear that in mind when you answer my question! Thank you!! |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need help with monthly averages, and copying formulas
Are the dates really April 2001, what does it say in the formula bar if you
select a cell with Apr-01. The reason I am asking is that if you type in Apr-01 you will get 4/1/2008 using US date format If they truly are April 2001 dates and not April 2008 dates and not text then this will work =AVERAGE(IF((MONTH(D4:D1000)=4)*(YEAR(D4:D1000)=20 01),F4:F1000)) it needs to be entered with ctrl + shift & enter replace the cell ranges with your ranges -- Regards, Peo Sjoblom "SusanU" wrote in message ... I have a list of data (about 19000 rows/data values) with water quality values at 53 locations ranging from March, 1979 through March, 2003. Some months have 1 value, others have anywhere from 2 to 4. I need helping coming up with a formula that will calculate the average, and that I can copy to the cell below, for example the average for April, 2001 in cell K250, and the average for May, 2001 in cell K251. D E F (value) 465 Apr-01 Salinity 33.5 466 Apr-01 Salinity 29.6 467 Apr-01 Salinity 27.8 468 May-01 Salinity 32.6 469 May-01 Salinity 32.5 470 May-01 Salinity 32.3 Also, I seem to have a hard time grasping how the more complicated formulas and arrays work. In spite of hours of reading and trying to understand, it isn't intuitive to me. Please bear that in mind when you answer my question! Thank you!! |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need help with monthly averages, and copying formulas
you have a couple options.. Pivot table or sumproduct.
For you, pivot table may be better.. highlight the table, go to Data - Pivot Table........ In the row field, put, say, the date column. In the column field, put the name from column E of your table. In the Data field, put the value from column F. So, each cell of your table will be the interestion of the company name and the month of service. Right-click on one of the cell in the table, click field settings and choose average. Click the Number... button to format however you would like. HTH! "SusanU" wrote: I have a list of data (about 19000 rows/data values) with water quality values at 53 locations ranging from March, 1979 through March, 2003. Some months have 1 value, others have anywhere from 2 to 4. I need helping coming up with a formula that will calculate the average, and that I can copy to the cell below, for example the average for April, 2001 in cell K250, and the average for May, 2001 in cell K251. D E F (value) 465 Apr-01 Salinity 33.5 466 Apr-01 Salinity 29.6 467 Apr-01 Salinity 27.8 468 May-01 Salinity 32.6 469 May-01 Salinity 32.5 470 May-01 Salinity 32.3 Also, I seem to have a hard time grasping how the more complicated formulas and arrays work. In spite of hours of reading and trying to understand, it isn't intuitive to me. Please bear that in mind when you answer my question! Thank you!! |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Need help with monthly averages, and copying formulas
Yes, thank you---that did work! My life just became much easier. :-) Thanks!
susan "Peo Sjoblom" wrote: Are the dates really April 2001, what does it say in the formula bar if you select a cell with Apr-01. The reason I am asking is that if you type in Apr-01 you will get 4/1/2008 using US date format If they truly are April 2001 dates and not April 2008 dates and not text then this will work =AVERAGE(IF((MONTH(D4:D1000)=4)*(YEAR(D4:D1000)=20 01),F4:F1000)) it needs to be entered with ctrl + shift & enter replace the cell ranges with your ranges -- Regards, Peo Sjoblom "SusanU" wrote in message ... I have a list of data (about 19000 rows/data values) with water quality values at 53 locations ranging from March, 1979 through March, 2003. Some months have 1 value, others have anywhere from 2 to 4. I need helping coming up with a formula that will calculate the average, and that I can copy to the cell below, for example the average for April, 2001 in cell K250, and the average for May, 2001 in cell K251. D E F (value) 465 Apr-01 Salinity 33.5 466 Apr-01 Salinity 29.6 467 Apr-01 Salinity 27.8 468 May-01 Salinity 32.6 469 May-01 Salinity 32.5 470 May-01 Salinity 32.3 Also, I seem to have a hard time grasping how the more complicated formulas and arrays work. In spite of hours of reading and trying to understand, it isn't intuitive to me. Please bear that in mind when you answer my question! Thank you!! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Queation about monthly and weekly averages | Excel Worksheet Functions | |||
Graphing weekly/monthly averages | Charts and Charting in Excel | |||
Function for generating monthly & weekly averages | Excel Worksheet Functions | |||
Converting Weekly Data into Monthly Averages | Excel Worksheet Functions | |||
Converting Weekly Data into Monthly Averages | Excel Discussion (Misc queries) |