+ Reply to Thread
Results 1 to 16 of 16

How do you automatically update/increment the functions in a column when inserting rows?

  1. #1
    Registered User
    Join Date
    07-16-2016
    Location
    North America
    MS-Off Ver
    2010
    Posts
    32

    How do you automatically update/increment the functions in a column when inserting rows?

    Hello,

    I have functions copied all the way down a column. When a user adds a row to the spreadsheet, that row does not contain the functions. Is there a way to automatically add the function, and increment the addresses, to the new row?

    Thanks.

    DB

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How do you automatically update/increment the functions in a column when inserting row

    Try converting your data to a TABLE. Find that on Insert tab/Table. If you set it up right, as soon as you add new data, all formulas from above get brought down to the new row.

    Alternatively, copy your formulas down ahead of time, and use =IF(A2="","",your-formula)
    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

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: How do you automatically update/increment the functions in a column when inserting row

    As the solution proposed by Ford is so much better than my idea of how to solve this problem I've deleted my original comments.

    Alf

    Ps Why do I always forget to refresh the page before posting an answer
    Last edited by Alf; 08-17-2016 at 01:53 AM. Reason: Ford had the better solution

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How do you automatically update/increment the functions in a column when inserting row

    @ Alf, probably for the same reason I dont refresh enough, too lol

  5. #5
    Registered User
    Join Date
    07-16-2016
    Location
    North America
    MS-Off Ver
    2010
    Posts
    32

    Re: How do you automatically update/increment the functions in a column when inserting row

    Hello,

    Thank you for the reply. Changing the sheet to a table is not an option.

    This is an example of what is currently in one of the cells.

    Please Login or Register  to view this content.
    If I did this,

    =IF(A231="","",your-formula)
    would the original formula go away when the cell is no longer "" empty?
    How would I write that?

    DB121

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How do you automatically update/increment the functions in a column when inserting row

    Changing the sheet to a table is not an option.
    Can I ask why?

    The only other way I can think of to have formulas added to inserted rows, (other than using a Table), would be VBA

  7. #7
    Registered User
    Join Date
    07-16-2016
    Location
    North America
    MS-Off Ver
    2010
    Posts
    32

    Re: How do you automatically update/increment the functions in a column when inserting row

    FDibbins, thank you.

    I'm okay with VBA as a solution. I have a little experience with it. I could post this in the correct forum if you think it necessary.

    I'm dealing with a lot of 'tribal knowledge' and deep-set tradition. A change to the appearance of the sheet would be met with enormous resistance. "It's not the way we've always done it."

    Thanks.

    DB

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How do you automatically update/increment the functions in a column when inserting row

    I can understand the RTC factor. There would be no outward change in the appearance of the table, it would still look teh same (you dont need to apply the funky Table formatting)

  9. #9
    Registered User
    Join Date
    07-16-2016
    Location
    North America
    MS-Off Ver
    2010
    Posts
    32

    Re: How do you automatically update/increment the functions in a column when inserting row

    Emm. I did not know that you could set up a table without it looking like a table. I'll look into that.

    We take/copy/manipulate a considerable amount of information from these sheets, to and from other workbooks. Some of them are thousands of rows long. Would this require rewriting any of the functions or macros?

    DB

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How do you automatically update/increment the functions in a column when inserting row

    Probably not

  11. #11
    Registered User
    Join Date
    07-16-2016
    Location
    North America
    MS-Off Ver
    2010
    Posts
    32

    Re: How do you automatically update/increment the functions in a column when inserting row

    Thanks. I'll look into this. Will the table automatically fill in the functions in the blank rows?

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How do you automatically update/increment the functions in a column when inserting row

    Yes, it should do

  13. #13
    Registered User
    Join Date
    07-16-2016
    Location
    North America
    MS-Off Ver
    2010
    Posts
    32

    Re: How do you automatically update/increment the functions in a column when inserting row

    Hello,

    I'm playing with the table idea.

    I can't figure out how to eliminate the alternating row color(which will immediately spark RTC), and the inserted rows do not retain the functions. I can still drag the fill handle down to copy/insert the function but the user would have to do this for the macro to work for that row.

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How do you automatically update/increment the functions in a column when inserting row

    I must have mis-understood your initial question...
    When a user adds a row to the spreadsheet, that row does not contain the functions.
    I read that to mean they add data to the end of the table, not that a new row was inserted somewhere inside the table The formulas wont get copied down like that, only if they start adding new data at the end

    To eliminate the row colors, under Table Tools/Design/table Styles, you can select from a bunch of different formats, my 1st format is no format

  15. #15
    Registered User
    Join Date
    07-16-2016
    Location
    North America
    MS-Off Ver
    2010
    Posts
    32

    Re: How do you automatically update/increment the functions in a column when inserting row

    Thanks for the reply.

    I'm not finding a Table Tools. I'm using Excel 2010. Google mentions an add-in, but I don't have it.

    Now, I haven't done any reading on this but... for a VBA solution ,

    It seems like I should be able to remotely call a subroutine that said something like (I have no idea how to write it yet),
    If a cell in column X is 'function-less', enter xyz function/formula.

    Is it possible to enter a function/formula 'underneath' data already in that cell?

    Thanks.

    DB

  16. #16
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How do you automatically update/increment the functions in a column when inserting row

    Is it possible to enter a function/formula 'underneath' data already in that cell?
    No, a cell can only contain data or a formula, not both

    To find the Table Tools, you must first make the table.
    Then, click into the table, the ribbon will show a "Design" tab, click on that
    Now you should see the Table Styles om the right

+ 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: 4
    Last Post: 08-12-2014, 02:00 AM
  2. Update table Automatically by inserting into another
    By jmcconville18 in forum Excel General
    Replies: 1
    Last Post: 06-02-2014, 09:50 PM
  3. how can i increment rows here because whenever i update it only 4 rows are updated
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-15-2014, 03:25 AM
  4. [SOLVED] Automatically update links in Excel 2003 after inserting rows in .
    By Peturpin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-09-2006, 11:55 AM
  5. How can a formula in a cell automatically update when inserting a.
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 12: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