# Find/Replace all formulas that contain X with Y

#### petegrant89

##### New Member
Hello,

I have a large sheet that contains formulas such as "=SUM('10-20-202-09'!U15,'10-20-202-10'!U15,'10-20-202-11'!U15,#REF!U15,#REF!U15)" in multiple columns. The #REF! error that I am receiving is because the sheet is a template of department sales that have a roll-up to a summary sheet, and each time I use the template there are different amounts of sub-categories and roll-up sheets.

In this case, I need to be able to do a find/replace on "=SUM('10-20-202-09'!U15,'10-20-202-10'!U15,'10-20-202-11'!U15,#REF!U15,#REF!U15)" to replace it with =SUM('10-20-202-09'!U15,'10-20-202-10'!U15,'10-20-202-11'!U15,).

The problem that I am having is that the find/replace function does not take into account that I need this rule to apply to every row in that column, so U15 would become U16,U17, etc. Basically, I would need find/replace to search for "=SUM('10-20-202-09'!X</SPAN>,'10-20-202-10'!X</SPAN>,'10-20-202-11'!X</SPAN>,#REF!X</SPAN>,#REF!X</SPAN>) and replace it with =SUM('10-20-202-09'!Y</SPAN>,'10-20-202-10'!Y</SPAN>,'10-20-202-11'!Y</SPAN>).</SPAN>

### Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Replies
6
Views
300
Replies
1
Views
134
Replies
14
Views
918
Replies
1
Views
191
Replies
1
Views
362

1,207,392
Messages
6,078,223
Members
446,323
Latest member
fishezuk

### 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.

### Which adblocker are you using?

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

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