+ Reply to Thread
Results 1 to 5 of 5

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 dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

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

    First it would help a lot if you included a sample workbook.

    However, based on what I am reading, it's possible that Excel Tables may help you out. See this article: http://www.utteraccess.com/wiki/inde...ables_in_Excel.

    Secondly, depending on how you have the data organized, a pivot table might do the job for you.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

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

    Have a column for customers , a column for fruits , a column for Town , a column for fruit quantity
    Ditch the formula
    Now use the sheet filters so show by fruit OR by customer OR by Town ... or a combination of them
    If you look at bottom of excel frame you will automatically see the max, ave , count , totals etc ... this will be easier and more flexible
    ... and no formula !

  4. #4
    Registered User
    Join Date
    12-22-2015
    Location
    Huntsville, AL
    MS-Off Ver
    2007
    Posts
    92

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

    I'd go with a combination of dflak's suggestion. I'd make it an Excel Table and then have pivot table based off that table. As you add entries to the table, the pivot table source data remains dynamic.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

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

    An alternative approach - instead of using SUM, you can use SUMIFS, and then you can use full-column references. With SUMIFS, you can set up one or more conditions which govern which cells to add, effectively 'add cells from column I where the location column contains "Jasper, Alberta"', so it doesn't matter where the records for customers from that town actually occur.

    Hope this helps.

    Pete

+ 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-26-2016, 04:59 PM
  2. [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
  3. Replies: 4
    Last Post: 03-05-2014, 02:40 AM
  4. 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
  5. How to safeguard my file
    By Suraj3825 in forum Excel General
    Replies: 5
    Last Post: 01-10-2013, 02:00 PM
  6. 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
  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