Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 238
Default cell formulas

I would like to use cell A1 as a constant for use on formulas. When I
copy and paste the formula down column C, it no longer points to A1.
Any way to assign A1 a variable name for use in formulas?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default cell formulas

Two ways you can do this.

1. Make it absolute in the formula like the following $A$1. Example =$A$1

2. Name the cell.
In xl2007 Select the cell and then the Formulas ribbon and then Define Name
(In the middle of the Formulas ribbon)

Pre xl2007 Select the cell then menu item Insert - Name - Define.

Use your chosen name for the cell like MyConstant. (Avoid reserved words
that are used for formulas etc.)

Use the name in formulas like =MyConstant in lieu of =A1

--
Regards,

OssieMac


"Fan924" wrote:

I would like to use cell A1 as a constant for use on formulas. When I
copy and paste the formula down column C, it no longer points to A1.
Any way to assign A1 a variable name for use in formulas?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default cell formulas


change your formula notation for A1 to $A$1

See help file
Switch between relative, absolute, and mixed references


Reference (Description) Changes to
$A$1 (absolute (absolute cell reference: In a formula, the exact
address of a cell, regardless of the position of the cell that contains
the formula. An absolute cell reference takes the form $A$1.) column and
absolute row) $A$1
A$1 (relative (relative reference: In a formula, the address of a cell
based on the relative position of the cell that contains the formula and
the cell referred to. If you copy the formula, the reference
automatically adjusts. A relative reference takes the form A1.) column
and absolute row) C$1
$A1 (absolute column and relative row) $A3
A1 (relative column and relative row) C3



--
mudraker

If my reply has assisted or failed to assist you I welcome your
Feedback.

www.thecodecage.com
------------------------------------------------------------------------
mudraker's Profile: http://www.thecodecage.com/forumz/member.php?userid=18
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=68908

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default cell formulas

A little extra information on absolute addressing. You can place the $ sign
just in front of the column like this $A1 and then you can copy the formula
right across to any column and it will always address column A. However, when
you copy the formula down in the other columns, while it always addresses
column A you will find that the row number changes.

The above is handy to know if you have a value that is always in column A
for the formulas across the worksheet but it is a different value for each
row.

The same with the row numbers. You can use A$1 and copy a formula down and
it will always address row 1. If you copy the formula across then the column
id changes but it will still always address row 1.

Hope this little bit of info helps.

--
Regards,

OssieMac


"OssieMac" wrote:

Two ways you can do this.

1. Make it absolute in the formula like the following $A$1. Example =$A$1

2. Name the cell.
In xl2007 Select the cell and then the Formulas ribbon and then Define Name
(In the middle of the Formulas ribbon)

Pre xl2007 Select the cell then menu item Insert - Name - Define.

Use your chosen name for the cell like MyConstant. (Avoid reserved words
that are used for formulas etc.)

Use the name in formulas like =MyConstant in lieu of =A1

--
Regards,

OssieMac


"Fan924" wrote:

I would like to use cell A1 as a constant for use on formulas. When I
copy and paste the formula down column C, it no longer points to A1.
Any way to assign A1 a variable name for use in formulas?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 238
Default cell formulas

Nice! And so simple.Thanks.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two formulas in on cell based on two numbers in another cell? Melody Excel Discussion (Misc queries) 5 March 19th 10 07:51 PM
Carrying formulas over to new cell when old cell is deleted: possi Karl Excel Worksheet Functions 0 June 24th 08 01:10 PM
How to trace a cell? Which cells use a special cell in formulas? SupperDuck Excel Discussion (Misc queries) 4 December 1st 06 04:17 PM
Copying formulas from cell to cell to cell to....... Tom Hardy Excel Discussion (Misc queries) 3 June 15th 06 03:29 PM
change cell value greater than another cell value using formulas Unsure? Excel Worksheet Functions 2 April 2nd 06 10:24 PM


All times are GMT +1. The time now is 10:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"