+ Reply to Thread
Results 1 to 8 of 8

Thread: copying rows containing formulas

  1. #1
    Registered User
    Join Date
    09-08-2011
    Location
    New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    67

    copying rows containing formulas

    Hi all,

    can anyone help with this...

    I have a row with cells that contain formula, to work with in that row, and also in the formula, is a reference cell that is not located within that row,

    I want to replicate this row down the sheet, so I have another calculator, that performs the equation within a different row,

    when I copy everything down to the next row, it also pulls the reference cell down a row, is there any way I can copy this down rows, updating everything to the new row, while maintaining the reference cell.

    Thanks for any assistance.
    Last edited by T. Grindlay; 02-08-2012 at 12:32 AM.
    Tim Grindlay
    New Zealand

  2. #2
    Registered User
    Join Date
    07-07-2010
    Location
    Cape Cod
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: copying rows containing formulas

    You should post an example. Are you familiar with absolute references?

  3. #3
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: copying rows containing formulas

    You use $ symbols to lock a part of a cell reference and keep it from changing. Anything that is left relative will change when copied, anything locked with a $ symbol is absolute and will not change.

    A1 - relative column, relative row
    $A1 - absolute column, relative row
    A$1 - relative column, absolute row
    $A$1 - absolute column, absolute row
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    09-08-2011
    Location
    New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: copying rows containing formulas

    Hi Thanks,

    I have seen the $ symbol you are descibing, and I ampretty sure I understand what you are saying, I will try it when I get a chance, if I have any issues, I will post an example.

    I will go through my script and add $ symbol to the cell I would like to keep as an absolute reference,

    if for example, written in my formula, C11 is the cell I want to keep as absolute, is there any way to run a auto - find and insert function.

    Thanks,
    Tim Grindlay
    New Zealand

  5. #5
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: copying rows containing formulas

    FIND: C11
    REPLACE: $C$11

    LOOK IN: Formulas
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  6. #6
    Registered User
    Join Date
    09-08-2011
    Location
    New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: copying rows containing formulas

    Excellent, thanks, for the sake of sounding dumb.... where I would enter that....
    Tim Grindlay
    New Zealand

  7. #7
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: copying rows containing formulas

    1) Highlight the cells to adjust
    2) Press CTRL-H
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  8. #8
    Registered User
    Join Date
    09-08-2011
    Location
    New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: copying rows containing formulas

    Thank you all very much for this assistance, this has worked perfectly : - )
    Tim Grindlay
    New Zealand

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0