First, I have to ask, is there any good reason why you need to have your data spread across 26 worksheets? Can't you consolidate it into one worksheet once and for all? It would make it much more maintainable!
If you must stay with your current structure then here is one possible way to automate the consolidation.
The following description is with reference to the attached workbook.
I have introduced a "helper" worksheet. Col-A is a list of your worksheet names. I have used "a", "b", "c", and so on. Change these names to reflect your real workbook.
Col-B simply counts the number of entries (names) on each worksheet. In B3 copied down: Col-C is a cumulative count of the names. In C3 copied down: Col-D is unused in the final version. It has been merged into the "Consolidated" worksheet formula. I have retained it here as it may help debug if extra header rows or other changes are made to the layout that may break the formulas. It has a row for every name and provides an index back to the source worksheet for each name. In D3 copied down: The "Consolidated" worksheet is the required output worksheet. It lists all the names from all 26 worksheets.
In A2 and copied down until you see blank rows
The attached workbook provides 3 sample worksheets for A, B and C named "a", "b", "c". To adapt this workbook to your needs:
1) Add further worksheets for D-Z.
2) If you use different worksheet names then update helper!A:A accordingly.
3) Populate each worksheet
4) Make sure that the formula in Consolidated!A:A is copied down far enough to cover all names.
That's it!
Hope this helps - let me know.
Bookmarks