+ Reply to Thread
Results 1 to 7 of 7

Consolidate multiple columns to one using formulas

  1. #1
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Consolidate multiple columns to one using formulas

    Hello,

    I have multiple columns that are different in size and that are getting updated from different sheets each time a new value is added.

    I am looking for a formula solution that will consolidate them in a single column, one under another. I have a total of 9 columns which differ in the number of rows and will be different in the future as well.

    In the attachment I color coded them to be more visible.

    Thank you for your help!
    Attached Files Attached Files
    Click the * to say thanks.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Consolidate multiple columns to one using formulas

    try below formula in O4, copy and paste it towards down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    12-31-2020
    Location
    USA
    MS-Off Ver
    Office 2019
    Posts
    44

    Re: Consolidate multiple columns to one using formulas

    HI Samba_ravi. I am working with a similar workbook so I tried adjusting your formula to fit my sheet. Can you help me figure out where I went wrong? I don't think it's finding all of the values and it's not leaving out blanks.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    05-03-2021
    Location
    Nashville
    MS-Off Ver
    MS Office 365
    Posts
    184

    Re: Consolidate multiple columns to one using formulas

    Quote Originally Posted by Tjfinley View Post
    HI Samba_ravi. I am working with a similar workbook so I tried adjusting your formula to fit my sheet. Can you help me figure out where I went wrong? I don't think it's finding all of the values and it's not leaving out blanks.

    Thanks
    Paste the formula in Q2 and you will get the same result.

    =IFERROR(INDEX($A:$M,MOD(AGGREGATE(15,6,($D$2:$M$9="")*10^10+(COLUMN($D$2:$M$9)&TEXT(ROW($D$2:$M$9),"000000")),ROWS(M$1:M1)),1000000),INT(AGGREGATE(15,6,($D$2:$M$9="")*10^10+(COLUMN($D$2:$M$9)&TEXT(ROW($D$2:$M$9),"000000")),ROWS(M$1:M1))/1000000)),"")


    You also only went down to row 40, the data fills in all the way to row 45 but you can keep filling in the formula down to what ever row desired and will stay blank until there is a value in your columns with data.
    Last edited by thenewkidd; 05-04-2021 at 01:19 PM.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,597

    Re: Consolidate multiple columns to one using formulas

    end is column M so change all L references to M

    =IFERROR(INDEX($A$1:$M$100,MOD(AGGREGATE(15,6,($D$2:$M$11="")*10^10+(COLUMN($D$2:$M$11)&TEXT(ROW($D$2:$M$11),"000000")),ROWS(O$2:O2)),1000000),INT(AGGREGATE(15,6,($D$2:$M$11="")*10^10+(COLUMN($D$2:$M$11)&TEXT(ROW($D$2:$M$11),"000000")),ROWS(O$2:O2))/1000000)),"")

  6. #6
    Registered User
    Join Date
    12-31-2020
    Location
    USA
    MS-Off Ver
    Office 2019
    Posts
    44

    Re: Consolidate multiple columns to one using formulas

    Thank you thenewkidd and JohnTopley! Hope you have a great day

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,597

    Re: Consolidate multiple columns to one using formulas

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Consolidate data in multiple columns
    By Mr_Phil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-15-2020, 12:04 AM
  2. [SOLVED] Consolidate multiple SUMIF formulas
    By firefuze in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-27-2019, 06:08 AM
  3. Consolidate set of multiple columns to one set of columns to a new sheet
    By naresh73 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2018, 09:59 AM
  4. Consolidate columns from multiple worksheets.
    By PaulAllen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2017, 12:13 AM
  5. 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
  6. Consolidate multiple columns and rows into one Column
    By jewels3059 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2013, 11:12 AM
  7. Merge (consolidate) data from multiple workbooks with values derived from formulas
    By Hester's Dad in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-25-2010, 11:36 AM

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