+ Reply to Thread
Results 1 to 5 of 5

Consolidate Rows and Columns with Data

  1. #1
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Consolidate Rows and Columns with Data

    Would this be possible.
    In attached, I want to consolidate data from columns only with data in.
    I have 2 options for this in attached : Results 1 and Results 2, any of them will work
    Thanks
    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,737

    Re: Consolidate Rows and Columns with Data

    Using a couple of helpers, put this formula in C2:

    =IF(COUNTIF(C4:C51,"?*")=0,"-",MAX($B2:B2)+1)

    and copy across to N2, then use this formula in A4:

    =IF(COUNTIF(C4:N4,"?*")=0,"-",MAX(A$3:A3)+1)

    and copy down to A51.

    Then you could have this formula in AH3:

    =IFERROR(INDEX($C$3:$N$3,MATCH(COLUMNS($AH:AH),$C$2:$N$2,0)),"")

    and copy this across until you start to get blanks. Then use this formula in AG4:

    =IFERROR(INDEX(B:B,MATCH(ROWS($1:1),A:A,0)),"")

    Copy this down until you get blanks.

    Finally, put this formula in AH4:

    =IFERROR(INDEX($C$4:$N$51,MATCH($AG4,$B$4:$B$51,0),MATCH(AH$3,$C$3:$N$3,0)),"")

    Copy into AI4 (no need to copy further across, as row 2 will show that there are only 2 columns used), then copy AH4:AI4 down until both start to show blanks.

    You can delete columns P to AF if you no longer need them.

    Hope this helps.

    Pete

  3. #3
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Consolidate Rows and Columns with Data

    Ha. I just created something similar for someone else. Give this a try (for Option 1):

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  4. #4
    Forum Contributor
    Join Date
    05-20-2016
    Location
    Detroit
    MS-Off Ver
    Office 365 Version 2008 (July 2020)
    Posts
    819

    Re: Consolidate Rows and Columns with Data

    Both works !
    Thank you

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

    Re: Consolidate Rows and Columns with Data

    Glad to help, 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. [SOLVED] Consolidate data from rows to columns
    By ABSTRAKTUS in forum Excel General
    Replies: 2
    Last Post: 02-12-2019, 08:27 AM
  2. [SOLVED] Rearrange columns to rows and consolidate data
    By billrogers184 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-03-2018, 12:26 PM
  3. Replies: 2
    Last Post: 12-09-2016, 01:47 AM
  4. Consolidate Data In Multiple Rows and Columns Into One Row
    By KiwDaWabbit in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-09-2015, 03:06 PM
  5. [SOLVED] Consolidate text data from rows into columns
    By joevan1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-29-2013, 01:10 AM
  6. Replies: 2
    Last Post: 05-08-2012, 07:17 PM
  7. Replies: 2
    Last Post: 06-14-2011, 12:39 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