+ Reply to Thread
Results 1 to 6 of 6

Is there such a thing as a "constant" cell

  1. #1
    Registered User
    Join Date
    06-29-2014
    Location
    Tampa, Florida, USA
    MS-Off Ver
    2007
    Posts
    2

    Is there such a thing as a "constant" cell

    I'm sure I'm asking the question wrong, so please pardon my long winded description. I've always appreciated the way I can copy a formula field in excel from one cell to another, and that the program automatically modifies the cell locations to fit the copied location. So, for example, a cell that is specified as "=SUM(A1:A30)" to produce a total in cell A32 can be copied to B32, and it now becomes "=SUM(B1:B30)". How convenient! Even of I later insert or delete rows between rows 1 and 30, that formula adjusts. But where this feature gets in the way is when I DON'T want i to apply to a particular referenced cell. Lets say for example instead of a sum, I want a percentage of the sum. And now lets say I have a cell somewhere in the spreadsheet, perhaps at A50 where I have placed the percentage I want to calculate. So I put "0.10" in A50 to signify 10%, and I alter my initial formula in A32 to now be "=SUM(A1:A30) * A50". This works of course, but if I now copy the formula in A32 to B32, its going to become "=SUM(B1:B30) * B50", which fails because there is nothing in B50, and I don't want to have to populate each column in row 50 with duplicates. Of course I could edit each copy, but that's a pain too. I don't think "constant cell" is really the right description, but I what I'm looking for is a way to express that a cell specified in a formula should not have its location (vertical or horizontal) altered if the cell is copied. Of course I realize the the convenience of being able to insert or delete rows from my original scenario might be lost if this were possible, so maybe a better alternative would be a way to designate the cell itself (A50 in this case) to NOT have its location altered if ANY formula that references it when the formula cell is copied.

    Hopefully this makes sense to someone. :-)

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Is there such a thing as a "constant" cell

    =SUM($A$1:$A$30) will not change when copied
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Is there such a thing as a "constant" cell

    Try,
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  4. #4
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Is there such a thing as a "constant" cell

    Hi,

    Welcome to the Forum.

    Try,
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-29-2014
    Location
    Tampa, Florida, USA
    MS-Off Ver
    2007
    Posts
    2

    Re: Is there such a thing as a "constant" cell

    Thanks everyone! So '$' is the magic designator. Much appreciated.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Is there such a thing as a "constant" cell

    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA help needed to remove all "/" then replace with "-" from cell "B3"and "B5"
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2014, 02:11 PM
  2. "Sort by" type of thing
    By joh123 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-06-2014, 05:02 PM
  3. [SOLVED] "Are you sure you meant to push the form button?" option, such a thing?
    By Butcher1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-03-2013, 10:46 PM
  4. Replies: 2
    Last Post: 04-20-2012, 10:20 PM
  5. Is there such a thing as an "if" command in excel?
    By in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-08-2006, 01:40 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1