Deleting part of a formula but preserving the rest

JWill78

New Member
Joined
Feb 13, 2015
Messages
10
Hi

I have a worksheet which has formulae which reference multiple other worksheets, e.g.

[TABLE="width: 800"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Sheet 1'!W367+'Sheet 2'!W367+'Sheet 3'!W367[/TD]
[TD]Sheet 1'!Z367+'Sheet 2'!Z367+'Sheet 3'!Z367[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Sheet 1'!W370+'Sheet 2'!W370+'Sheet 3'!W370[/TD]
[TD]Sheet 1'!Z370+'Sheet 2'!Z370+'Sheet 3'!Z370[/TD]
[/TR]
</tbody>[/TABLE]

My question is is there a quick way of deleting all references in the above formulas to Sheet2 (or indeed Sheet 1 or 3) whilst preserving the rest of the formula?

Many thanks in advance

John
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Select cells
Use Find & Replace

Find what:
'Sheet 2'!

Replace With:
(leave blank)

Replace ALL
 
Last edited:
Upvote 0
For that particular example, you could select those 2 columns and then do a Find/Replace with
Find what: +'Sheet 2'!*+
Replace with: +
In Options, make sure 'Match entire cell contents' is not checked
Replace All
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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