+ Reply to Thread
Results 1 to 9 of 9

Adding cells to a running total on certain dates?

  1. #1
    Registered User
    Join Date
    07-12-2015
    Location
    Somerset, England
    MS-Off Ver
    Office 2013
    Posts
    18

    Adding cells to a running total on certain dates?

    Hello Everybody.

    I've been searching for ages for an answer to this but my searches have been fruitless, so I'm going to have to pick the community's brains.


    OK is it possible to have a running total in one cell and for example have the following cells added on a certain date? So A1 is added on 02/02/2015 then B2 05/02/2015 and so on.

    Any help is much appreciated

    Many thanks

    Will.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Adding cells to a running total on certain dates?

    Hi, welcome to the forum

    It will probably be easier to offer help if you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

    having said that, I have a feeling you need to look at using the sumifS() function for this?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-12-2015
    Location
    Somerset, England
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: Adding cells to a running total on certain dates?

    Thanks for the help Dibbins, I had an idea it might involve ifs of some sort but i've only really got my teeth into excel recently so I'm not massively ah fait with it yet. Ill roll with this for now as I find you learn better having play around. Ill pop back if i get stuck if thats cool

    Once again many thanks

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Adding cells to a running total on certain dates?

    The sumifS() function is useful in that it will add values that fall within certain criteria...
    add all a's between march and June
    Add all scores from Men aged 20
    add all mileages from cars from make = Ford, model = F150, Terrain = Flat
    etc

  5. #5
    Registered User
    Join Date
    07-12-2015
    Location
    Somerset, England
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: Adding cells to a running total on certain dates?

    All sorted, thanks alot Dibbins. The key was =TODAY(). Check out the sheet ive attached so you can see what i meant. You can see how i solved it in D1.

    Regards

    Will.
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Adding cells to a running total on certain dates?

    Nice

    1 question though, it looks like your last 2 criteria are the same?
    =SUMIFS(B4:B6,
    C4:C6,"<=" & $A$1,
    C4:C6,"<=" & $A$1)

    Was the 2nd (or 1st) supposed to look at a date before (or after) today?

  7. #7
    Registered User
    Join Date
    07-12-2015
    Location
    Somerset, England
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: Adding cells to a running total on certain dates?

    You are quite right its meant to just read

    =SUMIFS(B4:B6,C4:C6,"<=" & $A$1)

    I'm not quite sure how I managed that

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Adding cells to a running total on certain dates?

    haha ok, been there, done that - it should not have affected the results

    You can increase the range of that, by using full columns...
    =SUMIFS(B:B,C:C,"<=" & $A$1)
    That way, you dont need to adjust it ad the table grows

  9. #9
    Registered User
    Join Date
    07-12-2015
    Location
    Somerset, England
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: Adding cells to a running total on certain dates?

    Ah that's a great tip, wish I'd known that a few weeks ago though . Not sure I'm going to need it when I put this into place as its being but into a pre existing spreadsheet that runs my finances.

+ 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. Adding to a running total
    By RGSL in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-29-2013, 11:13 AM
  2. Adding to a running total
    By Trussy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2011, 05:43 PM
  3. Adding numbers to a running total
    By Elizabeth Free in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  4. [SOLVED] Adding numbers to a running total
    By [email protected] in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  5. Adding numbers to a running total
    By Elizabeth Free in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. Adding numbers to a running total
    By Elizabeth Free in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] Adding numbers to a running total
    By Elizabeth Free in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. [SOLVED] Adding numbers to a running total
    By Elizabeth Free in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-26-2005, 07:05 PM

Tags for this Thread

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