I have a number of Worksheets which track projects. All of these worksheets follow the same formatting and layout. More of these worksheets are created on a weekly basis. So there is 5 at the moment but there will be many more in the future.
I am looking create a master worksheet which uses a certain cells to summerise the key points from the worksheets.
For example For each (sheet1, sheet2, sheet3 etc...) I need the same data which is on the same cells across sheets. The data goes from cells H13:H18, H20:H28, and H30:48. I need to pull this data of the to master sheet where it will be divided by the number of cells to give me a percentage. Once this has been done along the same row in "Sheet1" it will move to the next sheet ("Sheet2") and copy the data to the next row of the master sheet.
So far this is what I have come up with, total beginner:
Dim lastRow As Long
Dim wb As Workbook
Set themaster = Sheets("Master")
Set wb = Application.Workbooks("workb1")
For i = 1 To wb.Sheets.Count
wb.Sheets(i).Activate
Sheet.Range("C4", "H13:H18", "H20:H28", "H30:H48").Select
Selection.Copy
lastRow = themaster.Range("A" & themaster.Rows.Count).End(xlUp).Row
With Selection
.Copy Destination:= themaster.Range("A" & lastRow + 1)
.EntireRow.Delete
End With
Next
I dont really know how to progress. Not sure how to get the data to be pasted along the row and how to insert it as a part of a formula. Also unsure how to keep this automated so as new worksheets are completed this can be re run and the master sheet up-dated.
Any help would be greatly appreciated.
AVERAGE
formula, for example, can work across sheets (including an unknown number of sheets). Look at this site and this site – PeterTFor Each Worksheet in Worksheets
loop. Don't worry about your average right away. One problem at a time (first learn how to loop through your sheets and copy/paste) – urdearboy