+ Reply to Thread
Results 1 to 8 of 8

How to calculate monthly & quarterly reports

  1. #1
    Registered User
    Join Date
    01-20-2009
    Location
    Munich, Germany
    MS-Off Ver
    Excel 2003
    Posts
    16

    How to calculate monthly & quarterly reports

    Hi,

    I am currently trying to manipulate date ranges for monthly and quarterly reports, and am having trouble doing this. I have attached a file with an example of what I would essentially need.

    I would need the "Nbr of Projects", "Nbr of Days worked", "Nbr of International Projects" and "Nbr of Local Projects" cells filled in under each respective report, based on the data in the top left.

    If a project falls in two months, such as "18.12.2008 to 15.01.2009", this would be treated as 1 project for December and 1 project for January. Also, I would need only "NETWORKDAYS" included in the solution, so 11 days in this example.

    Please could you let me know if this is possible.

    Thanks a lot,

    Chris
    Attached Files Attached Files
    Last edited by island_monkey; 02-05-2009 at 10:51 AM.

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: How to calculate monthly & quarterly reports

    G26=SUMPRODUCT(($D$2:$D$22=$F26)*($B$2:$B$22<DATE(2009,2,1))*($C$2:$C$22>DATE(2008,12,31)))
    G36=SUMPRODUCT(($D$2:$D$22=$F26)*($B$2:$B$22<DATE(2009,4,1))*($C$2:$C$22>DATE(2008,12,31)))

    How we doing?
    Last edited by Cheeky Charlie; 02-04-2009 at 10:29 AM. Reason: oops - cheeky $

  3. #3
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: How to calculate monthly & quarterly reports

    I26=SUMPRODUCT(($D$2:$D$22=$F26)*($B$2:$B$22<DATE(2009,2,1))*($C$2:$C$22>DATE(2008,12,31))*($A$2:$A$22="International"))
    J26=SUMPRODUCT(($D$2:$D$22=$F26)*($B$2:$B$22<DATE(2009,2,1))*($C$2:$C$22>DATE(2008,12,31))*($A$2:$A$22="Local"))
    (OR - J26=G26-I26 of course)

    Anyone else? I saved the best to last

  4. #4
    Registered User
    Join Date
    01-20-2009
    Location
    Munich, Germany
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: How to calculate monthly & quarterly reports

    Wow, thanks a lot Cheeky Charlie!! Much appreciated! :-)

    Were you also able to solve the network days issue for "Nbr of Days worked"?

  5. #5
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: How to calculate monthly & quarterly reports

    Actually, I started, but needed to do some work...

    I have this much:
    =MAX(NETWORKDAYS(MAX(B2,DATE(2009,1,1)),MIN(C2,DATE(2009,1,31)))*(D2="Mr White"),0)
    But it needs to run over the whole column and be summed separately as it stands. It's not easy to make the networkdays with a min/max inside into an array...

    Anyone else?

    CC

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to calculate monthly & quarterly reports

    AFAIK won't be able to use NETWORKDAYS as it will not accept a range of dates as date criteria you will need to go down the route of WEEKDAY(ROW(INDIRECT etc... pretty complex...

    island_monkey -- to make your life easier -- are you able to create a matrix of months of interest in Cols E onwards such that you can store values/calcs by month in the appropriate monthly column and then sum as required ?

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: How to calculate monthly & quarterly reports

    island_monkey, if you are able to insert some additional columns to ease the complexity of your calcs then the attached may be of interest:

    that said one of the grand-fromage's may come up with something far better mind.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-20-2009
    Location
    Munich, Germany
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: How to calculate monthly & quarterly reports

    Thanks for that DonkeyOte, I wasn't able to reply to you earlier. And yes, if there isn't another way, it wouldn't be a problem at all to insert additional columns into my file. I'll probably just hide them though, or put them into another tab, to avoid the original file looking too cluttered.

    Thanks a lot for your help! :-)

+ 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