+ Reply to Thread
Results 1 to 5 of 5

Auto-Update to formulas when adding a row in a table

Hybrid View

  1. #1
    Registered User
    Join Date
    05-01-2013
    Location
    Montreal
    MS-Off Ver
    2010
    Posts
    3

    Auto-Update to formulas when adding a row in a table

    Hi,

    I've searched the forum and haven't found the answer to the topic (but I am new so maybe my search skills aren't great).

    In any case, I have an excel workbook with three sheets. One has the raw data that is in a table format. The other two sheets use the raw data to come up with some stats, but all of it is based on formulas that use data from the raw data sheet.
    I have formula's that use arrays (with {}) and others that do not, and all of them search all rows of the table, example (Details!I7:I86).

    What i'm looking for is that when I add a row in my table in the raw data sheet, all the formulas increase by 1 so instead of (Details!I7:I86) it would go to (Details!I7:I87). This doesn't happen in all the cases. In some formulas it does, and in others it doesnt and I haven't been able to understand a pattern as to when it does or doesn't.

    Has anyone else seen this? Is it a known problem or i'm just missing something. I'm using Excel 2010.

    Thank you,
    verticalj

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,690

    Re: Auto-Update to formulas when adding a row in a table

    I don't know if this works in array formulas because i rarely use arrays but in general if you have (Details!I7:I86) and you want to cover larger or changing rows you can use (Details!I:I) instead. maybe that'll work for you?

    EDIT: a reason I mention about the array formula is as i understand it array formulas set up a sort of defacto table. I'm sure someone more familiar with them will correct me when they come along.
    Last edited by Sam Capricci; 06-23-2014 at 11:52 AM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    05-01-2013
    Location
    Montreal
    MS-Off Ver
    2010
    Posts
    3

    Re: Auto-Update to formulas when adding a row in a table

    Hi,

    An update: To fix the issue I was having I just changed all my formulas so that the end row would be one more than the table's last row. Example, in my table it ends at I86, therefore my formulas all end with Details!I7:I87. Now when I add a row to my table, it auto-increments each of my formulas.

    Sambo Kid, thanks for the tip but in my case it wouldn't have worked because some of the formulas I used wouldn't come out as ### or something else (don't remember) if there aren't values in each of the cells. Anyways, it was worth a try!

    Thanks

  4. #4
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Auto-Update to formulas when adding a row in a table

    Hi,

    One thing you can do is....

    First you have to add two more EMPTY rows in your array reference...

    now if you want to add a row to your table, just select the second last empty row and
    add the row...

    It will automatically change your array reference in the formula...

    if you can't understand then just tell me...

    Vikas Gautam....

  5. #5
    Registered User
    Join Date
    05-01-2013
    Location
    Montreal
    MS-Off Ver
    2010
    Posts
    3

    Re: Auto-Update to formulas when adding a row in a table

    Thanks Vikas Gautam,

    Actually, I managed to fix it (see my previous post).

    The way you suggest would work, but I have some formula's that don't allow for "empty" cells so for my case it wouldn't be useful. In any case, the solution I've used works now.

    I'm not sure if I should change the title of this forum post to solved or something like that? It's my first post here

+ 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. My formulas dont auto update
    By hunterdraygon in forum Excel General
    Replies: 2
    Last Post: 05-20-2014, 06:04 AM
  2. Replies: 2
    Last Post: 06-16-2013, 02:58 PM
  3. Auto update cells in a table, based on the content of another table...
    By Darth269 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-29-2012, 04:19 PM
  4. How to update formulas when adding columns
    By Nick Hawkings in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-26-2010, 02:07 AM
  5. Adding and Deleting rows - update formulas help needed.
    By bperks in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-31-2006, 03:35 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