+ Reply to Thread
Results 1 to 6 of 6

Summing hourly data into daily data, and converting numbered day into a date

  1. #1
    Registered User
    Join Date
    09-09-2012
    Location
    London, England
    MS-Off Ver
    Excel 365 (Insider Beta)
    Posts
    18

    Summing hourly data into daily data, and converting numbered day into a date

    Evening,

    I've read through the forums and tried to do this myself but I'm just stuck. I don't know anything about Macros and couldn't even get one to register let alone run, and PivotTables are a mystery!

    The data I have are for hourly precipitation (see attached file). They are organised by numerical day and hour and I need to do two things:

    1) Convert the numerical day into a date
    2) sum the hourly data to get a total for each day

    Any help from more experienced users is greatly appreciated!

    Thanks for reading,

    Philip

    Weather data.xlsx

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Summing hourly data into daily data, and converting numbered day into a date

    In F1, add the column title "Date"

    In F2 and copy down,

    =DATE(B2, 1, 0) + C2

    Select any cell in the data, Insert > Pivot table

    Drag Date into Row Labels and Rainfall into Values
    Last edited by shg; 09-09-2012 at 03:24 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    09-09-2012
    Location
    London, England
    MS-Off Ver
    Excel 365 (Insider Beta)
    Posts
    18

    Re: Summing hourly data into daily data, and converting numbered day into a date

    That's...perfect. Thanks!

    Where can I find this stuff out myself?!

    Philip

    PS As it happens, the data are for a place near the Rio Grande 50 miles south of Albuquerque...not too far from your neck of the woods?

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Summing hourly data into daily data, and converting numbered day into a date

    Here are two solutions. Formula and Pivot Table
    Attached Files Attached Files

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Summing hourly data into daily data, and converting numbered day into a date

    the data are for a place near the Rio Grande 50 miles south of Albuquerque...not too far from your neck of the woods?
    That's closer to San Diego than it is to me -- Texas is a big state.

  6. #6
    Registered User
    Join Date
    09-09-2012
    Location
    London, England
    MS-Off Ver
    Excel 365 (Insider Beta)
    Posts
    18

    Re: Summing hourly data into daily data, and converting numbered day into a date

    Thanks for the info, Zbor. I hadn't quite realised how big Texas was!

    Philip

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1