Link to home
Start Free TrialLog in
Avatar of Conernesto
ConernestoFlag for United States of America

asked on

Excel copy formulas

Hi,
I have a column with text in column A. On Column B, I have formula that is equal to Column A. Is there a way to copy the formula down on column B with the $ signs that adjust for each row? see sample

                Have           Want
A1  US     B1 = A1       B1 = $A$1
A2  BC     B2 = A2       B2 = $A$2
Avatar of NBVC
NBVC
Flag of Canada image

Why is what you "have" not working for you?
Avatar of Conernesto

ASKER

It is. It's just that when I copy my formulas from B1 down to say B10 the formulas are without the $$'s. So I put my cursor on B1 and enter =A1. I then put my cursor on B1 on the formula and hit F4 and the formula changes from =A1 to =$A$1. So I have to do this on each row where I have a formula. My goal is to copy accross and not loose the reference.
The purpose of the $ if to make something a fixed value rather than a relative value.
You could write a macro to insert that, but the real question is why you'd want to override the functionality of Excel that way.

The whole point of the $ is so that the row-number/column-letter does not change when you copy it.

In other words, why do you need the values to be absolute references instead of relative references since the end result in your case would be the same values?
>My goal is to copy accross and not loose the reference.

sounds like you need "mixed" references.  Try hitting F4 again and notice it changes from A1 to $A$1 to A$1 to $A1

I think you want to keep the A but allow the number to change so use:

$A1
You are correct. What I need is A$1. I can then copy this down on my column and accross.

Thank you.

conernesto
ASKER CERTIFIED SOLUTION
Avatar of rspahitz
rspahitz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial