changing the name of a worksheet

amgo_gnome

New Member
Joined
Nov 6, 2005
Messages
4
I've created a workbook with several worksheets. One of the worksheets, called 15, references another one, called Dump15, and works ok. However, when I rename Dump15, the cells in 15 give a #REF error, even though the formulas in the cells have been updated with the new name.

Can anybody help please?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi and welcome to the board:

How is the reference made? Can you post up of the formula used in the referencing...

plettieri
 
Upvote 0
Thanks for replying. It's quite a compicated formula:-

IF(ISERROR(MATCH($M7,Dump15!$A$1:$A$10000,0)),0,INDEX(Dump15!$A:$F,(MATCH($K$3,INDIRECT("'Dump15'!A"&MATCH($M7,Dump15!$A$1:$A$10000,0)&":A10000"),0)+(MATCH($M7,Dump15!$A$1:$A$10000,0))-1),3))

If I rename Dump15, it incorporates the new name into the formula but gives #REF
 
Upvote 0
You are using 'Dump15'! within an INDIRECT statement - this won't automatically update with the name of the renamed spreadsheet.

Regards

Richard
 
Upvote 0
Richard

The formulas on 15 which reference Dump15 ARE being updated to reflect the name change but still the cell is returning #REF.
 
Upvote 0
=IF(ISERROR(MATCH($M7,Dump15!$A$1:$A$10000,0)),0,INDEX(Dump15!$A:$F,(MATCH($K$3,INDIRECT("'Dump15'!A"&MATCH($M7,Dump15!$A$1:$A$10000,0)&":A10000"),0)+(MATCH($M7,Dump15!$A$1:$A$10000,0))-1),3))

The Dump15 in bold is part of a string and not part of a cell reference - I would be very surprised if this was being updated - can you recheck it?

Richard
 
Upvote 0
Richard

My apologies! There are five 'Dump's in that formula and I obviously didn't check closely enough. Four of them are being updated, but as you quite rightly say, the one in the string is not being updated. What a muppet I am!

That's been a great help.

Thank you very much.

John
 
Upvote 0

Forum statistics

Threads
1,203,502
Messages
6,055,770
Members
444,822
Latest member
Hombre

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