change formulas in multiple cells at once

andrewb90

Well-known Member
Joined
Dec 16, 2009
Messages
1,077
Hi all,

I am trying to change the formulas that are in several hundred cells all at once. Every formula's cell reference needs to increase by 140. (i,e, if cell b1 has the formula "=Mon!D20" it should say "=Mon!D160") Is there an easy way to do this with retyping everything?
Not all of the cells are in order so changing the top and filling down won't work for me.

Thanks,

Andrew
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Hi all,

I am trying to change the formulas that are in several hundred cells all at once. Every formula's cell reference needs to increase by 140. (i,e, if cell b1 has the formula "=Mon!D20" it should say "=Mon!D160") Is there an easy way to do this with retyping everything?
Not all of the cells are in order so changing the top and filling down won't work for me.

Thanks,

Andrew

If I understand you correctly, select the entire spreadsheet. Then replace D20 with D160.
 
Upvote 0
That doesn't seem to help. I don't want to change every formula on the sheet.
I did select a group of cells and changed the first formula but it just moved on to the next cell for me to change that formula.

I'm looking to do a fill option that might do what I am looking for.
 
Upvote 0
Is it correct to say that you want to change every formula that begins with ""=Mon!D" and increase the row by 140?
 
Upvote 0
Insert 140 cells to the top of column D, the formulas will adjust. (i.e. select D1:D140, press Insert, specify shift down)

You can then use copy/paste to move any data in column D back to its original place.
 
Upvote 0
but wouldn't that adjust all of the formulas below that? Not every cell on the page needs to be adjusted.
 
Upvote 0
That method will adjust all of the references to column D in the whole workbook.

References to non-column D cells will be unaffected.

Formulas in column D will be affected, if there are any that need to be moved back, Cut and paste should be used instead of Copy Paste.
 
Upvote 0
Oh, I see, the cell references are scattered from C:N and they are on 7 different sheets. That would make it a little hard to do.
 
Upvote 0
How many cells that are not in Column D contain formulas that refer to column D that you want adjusted?

How many cells, that are not in Column D, contain formulas that refer to column D that you do not want adjusted?
 
Upvote 0
I have the same road block when having to duplicate my formulas and then having to manually change a few hundred formulas to reference the correct cells. i used the "find and replace" function after selecting all the cells in which i want to update my formulas. This works wonderfully for me.

for your case. Select all the cells with "=Mon!D20" that you want to change. then Crtl + F. Replace. Then enter the part that you wish to change in "Find what" box. which is D20, then Replace it with the new cell reference "D160"

Good Luck
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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