+ Reply to Thread
Results 1 to 4 of 4

Inserting a new row changes formula references

  1. #1
    Registered User
    Join Date
    07-24-2017
    Location
    England
    MS-Off Ver
    2016
    Posts
    3

    Unhappy Inserting a new row changes formula references

    Hi everyone,

    So I have a spreadsheet with two pages. One with data and another replica of the data page, but with formula in the cells. The formula is a simple IF statement relating to whether or not there is an 'X' in the cell in the data page or not. The formula for cell E6 in the formula page named 'Maxtrix' is:

    =IF('Data'!E6="X",Maxtrix!$L$4,0)

    Where Maxtrix!$L$4 refers to the value to be given if there is an X in the cell.

    All cells in the 'Maxtrix' page refer to the same cell in the 'Data' page such that E6 in the 'Maxtrix' page refers to E6 in the 'Data' page.

    The problem I am having is that if I insert a new row above row 6, such that the original row 6 --> row 7 and a new row 6 is inserted, any formula referencing the original row 6 and below (7,8,9,10 etc) now reference the original row 6 that is now row 7, instead of the same row they were referencing before. This means that in the 'Maxtrix' page, the formula in say column E will reference, E1,E2,E3,E4,E5,E7,E8, skipping out the newly made row 6. I have tried adding $ to anchor the numbers in the formula but they still change upon creation of a new row to the 'Data' page.

    I know I may have explained this badly and I will attach a sample spreadsheet when I find out how.

    Any help in this matter would be greatly appreciated.
    Attached Files Attached Files
    Last edited by Fabfabian; 07-24-2017 at 06:03 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: Inserting a new row changes formula references

    Welcome to the forum!

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-24-2017
    Location
    England
    MS-Off Ver
    2016
    Posts
    3

    Re: Inserting a new row changes formula references

    Thanks AligGW, I have now attached the spreadsheet for use

  4. #4
    Registered User
    Join Date
    07-24-2017
    Location
    England
    MS-Off Ver
    2016
    Posts
    3

    Re: Inserting a new row changes formula references

    Any help at all would be really appreciated everyone

+ 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 Formula to a cell from VBA using Array References
    By dougman824 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2017, 11:02 PM
  2. [SOLVED] Inserting a formula from a sub that references variables
    By vbalearnerdriver in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-26-2014, 01:12 PM
  3. Keep "IF" formula references after inserting cell(s)
    By dannac in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-12-2013, 09:18 AM
  4. [SOLVED] Inserting a written formula using the IF function & cell references
    By Jaice in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-01-2013, 11:54 PM
  5. Replies: 0
    Last Post: 08-21-2011, 11:53 AM
  6. Cell References Change When Inserting From Top Row
    By Bob McCusker in forum Excel General
    Replies: 1
    Last Post: 07-21-2010, 08:03 PM
  7. Cell References When Inserting Rows
    By officeplus215 in forum Excel General
    Replies: 2
    Last Post: 09-30-2005, 09: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