+ Reply to Thread
Results 1 to 10 of 10

How to Have a Formula Automatically Update When Adding

  1. #1
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    How to Have a Formula Automatically Update When Adding

    Hello All,

    The basic formula configuration is

    =(F5*I5)+(F6*I6)......+(F59*I59)

    This formula calculates correctly but every time I expand the formula to include a new row, I have to manually update this formula. Is there a function or another formula configuration that would accomplish this?

    Thank you,

    Patrick

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    371

    Re: How to Have a Formula Automatically Update When Adding

    =SUMPRODUCT(F5:F59,I5:I59)
    is the shorter version of your formula.

    Knowing that you can then drag down the range every time a new row is added, is there still a significant efficiency gain from automating the process?

  3. #3
    Forum Contributor
    Join Date
    07-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: How to Have a Formula Automatically Update When Adding

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: How to Have a Formula Automatically Update When Adding

    Try this:

    =SUMPRODUCT(F5:F1000,I5:I1000)

    Make the arrays as long as you need.
    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.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to Have a Formula Automatically Update When Adding

    Assuming that the rows without data are blank or null value,

    =SUMPRODUCT(F5:F1000, I5:I1000)
    choosing a cell with enough safety that you will not exceed.
    Alternately, you could name the two ranges as dynamic ranges and they will expand with the data, using the same formula.

    Wow, I'm slow. Good work guys! LOL
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: How to Have a Formula Automatically Update When Adding

    Hi,

    To automatically adjust,

    =SUMPRODUCT(F5:INDEX(F5:F10000,MATCH(9.999E+307,F5:F10000,1)),I5:INDEX(I5:I10000,MATCH(9.999E+307,I5:I10000,1)))
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  7. #7
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    Re: How to Have a Formula Automatically Update When Adding

    Stormin', SlipEternal, AliGW,

    Thanks much for your input. However, some of the cells are blank and it results in a #N/A error message. How is that resolved?

    Patrick

  8. #8
    Forum Contributor
    Join Date
    07-28-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: How to Have a Formula Automatically Update When Adding

    =SUMPRODUCT(IFERROR(F5:F10000,0),IFERROR(I5:I10000,0))

    After typing in the formula (but still editing it), press CTRL-SHIFT-ENTER so that Excel treats it as an array formula.

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to Have a Formula Automatically Update When Adding

    Blank cells should not result in errors for the basic equations shown above. Can you upload an example spreadsheet? (Go Advanced>Manage Attachments)

  10. #10
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    Re: How to Have a Formula Automatically Update When Adding

    SlipEternal,

    Your formula worked! Thanks so much!

    Patrick

+ 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: 3
    Last Post: 05-03-2017, 09:59 PM
  2. Adding or deleting rows in master sheet and automatically update target sheet
    By RLR31064 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-26-2014, 01:39 PM
  3. [SOLVED] Making formulas that automatically update when adding cells
    By Biffinator in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-11-2014, 05:17 PM
  4. Can a formula update automatically ?
    By PW6780 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 02-29-2012, 02:55 PM
  5. Formula does not update automatically
    By Franziska in forum Excel General
    Replies: 4
    Last Post: 06-28-2010, 08:50 AM
  6. How do I automatically update a graph after adding a data point
    By Beertje in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-10-2005, 07:05 AM
  7. Can I set up the formula to update automatically?
    By pugsly8422 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-23-2005, 01:06 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