A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
The method I was trained on, a few years back, was to create 1 workbook, or Excel file and within this file you would have worksheets for each year. Maybe this isn't the best methods going forward?
Hello again El Bee,
In principal I don't think there is anything wrong with the philosophy. However, you said the workbook contains many years of worksheets and you could eventually reach a limit on the number of defined names. Supposedly number of names is based on the available memory but remember the workbook is getting bigger and the number of names is increasing. See the following link for Excel Specs and Limits for xl2010. Google "excel specifications and limits 2010" and replace 2010 for other versions of Excel. (Applies to at bottom of page.)
I have uploaded a very simple example workbook. It contains 2 worksheets with 2 names on each worksheet and these names are scoped to the Workbook. Try the following method of copying the worksheets and then view what occurs with the defined names.
- Right click the workbook tab name "Data 2015"
- Select Move or Copy.
- Check the box against Create copy.
- Select Move to end (This is optional).
- Click OK and it creates a copy with (2) at end of name.
- Rename the worksheet to "Data 2016"
- Select Name Manager and view the names. It has created the new worksheet with the same names but instead of being scoped to the Workbook, they are scoped to the worksheet.
- Check out the formulas in Col 6 and Col 15. You will see they are looking up the data from Col 1 and Col 10 and returning the values from Col2 and Col 11.
- The formulas in Col 5 and Col 15 produce random numbers so you can see that they are returning the values from the same sheet and not from the original sheet "Data 15" where the random formulas are returning different numbers.
- Therefore, if you use this method of copying the worksheets then you should be able to use the same defined names and there is no need to change them.
- I have also included code to perform the copy. Click the button on worksheet "Data 2015".
- The code contains some validation to ensure the old worksheets exist and that the new worksheets have not already been created.
- Following is a link to OneDrive with a zipped file of the example workbook. Download it and give it a try.