Replace cell reference with value

richard_brussels

New Member
Joined
Jul 25, 2008
Messages
5
Hi,

I have inherited a rather large worksheet that contains multiple columns of the style:
AC1=($B$1-Q1)/($B$11-1)
AC2=($B$1-Q2)/($B$11-1)
AD1=($B$1-R1)/($B$11-2)

where Q1,R1 etc. are static values.
I would therefore like to replace the references to these cells with the values contained in them so that the cells can then be deleted.
The absolute references MUST be kept as these will be changed.

I'm happy to use a solution within excel or VBA, whatever is best.

Thanks in advance,
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi

One solution might have been taking advantage of Find/Replace. Highlight your range press ctrl+h to bring up the dialogue box then Find - Q1 replace - 3 (for example) press Replace all. I would hasten to add I personally would Use find all then replace individually incase of any stray incidences of Q1.

Best Wishes


Dave
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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