Range variable from String (Chicken Before the Egg)

Jeffrey Mahoney

Well-known Member
Joined
May 31, 2015
Messages
2,797
Office Version
  1. 365
Platform
  1. Windows
I don't think this is possible, but I'm going to ask

I have a dozen or so named ranges referencing ranges in other workbooks. I have thousands of formulas in a table that are using those range like:
=IFERROR(VLOOKUP(Z8,CCFCLink03,AB$1,FALSE),"")

What I'd like to do is reference a cell at the top of each column that has CCFCLink01, CCFCLink03, CCFCLink03, etc. This is so I don't have to edit the formula in each column.

I know about Indirect. It doesn't work with ranges outside the current WB.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Is the named range in the current book pointing to another book, or is the named range in the other book? I seem to be using INDIRECT with a named range in another book just fine.

Book1
ABC
11515'Book1 12-18-2023.xlsx'!ProdCt
Sheet2
Cell Formulas
RangeFormula
A1A1=SUM('F:\Documents\_MISC\Excel Stuff\Book1 12-18-2023.xlsx'!ProdCt)
B1B1=SUM(INDIRECT(C1))
 
Upvote 0
Is the named range in the current book pointing to another book, or is the named range in the other book? I seem to be using INDIRECT with a named range in another book just fine.

Book1
ABC
11515'Book1 12-18-2023.xlsx'!ProdCt
Sheet2
Cell Formulas
RangeFormula
A1A1=SUM('F:\Documents\_MISC\Excel Stuff\Book1 12-18-2023.xlsx'!ProdCt)
B1B1=SUM(INDIRECT(C1))
Nevermind, I see that I now have a #REF! error after the book refreshed.
 
Upvote 0
Too late to edit, but my only other thought would be to update the formulas with a worksheet change event when you change the names at the top of the columns.
 
Upvote 0

Forum statistics

Threads
1,215,085
Messages
6,123,030
Members
449,092
Latest member
ikke

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