Changing a formulae multiple times in excel

hyoung1445

New Member
Joined
Mar 14, 2014
Messages
2
A colleague created a spreadsheet which amalgomates data from 12 tabs (Each tab relates to a different date). In the amalgomated spreadsheet each cell relates to a different cell in the tabs. I dont know how she created this originally but I have noticed that in a number of the columns there is an error every fourth row where the forumlae relates to the wrong cell e.g. ='13-01-2014'!$A174 should be ='13-01-2014'!$A$11. Obviously a $ has been missed out therefore the error is not consistent i.e. the next one is ='13-01-2014'!$G177 rather than ='13-01-2014'!$G$11.

Because there error is not consistent i can't simply find and replace. There are apporximately 1500 rows and this error occurs in 5 columns every fourth cell. Is there an easier way of correcting this without doing it manually?

Thanks
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Press Ctrl + F then go to replace

in Find what paste ='13-01-2014'!$A*
in replace with paste ='13-01-2014'!$A$11

The above will correct all the incorrect A's references

Repeat for what other formulas are wrong


If you show the VBA code that creates this formula then the change can be made to the code rather than after the fact
 
Upvote 0
Unfortunately there are other cells in the spreadsheet that contain references to other cells from the A column. Would Find what ='13-01-2014'!$A* and replace with ='13-01-2014'!$A$11 change all of these?
 
Upvote 0
Is that formula correct and consistent?

if so you can temporarily change this to something else

e.g. before doing what i said in my original reply. Say the formula you don't want to change is ='13-01-2014'!$A$25, then do the find and replace

='13-01-2014'!$A$25 with ='13-01-2014'!$AA$25 and change back later on.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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