+ Reply to Thread
Results 1 to 7 of 7

Total production of energy in a specific months

  1. #1
    Registered User
    Join Date
    04-28-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    7

    Total production of energy in a specific months

    Hi,
    I could use a little help with the following:

    An Excel sheet with 2 tabs:

    Tab #1 is named PRODUCTION_DATA and contains 3 columns of data
    B contains 30 dates mixed between 2 calendar months
    C contains the 30 dates in B configured to mmm to only show jun or jul (Made for the calculation only)
    D contains an energy production output for each of the 30 days in MWh

    Tab #2 named PRODUCTION contains a formula that I hope can calculate the total production of energy in a specific months, and in this case it would be July as specified cell C4 where I have a =TODAY() formatted to mmm, I have tried:

    {=SUM(IF(PRODUCTION_DATA!$C$4:$C$34=C4;PRODUCTION_DATA!$D$4:$D$34))}

    But there are clearly something wrong since the above formula do not recognize any production.

    The sheet is attached, please help
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,234

    Re: Total production of energy in a specific months

    Hi,

    This looks like a job for Pivot tables. See the attached where I did a simple pivot table and then grouped the rows by month.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    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
    53,048

    Re: Total production of energy in a specific months

    lol sorry Marvin, but that sounded like the start of...this is a job for........suuuuuper piiiiiiiiivot!!!!!!!
    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

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,234

    Re: Total production of energy in a specific months

    I totally agree. Lots of the problems here are simple if the OP knows about X or Y or Z. Many times they simply need to sort or add a helper column. I/we see too many of these problems where a SumProduct would work but Pivots are just too easy to not visit....

    I can't count the number of times I've done Pivot Tables on OP tables that would take an impossible formula to do otherwise. I'd use PowerPivots but the term has already been taken by Microsoft. So "this sounds like a job for Super Man" is as close as I can get.

    Now - will the OP really see that Pivots do give them an answer and learn about them? That is the real question.

  5. #5
    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
    53,048

    Re: Total production of energy in a specific months

    I must admit that I dont use them as often as I should, I really need to keep them closer to the top of my tool box

  6. #6
    Registered User
    Join Date
    04-28-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Total production of energy in a specific months

    Quote Originally Posted by MarvinP View Post
    Hi,

    This looks like a job for Pivot tables. See the attached where I did a simple pivot table and then grouped the rows by month.
    Thanks MarvinP
    That helps but are there any way of automatically updating the content of a pivot table? I'm automatically collecting data from other sheets so the data will shift 1 day every day.
    Thanks again

  7. #7
    Registered User
    Join Date
    04-28-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Total production of energy in a specific months

    Quote Originally Posted by S_T996 View Post
    Thanks MarvinP
    That helps but are there any way of automatically updating the content of a pivot table? I'm automatically collecting data from other sheets so the data will shift 1 day every day.
    Thanks again
    I just found both the manuel and the auto Refresh function in Pivot so that will fix my problem
    Thanks again
    MarvinP

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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