+ Reply to Thread
Results 1 to 6 of 6

Tallying a running total of usage

  1. #1
    Forum Contributor
    Join Date
    10-18-2010
    Location
    Walla Walla, Washington
    MS-Off Ver
    Excel 2007
    Posts
    124

    Tallying a running total of usage

    Does anyone know what I can do if when using a set of continuous numbers that autoreset at 99,999,999, i need to calculate totals between start and stop dates.

    Example. Instead of using 99,999,999 we will auto restart our numbering after 4. It will start back at 1.

    Scenario 1 -----Suppose my Start date is Jan 1, 2014 and my Stop date is Jan 3, 2014. Then my Stop date-Start date = 2

    Scenario 2------However, if my Start date is Jan 4, 2014 and my Stop date is January 6, 2014 then my Stop date-Start date = -1.

    With scenario 2, the correct answer should be 2 as well. As, the ticker only moved 2 spaces, its just that the numbering started over. If the numbers were continuous to infinity, it would have moved from 4 to 6. Somehow I need to represent this using the attached function as a starter and adding to it. The sample attached text resets at 99. Thanks for any help.

    See Example attached.

    Text text.xlsx


    Jan 1, 2014 .....1
    Jan 2, 2014 .....2
    Jan 3, 2014 .....3
    Jan 4, 2014 .....4
    Jan 5, 2014 .....1
    Jan 6, 2014 .....2
    Jan 7, 2014 .....3
    Last edited by cadamhill; 10-24-2014 at 02:23 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Tallying a running total of usage

    Hello cadamhill,

    Add this formula to "D7" and drag it down.
    =MOD(D6, 99) + 1
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    10-18-2010
    Location
    Walla Walla, Washington
    MS-Off Ver
    Excel 2007
    Posts
    124

    Re: Tallying a running total of usage

    Can this be accomplished as a single function attached to the vlookup function? Ultimately I want to change this over to PHP, so I will need to have it more in the coding. Any suggestions? Thanks for your help at any rate.

  4. #4
    Forum Contributor
    Join Date
    10-18-2010
    Location
    Walla Walla, Washington
    MS-Off Ver
    Excel 2007
    Posts
    124

    Re: Tallying a running total of usage

    I see, so there must be some modify type statement in PHP as well (not that excel and PHP are anything alike). It should be easy to figure out though. thanks for your help.

  5. #5
    Forum Contributor
    Join Date
    10-18-2010
    Location
    Walla Walla, Washington
    MS-Off Ver
    Excel 2007
    Posts
    124

    Re: Tallying a running total of usage

    I looked over what you suggested and I don't think that will work. What I need to do, from a calculation standpoint, is have the calculation look at any 1 followed by a number ending in 99 and it should read the number ending in 99 +1 ( in the calcluation only). If that makes sense. The only thing I can't do is re-label cell values of the number after 99,999,999, equal to 1 M. It has to remain 1, but to the math formula has to resemble 1 M. So, in short, I am looking for a math function that accomplish's this rather than a complete manipulation of the value in the cell. Thanks for any help.

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Tallying a running total of usage

    Hello cadamhill,

    Code this in PHP? You know this Excel forum is for VBA and Excel formula questions, don't you?

+ 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] Calculate total space usage from spreadsheet
    By RichTea88 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-07-2014, 07:45 AM
  2. Pivot Chart Running Total - Removing Current Year Future Total
    By car3489 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 07-27-2013, 03:35 AM
  3. Estimating total usage incidence from samples
    By Saga123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2013, 03:28 AM
  4. Total Usage. Date Problem
    By treva26 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2008, 03:02 AM
  5. [SOLVED] tallying a total dependant on contents of another cell
    By Toby in forum Excel General
    Replies: 1
    Last Post: 05-29-2006, 07:00 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