Feb 13 2024 06:53 AM
Hi! I inherited a complex workbook used to run general ledger and reports for a small company. There are many named ranges used for lookup tables as well as pivot tables. In the Name Manager, I can see the named ranges and their values.
How can I determine where a named range is being used? I am looking to delete old named ranges refencing worksheets that have since been deleted. For example, a named range from ledger was used to identify data for 2021. That named range was used in a pivot table for 2021. Now that I have deleted the pivot table for 2021, it is a named range that is not being used. Before I delete the named range, how can I ensure that no other worksheet is using that named range (no just assuming it was only used in the typical place - might be referenced in another report worksheet)?
Additionally, when I look at named ranges in the Name Manager, I can see that several have #REF! for Value (instead of a column header listing). They also have "#REF!" in the Refers To column (ex: 'MY WORKSHEET'!#REF!). That indicates that the range is invalid, correct (like the source data worksheet was deleted or the data no longer exists in the original range)? If so, it is useless, but before I delete the named range, I want to ensure it is not being referenced in any other worksheet (see question above). If it is being referenced in a worksheet, then I need to refactor that worksheet or it may be something I can delete as well.
Feb 14 2024 02:48 AM
To find out where a named range is used/referenced in your entire workbook, you can use the "Find" feature in Excel. Here is how you can do it:
Regarding your second question: Yes, a named range with "#REF!" in the "Refers To" column indicates that the range is invalid, possibly because the source data worksheet was deleted or the data in the original range no longer exists. Before deleting this named range, you should ensure it is not referenced by other worksheets by following the steps outlined above.
If the named range is no longer needed and not referenced by other worksheets, you can safely delete it. Otherwise, you may need to review and potentially modify other worksheets before deleting the named range. The text was revised with the AI.
Formularbeginn
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and like it!
This will help all forum participants.