+ Reply to Thread
Results 1 to 8 of 8

Summarizing Daily data from multiple sheets; then calc Month to Date for any day

  1. #1
    Registered User
    Join Date
    09-18-2012
    Location
    mi
    MS-Off Ver
    Excel 2010
    Posts
    17

    Summarizing Daily data from multiple sheets; then calc Month to Date for any day

    Assume that I am running a gas station. I am only selling 4 grades of fuel: Regular, Mid-Grade, Premium, and Diesel.

    I am challenged to create a file that includes a summary tab with additional tabs for every day of the month. Feb 1 data is copied from source document and pasted into tab "1"; Feb 2 data is pasted to tab "2"; etc. Each of the daily tabs are consistent from the source data.

    The tab "Summary" is a consolidation of the daily data. We are comparing each item's budget to actuals.

    trial1.PNG

    I can calc the daily data by using a sumifs and indirect to get the data from tab "6". I can calc the Month to Date (MTD) if all tabs are to be included.

    Assume it is now Feb 18 and all tabs"1" through "18" are populated. Where I am being challenged is to calc the MTD data on a day earlier in the month. I need to be able to calc the MTD through Feb 5.
    My first inclination was to have the tab "Summary" store the the data in 31 consecutive columns that are hidden, but that seems to be storing redundant data.
    How do I only calc the MTD through Feb 5 if I have already populated the data for 18 days?

    On a side note:
    As we expand our gas station into a convenience store, we will be adding other groups of items such as Candy, Drinks, etc. These will be added to the summary sheet as we expand.

  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: Summarizing Daily data from multiple sheets; then calc Month to Date for any day

    Personally i think having a separate worksheet for each days data is a bit exuberant and makes analyzing data a lot more difficult. I would personally have a summary tab and one data tab with all information on it.
    As for your current problem its hard to come up with an exact solution for you without a mock spreadsheet. The best i can do is suggest using a =choose() function.
    maybe have a date cell that you want to calculate your MTD by and use a day formula to get the day to use for your choose function. =choose(day(F3),tab1,tab2,tab3,tab4...etc etc)

  3. #3
    Registered User
    Join Date
    09-18-2012
    Location
    mi
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Summarizing Daily data from multiple sheets; then calc Month to Date for any day

    Thanks dosydos for the response.

    I have oversimplified the gas station with only 4 products.
    In reality we have hundreds of "Items" in many "Item Groups" that require daily comparisons to our budget.
    To keep all data on a single sheet would provide significant opportunities for operator error. I want to avoid the error possibility.

    On the tab "Summary" I need to calc the selected Day data and the selected day MTD data.

    Tab "1" through "31" looks like this
    trial2.PNG

    Tab "Summary" looks like this
    trial3.PNG

    On the "Summary" tab, I can calc the selected Day (Cell C14) data using the Sumifs and Indirect functions.
    How do I calc the Current MTD (column E) through the selected Day (cell C14) if all 31 tabs have data in them??

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Summarizing Daily data from multiple sheets; then calc Month to Date for any day

    I did a search for a way to use INDIRECT in the manner you are describing and every site I visited said that it can not be done.
    The best I can suggest is to make two dummy sheets, Start and End. Place the Start sheet before the first sheet that you want to include in the MTD calculations (assumed to be "1") and the End sheet after the last one (the End sheet can be moved).
    The formula for MTD Snacks could then be =SUM(Start:End!G8)
    Note that this assumes the revenue from Snacks is in cell G8 (as appears in the screen shot) on every sheet.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    09-18-2012
    Location
    mi
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Summarizing Daily data from multiple sheets; then calc Month to Date for any day

    JeteMc, thanks for the response.

    I guess I am not quite explaining myself.

    In the attached file, I would like to change the date in cell C1 to any day of the month and column D will automatically recalculate the Current MTD amounts.
    There may be 29 days with data, but I would like to go back to Jan 2 to review our sales results.

    My current formula will sum Every Day with sales (in the example 3 days of sales).
    If I change the date in cell C1 to Jan 2 (as shown in cell C29), the MTD column should recalculate to only include 2 days (as shown in D42 through D51).
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Summarizing Daily data from multiple sheets; then calc Month to Date for any day

    I believe that I understood what you said.
    Researching the indirect function, I found that it will not retrieve values from a range of sheets, perhaps that will be something MS will address in the future.
    There may be other ways to go about getting the values, i.e. VBA or Power Pivot.
    I modeled the Start:End method in the attached copy of the file. The End sheet is positioned between sheets 2 and 3 so that the values in the MTD column (D14:D20) represent those from sheets 1:2. If you reposition the End sheet between sheets 3 and 4 the MTD values will reflect values from sheets 1:3
    Let us know if you have any questions.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-18-2012
    Location
    mi
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Summarizing Daily data from multiple sheets; then calc Month to Date for any day

    Thanks JeteMc.

    Sorry that I misunderstood your usage of the "End" tab. Now I understand.
    That will have to work. I was hoping for a 1-step process to have the MTD recalculated by simple input of a date.

    thanks again for you efforts.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Summarizing Daily data from multiple sheets; then calc Month to Date for any day

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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: 6
    Last Post: 03-05-2014, 11:48 PM
  2. Month to Date and Quarter to Date Average from Daily data
    By asvanthi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2014, 07:10 AM
  3. Results Summarizing Across Multiple Sheets
    By bishoonline in forum Excel General
    Replies: 10
    Last Post: 05-30-2012, 05:31 PM
  4. Macro for summarizing data per month.
    By queenie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2012, 06:59 AM
  5. Summarizing data from multiple sheets into one sheet
    By Irish Pat in forum Excel General
    Replies: 10
    Last Post: 09-09-2011, 03:58 PM
  6. Replies: 5
    Last Post: 06-19-2011, 09:29 PM
  7. sumproduct multiple daily transactions by date and month
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-09-2009, 11:57 AM
  8. summarizing multiple sheets
    By MickeyP in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 10-04-2007, 10:32 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