+ Reply to Thread
Results 1 to 4 of 4

Have formulas calculate new rows

  1. #1
    Forum Contributor
    Join Date
    03-14-2016
    Location
    United States
    MS-Off Ver
    MS Office 2013
    Posts
    102

    Have formulas calculate new rows

    Hello,

    I insert my rows at the bottom of my data set. Below that are all the calculations, mostly sum or sumproduct functions. Each time I have to manually expand the selection to capture the new rows. Is there a way for Excel to pickup the expanded data set automatically?

    Thanks,
    Max

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Have formulas calculate new rows

    Hi,

    Yes, you should always use range names to identify ranges and a special variation called a dynamic range name where the number of data rows or columns change.
    I'd also consider putting my summary formulae above the data since these will be fixed rows and you don't need to concern yourself with adding new rows just to move everything down.

    Assuming your data is currently in say A10:M100 then a range name called say 'Data' which always covered the data range would be say

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


    Similarly you could create a dynamic range name for a single column so that you could use the range name in say a SUMIFS function. So supposing column A were dates and amounts were column M then a dynamic range name called lst_Dates would be defined

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and similarly for lst_Amounts

    then your SUMIFS, (or SUMPRODUCT if there's some particular reason to prefer that to a SUMIFS) would be =SUMIFS(lst_amounts,lst_Dates,TODAY())
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Have formulas calculate new rows

    To add to what Richard already mentioned, and depending on your formula, a less advanced method than Named Ranges would be to add in a place holder row between your last record and your calculating formulas, whose range extends through the place holder row. Whenever you need to insert a new row for records, insert above the place holder row (which your calculating formulas would still capture).

    Granted, this is a less-elegant solution than Richard's, but one I have used numerous times in a pinch when I didn't feel like dealing with Named Ranges.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  4. #4
    Forum Contributor
    Join Date
    03-14-2016
    Location
    United States
    MS-Off Ver
    MS Office 2013
    Posts
    102

    Re: Have formulas calculate new rows

    Richard, in response to your message all my calculations are below the data set. Do I have to tell the offset function to push up from the first calculation row and will it recognize what is being added to the data set before it?

+ 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: 9
    Last Post: 12-04-2015, 05:19 PM
  2. Calculate Average Time between Two Rows in a Range of Many Non-Consectuive Rows
    By aferoz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2014, 11:51 PM
  3. How to calculate formulas for specific rows that are linked by an ID
    By Cunner in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-14-2014, 12:44 PM
  4. [SOLVED] VBA to enter various formulas every 10 rows and show dynamic formulas not values
    By faby2203 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-04-2013, 07:05 AM
  5. Formulas won't calculate. Just displaying as formulas
    By AnnaV in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2013, 02:51 AM
  6. [SOLVED] Macro to calculate number sequence into rows and then copy formulas down to meet
    By agentone in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2012, 09:30 AM
  7. Replies: 3
    Last Post: 05-25-2011, 01:30 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