+ Reply to Thread
Results 1 to 14 of 14

formula for running YTD total data taken from column updated daily... I am OVERTHINKING it

  1. #1
    Registered User
    Join Date
    01-13-2016
    Location
    Montana
    MS-Off Ver
    2010
    Posts
    9

    formula for running YTD total data taken from column updated daily... I am OVERTHINKING it

    hello all,

    I have been trying different formulas and I am stuck. I am new to excel formulas and trying to make our work easier..LOL.


    Here is my problem:

    I have columns that are updated with numbers daily and I want to have them keep a running YTD total in the columns that coincide with it.
    I have attached the worksheet. I though maybe entering the daily data on a different sheet, but I really don't think that would help.

    Columns F thru I will be updated daily and if there is no data ...reset to zero. I want to take that data and have it keep a running total in the YTD columns. But when the columns get reset it changes the total.

    I am stuck and really need some help. Am I really off base with what I am trying to or is there and easier way?
    I appreciate ANY help you can give me...thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: formula for running YTD total data taken from column updated daily... I am OVERTHINKIN

    with this code in Worksheet_Change

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-13-2016
    Location
    Montana
    MS-Off Ver
    2010
    Posts
    9

    Re: formula for running YTD total data taken from column updated daily... I am OVERTHINKIN

    something is wrong it wont let me download and open the file

  4. #4
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: formula for running YTD total data taken from column updated daily... I am OVERTHINKIN

    you can copy the code and paste in your own file


    open VBA with Alt Function 11
    choose Insert Module
    and paste


    Kind regards
    Leo

  5. #5
    Registered User
    Join Date
    01-13-2016
    Location
    Montana
    MS-Off Ver
    2010
    Posts
    9

    Re: formula for running YTD total data taken from column updated daily... I am OVERTHINKIN

    OK I saved with dif name and got it open, but there is no worksheet labeled worksheet _change, but I do see the VBA code under the developer tab. thanks for your help with this

  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: formula for running YTD total data taken from column updated daily... I am OVERTHINKIN

    Hi, welcome to the forum

    Just opened your file, you have a few CIRC REF errors in it, I would strongly suggest you adress these 1st, they can cause other problems further along.
    A CIRC REF error is when a cell contains a formula that references that cell A1 contains =A1+B1

    On TEST sheet...
    T12=SUM(T12+AC8)...(and you dont need to use SUM to add 2 cells, just use =T12+AC8 - but obviously T12 needs to change)
    F10=SUM(F10+O6)

    To do this the way you want, will require codeing (VBA) like Leo has provided, you cannot do this with regular formulas.

    However...
    I though maybe entering the daily data on a different sheet, but I really don't think that would help.
    In my opnion, that is exactly what you need to do. If you store ALL your data in 1 sheet, you can always go back and check stuff, you can run summaries, make charts, whatever you want.

    If your daily data gets over-written each day, the history is gone, possibly forever. If there is some error, how would be able to back-track to check? How would you be able to compare this week/month/year to last week/month/year?.

    See my point?
    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

  7. #7
    Registered User
    Join Date
    01-13-2016
    Location
    Montana
    MS-Off Ver
    2010
    Posts
    9

    Re: formula for running YTD total data taken from column updated daily... I am OVERTHINKIN

    very good suggestion and that is what I have done with the daily and you are right I think it will work better. the test is old so I need to delete it Thanks so much I will try and post my results. need to figure out the formula to have it copy from my 2 daily worksheets to the master by current date... here we go again! lol

  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: formula for running YTD total data taken from column updated daily... I am OVERTHINKIN

    Once you have the data in a logical format, the summary formulas are generally the easy part

  9. #9
    Registered User
    Join Date
    01-13-2016
    Location
    Montana
    MS-Off Ver
    2010
    Posts
    9

    Re: formula for running YTD total data taken from column updated daily...

    OK I have re-done my workbook to have daily data entry. now I am struggling with how do I get the formula built to have it look in the fires and RX sheets by the current date and copy that data to the master sheet for the daily total (next to the year to date. I don't know if I should use Vlookup or a match function ...do you have suggestion for that? I have attached the revised spreadsheet. I want it to reference the current date which I have the =today() formula on both sheets and find the corresponding info for the boxes on the master sheet by the headers and copy it to those individual boxes.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    01-13-2016
    Location
    Montana
    MS-Off Ver
    2010
    Posts
    9

    Re: formula for running YTD total data taken from column updated daily...

    OK I have re-done my workbook to have daily data entry. now I am struggling with how do I get the formula built to have it look in the fires and RX sheets by the current date and copy that data to the master sheet for the daily total (next to the year to date. I don't know if I should use Vlookup or a match function ...do you have suggestion for that? I have attached the revised spreadsheet. I want it to reference the current date which I have used to formula =today() on both sheets look it up on the fires and RX sheets by the current date and copy the information into the matching boxes on the master sheet. I am struggling with how to build the formula
    Attached Files Attached Files

  11. #11
    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: formula for running YTD total data taken from column updated daily... I am OVERTHINKIN

    You dont really have any data in those sheets (except 21 entry in RX), but I put this in F18 (and added data to match it)...
    =INDEX('RX Daily data entry'!$B:$B,MATCH('Master 2016'!$G$1,'RX Daily data entry'!A:A,0))

    See if you can adapt this for your other cells?

  12. #12
    Registered User
    Join Date
    01-13-2016
    Location
    Montana
    MS-Off Ver
    2010
    Posts
    9

    Re: formula for running YTD total data taken from column updated daily... I am OVERTHINKIN

    we have to add the data daily and then the master is the form we email to another dispatch center. we were having to hand crank the totals and I was TRYING to make it easier and learn more about formulas...but not sure I am . SO I am trying to set this up for this coming year. Maybe I am making it to complicated and there is an easier way.. ie calculator. LOL

  13. #13
    Registered User
    Join Date
    01-13-2016
    Location
    Montana
    MS-Off Ver
    2010
    Posts
    9

    Re: formula for running YTD total data taken from column updated daily... I am OVERTHINKIN

    YES!!!!! that worked like a champ!!!! I have just changed the column reference. thank you so very much!!!! you are awesome, made my life much easier. I got all my RX ones done... but trying to manipulate it for the fires tab, proving a little more challenging

    Last edited by radiogirl; 01-14-2016 at 03:31 PM.

  14. #14
    Registered User
    Join Date
    01-13-2016
    Location
    Montana
    MS-Off Ver
    2010
    Posts
    9

    Re: formula for running YTD total data taken from column updated daily... I am OVERTHINKIN

    Ok I figured it out and changed the formulas so now it works for both. THANK YOU FDibbins!!!!!!!

+ 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] updated running total from previous pages
    By Steve in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  2. updated running total from previous pages
    By Steve in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  3. updated running total from previous pages
    By Steve in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 AM
  4. [SOLVED] updated running total from previous pages
    By Steve in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  5. [SOLVED] updated running total from previous pages
    By Steve in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. updated running total from previous pages
    By Steve in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. [SOLVED] updated running total from previous pages
    By Steve in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. updated running total from previous pages
    By Steve in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-06-2005, 10:05 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