Dymamic update for references in cells pointing to other sheets or sheets in workbooks

Whack

New Member
Joined
Jul 17, 2023
Messages
4
Office Version
  1. 2021
Platform
  1. Windows
I'm a neophyte with EXCEL and I'm trying to update a file reference in a formula .

My formula looks like this:

=IF(A101="","",'D:\@Advocate\new\[@Client Model.xlsx]Client Info'!$C$4)

Id like the formula to dynamically update to look like:

=IF(A101="","",'D:\@Advocate\new\[Rubble Barney .xlsx]Client Info'!$C$4) <---Hard coded this works...

but there are several entries in each row that needs updating (35) and it's cumbersome, time consuming a error prone to manually update each of the 35 cells... yes, I know I can use the replacement on a "row" and replace all in one blow, but that's still a problem.

Cell AF101 contains Rubble Barney .xlsx

I figured a formula like:

=IF(A101="","",'D:\@Advocate\new\['ConCat(AF101)']Client Info'!$C$4)

but I received the following error message.

I've also tried :

=IF(A101="","",'D:\@Advocate\new\['ConCationate(AF101)']Client Info'!$C$4)

And I get the same error message

Can some kind soul please give me a clue how to get this kind of update to work... I have literally thousands of entries that need to be dynamically updated.

Many thanks in advance
---Whack
 

Attachments

  • excel 1 .jpg
    excel 1 .jpg
    64 KB · Views: 7
  • excel 2 .jpg
    excel 2 .jpg
    24.8 KB · Views: 7

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Thnak you... but I've no idea what "power query" might be..

I tried to follow the instructions to install the XL2BB add-in. Once I got it installed, I couldn't figure out how to use is and I kept getting a warning I couldn't use the function... perhaps it's a macro? I dunno.

Since my previous post, I've tried using

the following functions:

CONCATENATE
ADDRESS
INDIRECT


But I'm still not making much headway

Thanks in advance
---Whack
 
Upvote 0
If you are interested in learning Excel better I suggest looking at some youtube channels including the Mr. Excel Channel.
Here are some other excel channels that have great content:
MyOnlineTrainingHub, Leila Gharani, and ExcelIsFun.

Here is an Excel Is Fun video that may help you figure out how to consistently and easily get new workbooks into your running mass workbook:
It may take a while to watch but Power Query will take just a few clicks each month once you have it set up.

 
Upvote 0
Additionally, using power query will not require being logged into network where your data resides (unless you need to refresh the data source(s)).
 
Upvote 0

awoohaw,​


Thank you so much for the powerquery reference and video link... I'm afraid at this time, that's not quite what I need... is there a way to do what I inquired about initially?

Thanks in advance.
---Whack
 
Upvote 0
The way to change a cell reference via nothing but functions is to use the INDIRECT() function. However, it does not work for external sheets, as is your use case here, unless you would like to also open every single sheet you are referencing. Your closest option is probably to use VBA to update the formulae for you.
 
Upvote 0

awoohaw,​


Thank you so much for the powerquery reference and video link... I'm afraid at this time, that's not quite what I need... is there a way to do what I inquired about initially?

Thanks in advance.
---Whack

I cannot recall any other way. I'm not really sure why you say "it's not quite what I need" as one of power query's main functions is to aggregate data from disparate sources. If you do want to go into power query, there is a forum here in Mr. Excel called Power Tools that you can get some PQ specific assistance with.
Here is the link to that forum: Power Tools

Best wishes.
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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