+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Merging data horizontally vs. vertically

  1. #1
    Forum Contributor
    Join Date
    12-03-2009
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    184

    Merging data horizontally vs. vertically

    Hello Everyone,

    I have been tasked to modify an excel output of performance data on a weekly basis. The data is sampled every minute from a computer that has multiple processors. It will display this data twice, once for each processor vertically. Currently I’m completing the task of reformatting the data in a horizontal format with a few changes to the headers manually. I’ve tried working out a macro to complete this process automatically but it is beyond my understanding of excel. I’m sure I’m not explaining this very well so I have attached two sample workbooks showing the original workbook and the modified workbook. Hopefully some can help or at least give me a clue where to start. I’m so tired of doing this; I’m just about ready to quit my job.

    Thanks much,
    E
    Attached Files Attached Files
    Last edited by enhydra; 12-12-2010 at 04:13 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Merging data horizontally vs. vertically

    Hi,

    One way would be to use the following formulae in the Original and copy down for half the number of data rows.

    G1: =OFFSET(A$1,ROW()*2-3,0)
    H1: =OFFSET(B$1,ROW()*2-3,0)
    I1: =OFFSET(C$1,ROW()*2-3,0)
    J1: =OFFSET(B$1,ROW()*2-2,0)
    K1: =OFFSET(C$1,ROW()*2-2,0)

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    12-03-2009
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    184

    Re: Merging data horizontally vs. vertically

    Thanks for the reply Richard.

    Maybe I wasn't very clear, I'm sure I wasn't clear. I'm not just trying to change headers, I'm trying to change the data as well. Maybe I don't understand your answer, can you elaborate more.

    Thx
    E

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Merging data horizontally vs. vertically

    Try this,
    Click the button go to sheet 2 to see the results
    Attached Files Attached Files

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Merging data horizontally vs. vertically

    Hi,

    Small typo, the formulae should have been placed in G2:K2 not G1:K1

    If you put those formulae in the G2:K2 cells on Sheet1 of the original workbook and then copy G2:K2 down as far as row 26, you'll find the data has been split as you originally requested.

    Rgds

+ 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