+ Reply to Thread
Results 1 to 3 of 3

Counting based on date ranges

  1. #1
    Registered User
    Join Date
    03-03-2011
    Location
    Marin County, CA
    MS-Off Ver
    Excel 2007
    Posts
    25

    Counting based on date ranges

    Hi all, I'm building a graph off a pivot table in excel (because Salesforce.com's reporting tools are woefully inadequate).

    I've attached a picture to give an idea of the pivot table I'm trying for
    Capture.PNG


    The column I haven't created yet, which I call "Average # of Open Cases " - which is different than the # of cases opened that month (happy to clarify if necessary). I have the Case open date and the case close date in my source data, which should be enough. Ideally I'd be able to give an average # based on how many cases were open on any given day of each month, but I can also work with the number of cases open at a fixed date each month (like the beginning or middle of each month).


    To help clarify, here's how I would get the values for "# of Open Cases" manually if I had to:

    - I would create a separate table of dates covering the entire span of my open dates (ie, a row for each day between Oct 2012 and Aug 2013)

    - For each date on this table, I would go through the case record in my source data to see if it was open on that date (ie, if the given date was between the Open Date and Close Date of the case)

    - With that done, I can add the tallies to each date record, so my table would show the number of open cases for each date.

    - Then I could average the open case count across the days in each month, to get my desired average count of open cases per month


    I'm hoping there's a way to handle this without the manual process! Is this something Pivot Tables can help with?

    Thanks!

  2. #2
    Registered User
    Join Date
    03-03-2011
    Location
    Marin County, CA
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Counting based on date ranges

    61 Views and no responses? Am I in the wrong section? Was my question unclear or inappropriate?

    I appreciate any feedback you can give me!

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Counting based on date ranges

    Hi,

    This is the first time I've read your original question and, although it is not inappropriate (at least to me), it is unclear.

    Don't get me wrong, you've obviously spent considerable time phrasing your question, and the level of detail is well beyond the average, only...

    ...this is an Excel forum...

    ...and you wouldn't believe how much better your chances of a response would be if you were to take all that expounding and the picture and replace it with one simple spreadsheet with your desired outcomes clearly outlined.

    Hope to hear from you soon.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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] Counting the number of times a date occurs in multiple start and end date ranges.
    By Grizz in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 03-05-2013, 04:41 PM
  2. Counting Across Multiple Ranges, Based on Condition
    By Biff in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  3. Counting Across Multiple Ranges, Based on Condition
    By Biff in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  4. [SOLVED] Counting Across Multiple Ranges, Based on Condition
    By Stacy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. Counting Across Multiple Ranges, Based on Condition
    By Stacy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-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