Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I have a column with the measured temperature every hour of the year(8760 values). I wolud like to convert these to the mean value for each day (365 values). Does anyone know a simple formula/function for this purpose? / Baffe |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Assume 24 hourly values start in A1 down
In B1: =AVERAGE(OFFSET($A$1,ROW()*24-24,,24)) Copy down to B365. B1 returns the average for A1:A24, B2 returns it for A25:A48, etc -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Baffe" wrote: I have a column with the measured temperature every hour of the year(8760 values). I would like to convert these to the mean value for each day (365 values). Does anyone know a simple formula/function for this purpose? / Baffe |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks a lot, it worked!
Note that by using this formula the original values have to start in the first row! "Max" skrev: Assume 24 hourly values start in A1 down In B1: =AVERAGE(OFFSET($A$1,ROW()*24-24,,24)) Copy down to B365. B1 returns the average for A1:A24, B2 returns it for A25:A48, etc -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Baffe" wrote: I have a column with the measured temperature every hour of the year(8760 values). I would like to convert these to the mean value for each day (365 values). Does anyone know a simple formula/function for this purpose? / Baffe |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"Baffe" wrote
Thanks a lot, it worked! Welcome, glad to hear that. Note that by using this formula the original values have to start in the first row! It can easily adapted to suit For eg, if data starts in A2 down, just use this in the starting cell, say in B2: =AVERAGE(OFFSET($A$2,ROWS($1:1)*24-24,,24)) then copy down as before The 2 changes required a A2 is now the anchor, and, ROWS($1:1) replaces ROW() as the start cell incrementer -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello Max,
My first value is on row 3, how can I adjsut the formula to still work, i.e. B1 would return the average of a3:a26?? Thank you, "Max" wrote: Assume 24 hourly values start in A1 down In B1: =AVERAGE(OFFSET($A$1,ROW()*24-24,,24)) Copy down to B365. B1 returns the average for A1:A24, B2 returns it for A25:A48, etc -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Baffe" wrote: I have a column with the measured temperature every hour of the year(8760 values). I would like to convert these to the mean value for each day (365 values). Does anyone know a simple formula/function for this purpose? / Baffe |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
sorry i mean B3, would return average of a3:a26.
Many thanks, Reza "Reza" wrote: Hello Max, My first value is on row 3, how can I adjsut the formula to still work, i.e. B1 would return the average of a3:a26?? Thank you, "Max" wrote: Assume 24 hourly values start in A1 down In B1: =AVERAGE(OFFSET($A$1,ROW()*24-24,,24)) Copy down to B365. B1 returns the average for A1:A24, B2 returns it for A25:A48, etc -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Baffe" wrote: I have a column with the measured temperature every hour of the year(8760 values). I would like to convert these to the mean value for each day (365 values). Does anyone know a simple formula/function for this purpose? / Baffe |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
As responded in your other posting ..
--------------- B1: =AVERAGE(OFFSET($A$1,ROW()*24-24,,24)) Try this revision of the above to suit your instance In B3, copied down: =AVERAGE(OFFSET($A$3,ROWS($1:1)*24-24,,24)) --------------- You probably missed this clarification in my last response to the original poster in Apr 08 For eg, if data starts in A2 down, just use this in the starting cell, say in B2: =AVERAGE(OFFSET($A$2,ROWS($1:1)*24-24,,24)) then copy down as before The 2 changes required a A2 is now the anchor, and, ROWS($1:1) replaces ROW() as the start cell incrementer -- Max Singapore http://savefile.com/projects/236895 Downloads: 15,500, Files: 352, Subscribers: 53 xdemechanik --- "Reza" wrote in message ... sorry i mean B3, would return average of a3:a26. Many thanks, Reza "Reza" wrote: Hello Max, My first value is on row 3, how can I adjsut the formula to still work, i.e. B1 would return the average of a3:a26?? Thank you, |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Converting Numeric values to Text | Excel Worksheet Functions | |||
Converting number values | Excel Discussion (Misc queries) | |||
Converting Text Values to Dates | Excel Discussion (Misc queries) | |||
converting csv (commaseparated values) to columns | Excel Discussion (Misc queries) | |||
converting time values | Excel Discussion (Misc queries) |