+ Reply to Thread
Results 1 to 5 of 5

Keeping formula the same when inserting a row

  1. #1
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 2013
    Posts
    228

    Keeping formula the same when inserting a row

    I have the formula
    Please Login or Register  to view this content.
    .
    When I insert a row, Excel naturally changes the formula to read
    Please Login or Register  to view this content.
    .

    I have read that I need to use 'OFFSET' so that the formula doesn't change because of the insert row.
    Unfortunately, I am having trouble understanding how to apply it.
    Would somebody please be so kind as to show me how to adjust the formula to do what I want, whether it requires 'OFFSET' or some other method.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Excel 2007
    Posts
    20,058

    Re: Keeping formula the same when inserting a row

    Where are you inserting the row? If it was between rows 12 and 13 I would expect the 12 to stay the same and for the 13 to change to 14, rather than the way you have shown it.

    Pete

  3. #3
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 2013
    Posts
    228

    Re: Keeping formula the same when inserting a row

    I'm actually inserting the row above the original formula, between Rows 11 and 12

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,217

    Re: Keeping formula the same when inserting a row

    I would probably use INDIRECT for this...
    =IF(INDIRECT("C13">"",IF(INDIRECT("D13".......................................
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 2013
    Posts
    228

    Re: Keeping formula the same when inserting a row

    Thank you very much. I'll give that a go.

+ 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. Inserting columns and keeping everything ?
    By horsefish01 in forum Excel General
    Replies: 1
    Last Post: 06-10-2015, 11:57 AM
  2. inserting a row then keeping a formula in it
    By ollielow1993 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-04-2013, 08:43 AM
  3. Inserting a picture, keeping sheet protected
    By bibfocal68 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-29-2012, 04:45 AM
  4. Keeping cell reference the same after inserting rows
    By muadebe in forum Excel General
    Replies: 6
    Last Post: 08-27-2012, 12:43 PM
  5. Inserting rows whilst keeping filter range.
    By Barking_Mad in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2010, 09:44 AM
  6. Inserting new row but keeping formulae
    By Alex Simpson in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-08-2006, 08:20 AM
  7. Replies: 3
    Last Post: 10-19-2005, 05:05 PM

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