+ Reply to Thread
Results 1 to 6 of 6

Combine data in 2 rows into 1 single row

  1. #1
    Registered User
    Join Date
    09-28-2022
    Location
    Perth
    MS-Off Ver
    O365
    Posts
    29

    Combine data in 2 rows into 1 single row

    HI
    I got some data for tennis matches.
    The data for each match is in 2 rows.

    I would like to merge both the data into 1 column as shown in output tab(example).

    Thank you in advance
    Attached Files Attached Files

  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,733

    Re: Combine data in 2 rows into 1 single row

    See attached file, which shows the table in the Output sheet with the appropriate data. The formulae used are based around INDEX and MATCH, like this one in B2:

    =IF($A2="","",INDEX('WTA-DATA'!$A:$M,ROWS($1:1)*2+1,MATCH(B$1,'WTA-DATA'!$A$2:$M$2,0)))

    The ROWS term determines the row to get the data from, with either +1 or +2 (for player 2) as can be seen in the formulae further to the right. The first few columns also use the MATCH function, to determine from the headers which column to get the data from.

    I've copied the formulae down to row 20, but you can copy them further if you have more data in the WTA-DATA sheet.

    Hope this helps.

    Pete
    Attached Files Attached Files

  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Combine data in 2 rows into 1 single row

    Here is a 1 formula solution for all items of a match.

    Try in A2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-28-2022
    Location
    Perth
    MS-Off Ver
    O365
    Posts
    29

    Re: Combine data in 2 rows into 1 single row

    thank you both..nicely done

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,433

    Re: Combine data in 2 rows into 1 single row

    Glad to help. Thanks for the feedback and rep. .

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

    Re: Combine data in 2 rows into 1 single row

    You're welcome, and thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

+ 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. Combine data in 2 rows into 1 single row
    By idealist87 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-13-2022, 04:53 AM
  2. [SOLVED] How to combine data from multiple rows into a single row / multiple columns
    By Iain170 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-17-2020, 06:56 AM
  3. [SOLVED] Formula to Combine Multiple Rows into a single row of data
    By sherylt13 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-17-2017, 10:12 PM
  4. Combine Data in Multiple Rows into Single Row
    By koonwei605 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-18-2014, 07:43 AM
  5. Replies: 6
    Last Post: 02-19-2014, 10:25 AM
  6. combine nmultiple rows of data to single
    By supert8ch in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-05-2013, 08:49 AM
  7. How to combine several Rows in excel into a single row.
    By Vadimchik in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-06-2012, 03:39 AM

Tags for this Thread

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