+ Reply to Thread
Results 1 to 3 of 3

Adding a row in a table corrupts formula in a summary table (2nd table)

  1. #1
    Registered User
    Join Date
    06-25-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2013 / 2016
    Posts
    69

    Adding a row in a table corrupts formula in a summary table (2nd table)

    Hi, I have an issue where the formulas in a Summary table becomes corrupt if I add or delete rows in the main data table. Is there VBA code to stop this happening? I have attached an example file (If you add a row in the main log table.....the summary table becomes corrupt)...... Hope this makes sense!!Test.xlsm

  2. #2
    Forum Contributor vamosj's Avatar
    Join Date
    04-23-2004
    Location
    Oregon
    MS-Off Ver
    2010
    Posts
    294

    Re: Adding a row in a table corrupts formula in a summary table (2nd table)

    Put this into B5 of your summary log and paste down.

    Please Login or Register  to view this content.
    PUt this in C5 of your summary log and paste down.

    Please Login or Register  to view this content.

    The way you had it set up, the formula was using a direct data reference, so the formula was basically going to attempt to always track that data should it move.

    The formula's above uses and index reference, so instead of the formula wondering where its reference went when it was deleted, it is now told to always look at that specific cell and to not try and follow the data in it.

    Hope that makes sense.
    Janos S. Vamos
    Data Systems Technician/Fire Controlman PO1(SW/AW)
    US Navy Retired


    Remember, Record Macro can be your friend for figuring out solutions.

    Good or Bad, let me know how I did by clicking on the "Add Reputation" * just to the lower left of here. it only takes a few seconds to let someone know.

  3. #3
    Registered User
    Join Date
    06-25-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2013 / 2016
    Posts
    69

    Re: Adding a row in a table corrupts formula in a summary table (2nd table)

    Excellent........Worked a treat
    Sorry for the late reply (vacation)

+ 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] Analyse each of the groups in a Data Table and send results to a Summary Table
    By PeterR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-20-2015, 10:26 PM
  2. [SOLVED] Summary table updated from source table. Source table held in a different workbook
    By dma1976 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 11-22-2013, 11:36 AM
  3. Replies: 2
    Last Post: 04-16-2013, 06:17 AM
  4. Adding formula to active table and for pivot table in macro
    By Jerseynjphillypa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2012, 08:12 AM
  5. Need to rename sheets and automate pivot table and summary table
    By sameerk0286 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-13-2010, 03:08 AM
  6. Replies: 2
    Last Post: 05-19-2010, 05:14 AM
  7. [SOLVED] PIVOT TABLE - Summary Table into a Databasae Table.
    By sansk_23 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-09-2005, 03:06 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