Merging Data

VENKYS

Board Regular
Joined
May 19, 2009
Messages
101
I have data in recd from various zones in a single file. The worksheets are named ... east, west, north, south, zonal, regional, etc.

I need to consolidate data in a new worksheet - "summary" which will contain data from COL A:F of Sheet 1 (EAST), and similarly, COL A:F of west, north, south ONLY. The data count (row count) may differ from every sheet every time. The data should be appended one below another, so that i get all the records in this sheet.

how should i go about...?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi VENKYS, try ~

I would do it dynamically like this ~
As long as column A has no blanks. The first part counts how many rows and selects the range to be copied, copies it, then goes to the summary sheet and pastes the data in the first blank cell in column A. Then, just repeat the code for your other sheets.

Code:
Sub nnn()
Sheets("East").Select
Range("=OFFSET($A$1,0,0,COUNTA(OFFSET($A$1,0,0,9999)),6)").Select
        Selection.SpecialCells(xlCellTypeVisible).Select
            Selection.Copy
    Sheets("Summary").Select
    Range("$A65536").End(xlUp).Offset(1, 0).Select
    Selection.PasteSpecial Paste:=xlPasteValues
    
    'Rest of code as Above, repeat for your other sheets just changing the references. (Sheets)
    
End Sub

Cheers.
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,233
Members
452,898
Latest member
Capolavoro009

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