+ Reply to Thread
Results 1 to 9 of 9

2 Row's into 1 Row

  1. #1
    Registered User
    Join Date
    08-05-2019
    Location
    Offaly, Ireland
    MS-Off Ver
    365
    Posts
    20

    2 Row's into 1 Row

    I have 2 rows of data in a spreadsheet which i need as 1 row, it's pretty simple to achieve this if i didn't have a few thousand row's to deal with.

    Example of current data laytout

    January 28th 1989
    1 17 18 30 33 35
    January 21st 1989
    3 8 14 17 27 32
    January 14th 1989
    6 7 12 25 29 30
    January 7th 1989
    1 3 5 6 15 34
    December 29th 1990
    6 7 10 26 31 35
    December 26th 1990
    3 7 14 17 27 33
    December 22nd 1990
    5 16 20 21 32 35

    Required Layout, 9 Col by 7 Row's

    January 28th 1989 1 17 18 30 33 35
    January 21st 1989 3 8 14 17 27 32
    January 14th 1989 6 7 12 25 29 30
    January 7th 1989 1 3 5 6 15 34
    December 29th 1990 6 7 10 26 31 35
    December 26th 1990 3 7 14 17 27 33
    December 22nd 1990 5 16 20 21 32 35

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,719

    Re: 2 Row's into 1 Row

    It would help if you attached a sample Excel workbook, so we can see exactly which columns you are using at the moment.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Don't try to use the Paperclip icon, as it doesn't work on this forum.

    Hope this helps.

    Pete

  3. #3
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: 2 Row's into 1 Row

    Are these data all in Col. A? Or date and 1 number from next row in in col. A and the rest numbers are in B,C,D,E,F?
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  4. #4
    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: 2 Row's into 1 Row

    Are your dates one text in column A or or are the month, date and year in columns A:C?
    Are there always 6 numbesrs for each date?
    Are the numbers always in columns A:F?

    Remember it's always easier for us if you help by uploading a sample of your data in the workbook rather than just some text.
    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.

  5. #5
    Registered User
    Join Date
    08-05-2019
    Location
    Offaly, Ireland
    MS-Off Ver
    365
    Posts
    20

    Re: 2 Row's into 1 Row

    Hopefully the attachment has worked
    Attached Files Attached Files

  6. #6
    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: 2 Row's into 1 Row

    Do your results therefore occupy 9 cells on a row? i.e. 3 for the date and 6 for the numbers? You didn't confirm whether there are always 6 numbers.

  7. #7
    Registered User
    Join Date
    08-05-2019
    Location
    Offaly, Ireland
    MS-Off Ver
    365
    Posts
    20

    Re: 2 Row's into 1 Row

    3 cells for the date and 6 cells for the other numbers

  8. #8
    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: 2 Row's into 1 Row

    One way

    In H1 copied to J7
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In K1 copied to P7
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,719

    Re: 2 Row's into 1 Row

    If you have a few thousand rows to deal with, you might find the OFFSET solution makes the file become a bit sluggish, as it is a volatile function. To avoid this, you can use INDEX, as follows:

    H1: =INDEX(A:A,INT((ROWS($1:1)-1)*2)+1)

    Copy across into I1:J1. Put this formula in K1:

    =INDEX(A:A,INT((ROWS($1:1)-1)*2)+2)

    and copy across into L1:P1.

    Then copy the formulae from H1:P1 down as far as required (until you just get rows of zeros).

    Hope this helps.

    Pete

+ 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