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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
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,223,896
Messages
6,175,263
Members
452,627
Latest member
KitkatToby

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