View Full Version : Combine Columns From Multiple Sheets To One Sheet
Portucale
04-24-2013, 06:09 PM
Hi,
I am looking to consolidate two worksheets within the same workbook but the worksheets do have a couple of different column names, example:
Sheet 1
Column 1, Column 2, Column 5, Column 6, Column 7
Sheet 2
Column 1, Column 2, Column 3, Column 4, Column 7
As you can see Column 1, Column 2 and Column 7 are concurrent with both worksheets but the others aren't, so is there any VBA which could consolidate the data in the correct columns?
Any help is very much appreciated.
Kind regards,
Excel Fox
04-24-2013, 06:45 PM
So you want them to be consolidated in to one single sheet, which means the should come one below the other, but based on the different columns you've highlighted.
Portucale
04-24-2013, 06:51 PM
what I need is a consolidate sheet where the data from the other two sheets will be consolidated but the columns which aren't comum to bth sheets still visible and filled with "0"
Consolidated sheet headers:
Column 1, Column 2, Column 3, Column 4, Column 5, Column 6, Column 7
Hope I explained what I want to achieve :-)
Excel Fox
04-24-2013, 07:17 PM
So will there be just two sheets? Also, the number of rows in each sheet will be the same?
Portucale
04-24-2013, 07:44 PM
Hi,
There will only two sheets but the number of rows may be different...
Sheet 1
Month Payroll UserID Name CELPayroll CELName CurrMth Mth1 Mth2 NPSScore NPSPayment
Sheet 2
Month Payroll UserID Name CELPayroll CELName CurrMth Mth1 Mth2 QAScore QAPayment
As you can see NPSScore and NPSPayment is only in Sheet 1 as QAScore and QA Payment is only in sheet 2, ideally I would have a "Consolidated" sheet with columns
Month Payroll UserID Name CELPayroll CELName CurrMth Mth1 Mth2 QAScore QAPayment NPSScore NPSPayment
and with the complete data from both sheets,
Thanks,
Charles
04-24-2013, 08:12 PM
HI,
It may help in confusion if you attach a sample of your request.
Show a before an after example.
Excel Fox
04-24-2013, 09:18 PM
So why don't you just use a VLOOKUP formula in one of the sheets?
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.