Merge/Stack Multiple Named Ranges (Across Multiple Worksheets) in a Master Sheet
I would appreciate help in a problem which I am facing - despite all efforts of searching multiple blogs/ forums (including my favorite, chandoo.org), I am unable to find a non-VBA solution.
Briefly, I work for a small company with offices in Mumbai (HO), Bangalore and Kochi. There is a common xlsx file for expenses with 3 sheets (Mumbai, Bangalore, Kochi) with user rights from each location to add their expenses to their office sheet. So far we have been manually copying all records from all three sheets to a seperate Master Sheet to tabulate the firm-wide expenses.
However, I want to insert a 4th sheet in the expenses document which automatically copies all data (without repeating the headers) onto the Master Sheet and ensures that we are able to monitor expenses real time as the expenses are recorded by every location. (Of course there are other applications for the same principle, i.e. incomes can also be arranged in the same way, multiple bank accounts can be consolidated in the same way, etc.)
Now, this implies that the data is dynamic and is constantly growing. Secondly, the sheets all share identical layout including the master sheet.
What I want is that the Master sheet should automatically link/ copy each data item from Mumbai (say 25 rows of data), Bangalore (say 60 rows of data) and Chennai (say 10 rows of data) and stack them one on top of the other - so Mumbai data from row 1-25 on Master sheet, Bangalore data from row 26-86 and Chennai data from row 87-97. And thereafter as more and more rows of data are added from the 3 locations, the Master sheet will incorporate all the entries (both old and new). This sheet can be used for further consolidation of financials for the company as well as deeper analysis using pivot tables.
Some of the steps I have taken are,
I have created Named Ranges for each location i.e. Mumbai, Bangalore, Chennai - Tried naming a 4th Named Range - Master which Refers to=Mumbai,Bangalore,Chennai but to no avail - whether multiple worksheets are the problem or non contiguous ranges are the problem I dont know.
VBA solution I have found is to create a temporary range which is a union of the three ranges but I would prefer to do it without VBA as multiple users will handle the document and are not as proficient/ comfortable.
Alternatively, a solution is to use multiple range/sheet inputs in Pivot tables - however, I am not able to get it to work as the page fields do not reflect all the column headings the way it reflects when using a single input/sheet range. So solutions from this angle would also be welcome.
Somehow I feel the solution is within reach but for some small errors/ lack of understanding by me.
Would appreciate if someone can guide me.
I did find a similar solution on this forum itself (http://chandoo.org/forums/topic/combine-two-dynamic-range-from-different-worksheet-into-a-third-worksheet) but it uses an additional column of formula on the Master sheet. I just think the combination of multiple dynamic named ranges would be a far more elegant and simple solution for others as well. Of course if it is not possible I would love to understand whether the issue is with the ranges being non-contiguous, being dynamic or their positioning on multiple worksheets or anything else.
Another similar issue - http://www.mrexcel.com/forum/excel-questions/23135-combining-named-ranges-into-one-master-range-validation.html
If a sample worksheet is required, I will be happy to put it up.
Thanks!
I would appreciate help in a problem which I am facing - despite all efforts of searching multiple blogs/ forums (including my favorite, chandoo.org), I am unable to find a non-VBA solution.
Briefly, I work for a small company with offices in Mumbai (HO), Bangalore and Kochi. There is a common xlsx file for expenses with 3 sheets (Mumbai, Bangalore, Kochi) with user rights from each location to add their expenses to their office sheet. So far we have been manually copying all records from all three sheets to a seperate Master Sheet to tabulate the firm-wide expenses.
However, I want to insert a 4th sheet in the expenses document which automatically copies all data (without repeating the headers) onto the Master Sheet and ensures that we are able to monitor expenses real time as the expenses are recorded by every location. (Of course there are other applications for the same principle, i.e. incomes can also be arranged in the same way, multiple bank accounts can be consolidated in the same way, etc.)
Now, this implies that the data is dynamic and is constantly growing. Secondly, the sheets all share identical layout including the master sheet.
What I want is that the Master sheet should automatically link/ copy each data item from Mumbai (say 25 rows of data), Bangalore (say 60 rows of data) and Chennai (say 10 rows of data) and stack them one on top of the other - so Mumbai data from row 1-25 on Master sheet, Bangalore data from row 26-86 and Chennai data from row 87-97. And thereafter as more and more rows of data are added from the 3 locations, the Master sheet will incorporate all the entries (both old and new). This sheet can be used for further consolidation of financials for the company as well as deeper analysis using pivot tables.
Some of the steps I have taken are,
I have created Named Ranges for each location i.e. Mumbai, Bangalore, Chennai - Tried naming a 4th Named Range - Master which Refers to=Mumbai,Bangalore,Chennai but to no avail - whether multiple worksheets are the problem or non contiguous ranges are the problem I dont know.
VBA solution I have found is to create a temporary range which is a union of the three ranges but I would prefer to do it without VBA as multiple users will handle the document and are not as proficient/ comfortable.
Alternatively, a solution is to use multiple range/sheet inputs in Pivot tables - however, I am not able to get it to work as the page fields do not reflect all the column headings the way it reflects when using a single input/sheet range. So solutions from this angle would also be welcome.
Somehow I feel the solution is within reach but for some small errors/ lack of understanding by me.
Would appreciate if someone can guide me.
I did find a similar solution on this forum itself (http://chandoo.org/forums/topic/combine-two-dynamic-range-from-different-worksheet-into-a-third-worksheet) but it uses an additional column of formula on the Master sheet. I just think the combination of multiple dynamic named ranges would be a far more elegant and simple solution for others as well. Of course if it is not possible I would love to understand whether the issue is with the ranges being non-contiguous, being dynamic or their positioning on multiple worksheets or anything else.
Another similar issue - http://www.mrexcel.com/forum/excel-questions/23135-combining-named-ranges-into-one-master-range-validation.html
If a sample worksheet is required, I will be happy to put it up.
Thanks!