How to consolidate identical data from different sheets?

CopperKnife

New Member
Joined
May 26, 2015
Messages
14
Hi,

I have a workbook with 365 worksheets with the following Column headers. In every worksheet data starts from first row to 85 row only. It is all identical in all the sheets. I want to consolidate into one single sheet. But it spread over multiple sheets when I copied a PDF and converted into Excel file. I have seen people use INDIRECT function for this problem, but no clear idea how to use it for this. Can we do it using VBA code? Please help me. Advance thanks.

SNo--RollNo--Name--DOB--Place--Centre

CopperKnife
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
If you simply want all sheets combined....create a sheet called "Master", then run this code

Code:
Sub MM1()
Dim ws As Worksheet
For Each ws In Worksheets
    ws.UsedRange.Copy
    Sheets("Master").Cells.SpecialCells(11).Offset(1, 0).End(xlToLeft).PasteSpecial xlValues
Next ws
End Sub
 
Upvote 0
Hi Michael,

Without looking at the data you have written this code like a gun, Thank you so much.
CopperKnife
 
Upvote 0
Can I ask why you have a separate tab for each day of the year? Surely it would be easier to have everything in one tab with an extra column for date that you could simply filter on?
 
Upvote 0
@Robert
I think it's downloaded data from an external source

But it spread over multiple sheets when I copied a PDF and converted into Excel file.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,816
Members
449,469
Latest member
Kingwi11y

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