+ Reply to Thread
Results 1 to 4 of 4

Formula in table changes when new row is added

  1. #1
    Registered User
    Join Date
    01-08-2018
    Location
    Seattle
    MS-Off Ver
    Excel 2016
    Posts
    8

    Formula in table changes when new row is added

    Hey all,
    For the life of me I can't figure out why the formula in the last row updates and changes when I add a new row (making the incorrect cell now in the second to last row). Excel even recognizes that it's wrong and gives a little warning ("This cell is inconsistent with the column formula"). The formula in the new column is just fine, but will also become wrong if a new row is added below it.

    Attached is the table, the formulas are in column B.

    =IF(SUMPRODUCT(($D$2:$D2=D2)*($A$2:$A2=A2))>1,0,1)
    =IF(SUMPRODUCT(($D$2:$D3=D3)*($A$2:$A3=A3))>1,0,1)
    and so on down the column.

    However, when a new row is added the second to last row would show
    =IF(SUMPRODUCT(($D$2:$D15=D14)*($A$2:$A15=A14))>1,0,1)
    instead of the 14s (no 15s) it should.

    I would like to be able to keep column B hidden and not have to make sure that it's not messing up all the time
    Attached Files Attached Files
    Last edited by IndesliciveMelon; 01-26-2018 at 03:21 PM.

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Formula in table changes when new row is added

    It looks like Excel has decided that you want to have the whole column range in the formula instead of the one you have specified - another case of it trying to be helpful but failing.
    I've tried a number of things to fix it - this is the one which seems to work (in other words, if I enter a new row 16, the formula for row 15 stays the same as it was before):
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Does that do what you need?
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    01-08-2018
    Location
    Seattle
    MS-Off Ver
    Excel 2016
    Posts
    8

    Re: Formula in table changes when new row is added

    Perfect! Thanks for your help

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Formula in table changes when new row is added

    You're welcome, glad to be of help and thanks for marking the thread as Solved.

    Edit: and thanks for the rep
    Last edited by Aardigspook; 01-27-2018 at 05:11 AM. Reason: Add thanks

+ 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. Replies: 6
    Last Post: 02-23-2024, 02:11 PM
  2. Insert rows in linked table that are added to secondary table
    By Ida LaValley in forum Excel General
    Replies: 4
    Last Post: 11-16-2020, 12:00 PM
  3. Do (Something) When Row Is Added To Table?
    By schulzy175 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2017, 01:04 PM
  4. Replies: 2
    Last Post: 04-15-2015, 05:33 PM
  5. [SOLVED] Array formula not expanding to match lines added to table
    By justmatt in forum Excel General
    Replies: 13
    Last Post: 05-03-2014, 02:16 PM
  6. Replies: 3
    Last Post: 03-28-2014, 12:04 PM
  7. Automatically copy formula down when new line is added to table
    By justmatt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-09-2014, 06:11 AM

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