chrisanouk,
Attached is an example workbook based on the criteria provided. Sheet4 is named 'All Data' and it has the headers of the other sheets. In Cell A2 is this formula:
And then it is copied over for each column with a header and down until row 101 (which works for this example because the total amount of rows in sheets 1, 2, and 3 is only 60). The extra rows are blank, the rows that should have data, do have data which is pulled from the three different worksheets in order.
In sheets 1, 2, and three, column Z is this formula in cell Z2 (this formula gets the sheetname of the sheet the formula is in):
In sheet 'Add Data' column Y is this formula in cell Y2 and then copied down (this formula collects the worksheet names of the different sheets. This is done to allow the sheets to be renamed and it will not affect the final result):
Finally, an Index/Match table is setup in 'All Data' column Z which counts the number of used rows in each worksheet. Cell Z1 = 0. Cell Z2 and copied down is:
These supplemental formulas in columns Y and Z of each worksheet are hidden so that the user cannot see them. Is something like that what you're looking for?
NOTE: To accomplish its goals, the formula uses Indirect and Offset, both of which are volatile functions, so with a large workbook, it could bog things down and wouldn't necessarily be a good solution.
Bookmarks