My spreadsheet looks like this:
datetime in first cell data in second cell
1/1/00 00:00 2.2
1/1/00 00:15 2.0
1/1/00 00:30 1.9
1/1/00 00:45 2.0
1/1/00 01:00 2.4
1/1/00 01:15 2.2
1/1/00 01:30 2.1
1/1/00 01:45 2.0
1/1/00 02:00 1.8
etc..... I have about hundreds of rows of this type of data. At times there
may be missing data, but the correct time is there, there is just no data in
the cell. I would like a third column of data that would have the date/time
at the top of the hour and the fourth column to have the hourly average.
Any help appreciated.
=IF(MOD(ROW()+2,4)=0,VLOOKUP(ROUNDDOWN(A2*24,0)/24,$A$2:$B$10,2),"")
and the following formula in D2 and drag down
=IF(MOD(ROW()+2,4)=0,AVERAGE(B2:B5),"")
Dave
=IF(MOD(ROW()+2,4)=0,ROUNDDOWN(A2*24,0)/24,"")
Dave
--
Best Regards,
Luke M
"penny" <ab...@hotmail.com> wrote in message news:...
> Message-ID: <32af0b05d7ed4af8...@newspe.com>
> X-Mailer: http://www.umailcampaign.com, ip log:68.45.155.120
> Newsgroups: microsoft.public.excel.newusers
> NNTP-Posting-Host: 22.bb.5446.static.theplanet.com 70.84.187.34
> Path: TK2MSFTNGP01.phx.gbl!TK2MSFTNGP04.phx.gbl!newspe.com
> Lines: 1
> Xref: TK2MSFTNGP01.phx.gbl microsoft.public.excel.newusers:69083