+ Reply to Thread
Results 1 to 4 of 4

Transpose year long hourly time-series

  1. #1
    Registered User
    Join Date
    01-10-2014
    Location
    Stuttgart, Germany
    MS-Off Ver
    Excel 2013
    Posts
    8

    Transpose year long hourly time-series

    Hi,

    Could anyone help me transpose an hourly time series for one year where each row represents a day and columns represent each hour in a day. I want it to be transposed into one column where each row represents each hour of a day. Is there an automatic way of doing it. Please find attached the file and the end product format. Thanks a lot.

    Fidel
    Attached Files Attached Files

  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: Transpose year long hourly time-series

    Correcting the hours across the top to 0 to 23 instead of 1 to 24,

    Row\Col
    AA
    AB
    AC
    AD
    2
    2012-01-01 00:00
    40318
    AA2: =INDEX($A$2:$A$367, INT((ROWS(AA$2:AA2)-1)/24) + 1) + MOD(ROWS(AA$2:AA2)-1, 24)/24
    3
    2012-01-01 01:00
    38406
    AB2: =INDEX($B$2:$Y$367, INT((ROWS(AB$2:AB2)-1)/24) + 1, MOD(ROWS(AB$2:AB2)-1, 24) + 1)
    4
    2012-01-01 02:00
    36501
    5
    2012-01-01 03:00
    35305
    6
    2012-01-01 04:00
    34568
    7
    2012-01-01 05:00
    33501
    8
    2012-01-01 06:00
    31650
    9
    2012-01-01 07:00
    32109
    10
    2012-01-01 08:00
    32981
    11
    2012-01-01 09:00
    35063
    12
    2012-01-01 10:00
    37709
    13
    2012-01-01 11:00
    40771
    14
    2012-01-01 12:00
    41374
    15
    2012-01-01 13:00
    40913
    16
    2012-01-01 14:00
    40577
    17
    2012-01-01 15:00
    40865
    18
    2012-01-01 16:00
    43536
    19
    2012-01-01 17:00
    47675
    20
    2012-01-01 18:00
    48918
    21
    2012-01-01 19:00
    47909
    22
    2012-01-01 20:00
    45597
    23
    2012-01-01 21:00
    44366
    24
    2012-01-01 22:00
    43556
    25
    2012-01-01 23:00
    39163
    26
    2012-01-02 00:00
    35115
    27
    2012-01-02 01:00
    32570
    28
    2012-01-02 02:00
    31784
    Last edited by shg; 11-29-2014 at 01:54 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    01-10-2014
    Location
    Stuttgart, Germany
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Transpose year long hourly time-series

    Thanks a lot man!

  4. #4
    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: Transpose year long hourly time-series

    You're welcome, man.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to create daily average from LONG list of hourly data
    By wrf_89 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-13-2017, 12:20 PM
  2. Hi, I have hourly time series data and i need to convert it to 15 min time slots
    By neerajsharma887 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2014, 01:08 PM
  3. Replies: 2
    Last Post: 04-10-2013, 11:17 AM
  4. Calculating hourly averages from 15 minute time-series data
    By randinator in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2012, 12:18 PM
  5. How can I chart a multi-year time series in Excel?
    By Dave Nuttall in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-28-2005, 03:55 PM

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