Merge Excel worksheets?
July 21, 2008 8:23 AM
Subscribe
What's the easiest way to merge data from multiple Excel worksheets into one big worksheet
I have a workbook with 223 worksheets. Each worksheet contains information about a given geographic area. The information for any given variable is in the same cell each time. I would like to convert this into one big worksheet.
---------------
Example of what I have:
Worksheet 1 [Area 1]:
Blue: 3
Black: 5
Green: 4
Worksheet 2 [Area 2]:
Blue: 5
Black: 2
Green: 5
------------------
Example of what I want
ONE BIG WORKSHEET
Area, Blue, Black, Green
1, 3, 5, 4
2, 5, 2, 5
--------------------------
If, for example, the value for 'Blue' will always be in cell B3, then, essentially I want a macro that works like this:
For i < 224
BIGSHEETBi=SHEETi!B!3
posted by ewiar to computers & internet (2 comments total)
3 users marked this as a favorite
Sub CombineData() For i = 1 To Sheets.Count Worksheets("BigSheet").Range("B" & i).Value = Worksheets(i).Range("B" & i).Value Next End Subposted by inigo2 at 8:40 AM on July 21, 2008