+ Reply to Thread
Results 1 to 7 of 7

Need help counting events within a certain date ranges

  1. #1
    Registered User
    Join Date
    11-25-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Need help counting events within a certain date ranges

    My workbook is used to analyse various events occuring within 5 seperate teams. As such, the first five worksheets contain the raw data entries for each team. The next work sheets count and sum various events and critera for the five teams.

    For example, say there were five sales teams selling cars. Each team's worksheet have the same columns; make of car, body type, colour, date sold. Each entry is entered on a new row.
    The sales figures for each month are entered and so the workbook is ongoing.

    Now, say I want to count the number of red cars sold each month. I can total the number of times "red" appears in a given column easily enough, but to add the "month criterion" in a corresponding column as well proves very difficult.

    Please help? What would my function arguments look like?

  2. #2
    Registered User
    Join Date
    09-30-2012
    Location
    Perth, Australia
    MS-Off Ver
    MSO all versions to 2007
    Posts
    30

    Re: Need help counting events within a certain date ranges

    Sounds like a homework project to me.....

    The formulae would be something like:
    Please Login or Register  to view this content.
    The attached example uses named ranges for the dropdowns to lookup the month and colour.


    Muzza68
    Attached Files Attached Files
    Last edited by Muzza68; 11-25-2012 at 09:11 PM.

  3. #3
    Registered User
    Join Date
    11-25-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Need help counting events within a certain date ranges

    It's very similar to this but sales are entered in as dates, eg. 01/07/12 (dd/mm/yy) and then summed in months: Total red cars sold in July.

  4. #4
    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,938

    Re: Need help counting events within a certain date ranges

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

  5. #5
    Registered User
    Join Date
    11-25-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Need help counting events within a certain date ranges

    Thanks, okay it looks like this.
    Attached Files Attached Files

  6. #6
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: Need help counting events within a certain date ranges

    Don't see 5 teams represented here. Most folks find help sooner if the data in their attachments more closely resembles/represents the actual data (privacy and business sensitivities considered, of course).

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Need help counting events within a certain date ranges

    In B4 copied over and down try...

    Please Login or Register  to view this content.
    HTH
    Regards, Jeff

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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