Fixing cells ($) for multiple cells

sputnik17

New Member
Joined
Jun 1, 2009
Messages
16
I know I can put a $ sign for all references in a formula for a cell by pressing F4, but is there a quick way for doing this for multiple cells (e.g. a column) or do I have to go through all the cells individually?

e.g.
=A1
=A2
=A3

to

=$A$1
=$A$2
=$A$3

Thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Thanks VoG

It seems like you have to buy that (for a proper legal version for a company anyway). I suppose I could just write a macro for a large amount of cells.

Cheers
 
Upvote 0
You can use Edit-> Replace to a limited extent.

Just select the range of cells, do something like Replace "A" with "$A$".
 
Upvote 0
Thanks VoG

It seems like you have to buy that (for a proper legal version for a company anyway). I suppose I could just write a macro for a large amount of cells.

Cheers

yes you can, look at the convertformula function...

Here's a simple example

Range("A1").Formula = Application.ConvertFormula(Range("A1").Formula, xlA1, xlA1, 1)

The 4th argument is the absolute style

1 = col & row abs
2 = row abs, col relative
3 = col relative, row abs
4 = row & col relative

Unfortunately, it converts the ENTIRE formula's references. so you can't mix it up like

=$A$1+B1

you couldn't have it convert to that, both cell refs would have the same absolute style..
 
Upvote 0

Forum statistics

Threads
1,214,402
Messages
6,119,299
Members
448,885
Latest member
LokiSonic

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