Find and Replace in a relative FORMULA

Excel Chimp

Board Regular
Joined
Oct 30, 2008
Messages
90
Suppose this is your formula:
=+John!C34+Gary!C34+Tim!C34+Cindy!C34+Peter!C34

How would you eliminate the "Cindy!c34" part across many cells? I thought of using Find and Replace (ctrl + h), but the cell reference changes in these cells so that
I wanted to use some text formulas such as FIND and SUBSTITUTE to try to eliminate them, but don't know how to do this for a value within a formula.

Any input is very appreciated!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Perhaps using this replacement criteria:
Find_What: +Cindy!???
Replace with: (leave this blank)

Is that something you can work with?
 
Upvote 0
That's great Ron. Good to know about the "?" special character.

I do wonder about a followup question: How would you use formulas in the case given? for example, if you wanted to use SUBSTITUTE or similar function on a formula?
How does one copy and paste the formulas themselves en masse to another sheet for manipulation? I know CTRL + ` switches to formula view, but seems one cannot copy and paste the formulas to another sheet.

Thanks again!
 
Upvote 0
Try this:
To prepare the formulas for copying:
• Select the range of cells to be copied
• CTRL+H
...Find what: =
...Replace with: |=
...Click: Replace All

• Select the upper left destination cell to receive the copies

Restore the formulas
• CTRL+H
...Find what: |=
...Replace with: =
...Click: Replace All

Is that something you can work with?
 
Upvote 0
Yes, that could work. So essentially, convert them from a formula to a non-formula in order to manipulate. Makes sense.
Thanks for the input!
 
Upvote 0

Forum statistics

Threads
1,224,514
Messages
6,179,223
Members
452,896
Latest member
IGT

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