Find and Replace Value in List Named Range Reference

arembr01

New Member
Joined
Feb 16, 2014
Messages
10
I am making a bracket for basketball teams by region. I select the winner of the game based on a list referencing the named ranges you see pasted below. I pull data from multiple web queries into each regional bracket and have many formulas. Because of this, its quicker to copy the sheet and update the data table references, which I can do by changing the region number in cell H1 and using indirect.

What I would like to do is be able to have some kind of find and replace for the named range refenced in the lists. Region 13 uses the following named ranges for lists in the bracket.
_R13R1T1_R13R1T2_R13R1B1_R13R1B2_R13R2T_R13R2B_R13Final

For example, if I copied the sheet and made a region 14 bracket. I want something to find the number 13, and replace it with 14, which would be in H1. I do not want to delete any named ranges from the workbook, only replace them as named range on the list.

This would only apply to a sheet that begins with "Bracket_" Range is I4:U27. Find all the named ranges that are part of a list, find the number after the 1st R (1-16), and replace it with the number in H1.
 

Attachments

  • 1706710886960.png
    1706710886960.png
    18.2 KB · Views: 5

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top