+ Reply to Thread
Results 1 to 4 of 4

How to safeguard my sum formula from additional rows I will need to add in future?

  1. #1
    Registered User
    Join Date
    05-26-2016
    Location
    Vancouver, BC, Canada
    MS-Off Ver
    2013
    Posts
    2

    How to safeguard my sum formula from additional rows I will need to add in future?

    Hi there,

    My rows are my customers and their fruit orders (I retail fruit). My columns are my fruit items. I my customers divided by the towns in which I visit them.

    For each town, I want to have the total number of boxes of each fruit item which they order. I have figured out how to do this, but my issue is that although I have a neat sum function going from I6:I123, there will inevitably be new customers whom I will add. When I happened to add another customer row under fruit column I, just to check to see if there would be issues, the function did not capture that customer #124. Hence I have issues!

    How can I make sure that all customers in Jasper, Alberta (those are customers in rows 6:123, currently) will all be accounted for in the sum function, even when I add customers beyond row 123?

    Thanks,
    Jonathan

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: How to safeguard my sum formula from additional rows I will need to add in future?

    One way of doing this is having one blank row at the bottom of your data.
    ex. You have data in I6:I123 create a blank row in I124 and then have your sum formula =sum(I6:I124) when you add a new vendor you just click on the blank row and insert a new row so that there is always one blank row in between your data and the formula. Your formula will update automatically.

  3. #3
    Forum Contributor
    Join Date
    10-19-2012
    Location
    Omaha, Nebraska USA
    MS-Off Ver
    Excel 2010
    Posts
    249

    Re: How to safeguard my sum formula from additional rows I will need to add in future?

    Hi Jonathan,

    You could try capturing the entire column I if everything above line 6 is just text or blank so it wouldn't affect the total. The function would be:
    Please Login or Register  to view this content.
    Otherwise you could just pick a large number for the last row, like 1000:
    Please Login or Register  to view this content.
    Hope that helps,

    Dan

  4. #4
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: How to safeguard my sum formula from additional rows I will need to add in future?

    Hi -

    You could use the OFFSET function as follows:

    =SUM(OFFSET($B$1,,,COUNT(B:B),1))

    This dynamically changes the range that you sum as you add more data points. Assuming the data you want to sum starts in cell B1, the COUNT function counts how many numeric entries there are in the column and returns that as the number of rows to sum. Note, COUNT does not count blanks. So if you have intervening blanks in the column, that will reduce the number of rows that get summed.

    Without a sample of your data set, this is about all the help I can provide.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

+ 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] New Question to Hide Rows with Toggle button and auto adjust for additional rows
    By The Phoenix in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-14-2015, 01:55 PM
  2. Replies: 4
    Last Post: 03-05-2014, 02:40 AM
  3. Hide Future Rows Containing Future Dates.
    By Raj_121 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-27-2013, 07:14 AM
  4. How to safeguard my file
    By Suraj3825 in forum Excel General
    Replies: 5
    Last Post: 01-10-2013, 02:00 PM
  5. Dynamic Count If Formula with additional columns and rows.
    By nwd9s in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2011, 09:12 PM
  6. Deleting additional rows
    By Venkoba in forum Excel General
    Replies: 2
    Last Post: 10-05-2006, 03:34 AM
  7. [SOLVED] Adding additional rows with formula
    By Mark in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2006, 08:40 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