+ Reply to Thread
Results 1 to 7 of 7

Convert Horizontal to Vertical Table

  1. #1
    Registered User
    Join Date
    03-24-2020
    Location
    Adelaide
    MS-Off Ver
    2016
    Posts
    4

    Convert Horizontal to Vertical Table

    Hi there,

    I have an excel sheet where dates are in vertical columns and times are in horizontal row. I want to convert all of the data into vertical form. How can I do that? Below is the thing I want to do.

    CURRENT FORMAT

    00:00 00:30 01:00 01:30 02:00 02:30 03:00 ..................................................................... 23:30
    Date 1
    Date 2
    Date 3
    .
    .
    .
    .
    Date 365


    I WANT TO CONVERT INTO THIS FORMAT

    Date 1 00:00
    Date 1 00:30
    Date 1 01:00
    Date 1 01:30
    . .
    . .
    Date 1 23:30

    Date 2 00:00
    Date 2 00:30
    Date 2 01:00
    Date 2 01:30
    . .
    . .
    Date 2 23:30

    Date 3 00:00
    Date 3 00:30
    Date 3 01:00
    Date 3 01:30
    . .
    . .
    Date 3 23:30

    Could you suggest how do I do that? I have also attached the excel sheet with this message. Not sure if it is getting attached.


    Look forward to your valuable input in this regard.


    Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: Convert Horizontal to Vertical Table

    Please see attached file.
    HTH,
    ikboy
    Attached Files Attached Files

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,496

    Re: Convert Horizontal to Vertical Table

    In other sheet, cell C2
    =HH!B2+1/48
    B3:
    =INT(C2)
    Drag both down
    Attached Files Attached Files
    Quang PT

  4. #4
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Convert Horizontal to Vertical Table

    I think you're looking more for something like this outcome...

    In a new sheet use this code..
    Please Login or Register  to view this content.
    It won't let me upload the workbook file for some reason. Just copy and paste this code into a new sheet and run it as often as you like.

    Edit: Here it is. I had to cut down on the amount of data significantly, but I think you can get the drift?
    Attached Files Attached Files
    Last edited by Croweater; 09-09-2020 at 05:41 AM.

  5. #5
    Registered User
    Join Date
    03-24-2020
    Location
    Adelaide
    MS-Off Ver
    2016
    Posts
    4

    Re: Convert Horizontal to Vertical Table

    Hi All,

    Thanks for your valuable time and inputs.

    Croweater - This is what I was looking for. I downloaded the Temp2 sheet that you attached and it has what I require. I will use that.

    In regard with the Code part - Sorry I am illiterate in Coding for excel - Where do I paste that?


    Thanks

  6. #6
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Convert Horizontal to Vertical Table

    So you create a new sheet (Sheet1 say).
    Then you hit Alt + F11 to open the VBA editor. Copy and paste it there.
    Then on that same screen hit Run> Run Sub.

    That should do it for you.

  7. #7
    Registered User
    Join Date
    03-24-2020
    Location
    Adelaide
    MS-Off Ver
    2016
    Posts
    4

    Re: Convert Horizontal to Vertical Table

    Yep. It did the trick. Thanks very much.

+ 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. [SOLVED] Convert horizontal values to match vertical ones in a table
    By dr4nce in forum Excel General
    Replies: 7
    Last Post: 02-01-2019, 02:50 PM
  2. [SOLVED] Convert horizontal data to vertical for Pivot table
    By jonpaulson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-10-2014, 12:47 PM
  3. convert horizontal to vertical
    By syuk225 in forum Excel General
    Replies: 2
    Last Post: 06-14-2012, 02:56 AM
  4. convert horizontal to vertical
    By syuk225 in forum Excel General
    Replies: 1
    Last Post: 06-14-2012, 02:50 AM
  5. [SOLVED] Convert Horizontal Table to Vertical List
    By TXboiler in forum Excel General
    Replies: 3
    Last Post: 04-22-2011, 09:27 PM
  6. convert horizontal to vertical
    By mhedge in forum Excel General
    Replies: 2
    Last Post: 03-09-2011, 12:45 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