Combine data from multiple sheets with sheet name

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
Hello guys,

This is a continuation of the earlier query. There are multiple sheets in this workbook. They may range from minimum 3 to 11 sheets. In this case it is just 3 +1 sheets.

First of all, In the old code, I need to edit the code to display (As Per Portal),in the Edited Portal sheet under the column “Data from” as shown in the Edited portal sheet and fill it down.

Secondly, I want to copy data from sheets Journal, IGST and CGST column wise, and paste it to Edited Portal below the last empty row, under the same heading. (Except Line). Here, in the portal sheet “Data from” column I want the name of the sheet (As Per Journal), (As Per IGST), (As Per CGST), respectively.

Please note, Not all headings are available in sheets Journal, IGST and CGST. But whatever is available, to be posted.

After combining the sheets, Column B, below the “Portal” last row, to enter and fill down name “Tally”. The Line number to be filled down from Portal last number to the end as shown in the expected Result sheet.

Finally, I need to color all the values where the column B contains Portal from column A to M. Green color. Format the cells to Bold.

In future, your comments (explanation) on each line, will be very helpful to combine 10 or more sheets by editing the code.

Combine each Data as sheet name.xlsm
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
If a code is written this way, except portal search data in all sheets and post them to portal sheet one below the other under the available headings. If there are headings in the other sheets which are not in Portal sheet then it should avoid those and remaining matched headings to be posted. You can give the sheet names as A, B, C, ,D E, F and so on and try to write the code. If sheet A is blank, then go to sheet B and so on. Just a thought.?
 
Upvote 0
Your link does not contain 'Edited Portal' that you mention in post #1.
 
Upvote 0
You have to run the code to get the edited Portal sheet.
 
Upvote 0
Please note, Not all headings are available in sheets Journal, IGST and CGST. But whatever is available, to be posted.
Do each of these columns have to be matched up individually? In other words, would there be columns not included in the middle or just columns on the end that are not always included?
 
Upvote 0
To match I have already inserted a column in the beginning named Remarks. The problem at hand is getting all the data in the columns from different sheets under the same headings as in Edited portal sheet
 
Upvote 0
This is a kind of reconciliation of Portal and Tally. The next query will be the final one but also the toughest one for me to put it in words.
 
Upvote 0
I noticed you lost the cell borders in the colored range of cells. Did you want the borders reinstalled?

Current.PNG
Current with borders.PNG
 
Upvote 0

Forum statistics

Threads
1,225,156
Messages
6,183,230
Members
453,152
Latest member
ChrisMd

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top