+ Reply to Thread
Results 1 to 9 of 9

Thread: Counting Dates??

  1. #1
    Registered User
    Join Date
    06-30-2008
    Location
    Ireland
    Posts
    34

    Counting Dates??

    I have a list of dates running down column B.

    ie.

    14th July 2008
    22nd July 2008
    12th August 2008
    26th August 2008

    I need a formula that counts only the months i want (ie. just count amount of times a date in july occurs)

    Any help would be great!

    Thanks
    Last edited by VBA Noob; 06-30-2008 at 03:36 PM.

  2. #2
    Extremely Helpful member
    Join Date
    12-23-2006
    Location
    Belgium
    MS-Off Ver
    XL2003
    Posts
    6,127
    Quote Originally Posted by BodyHaven
    I have a list of dates running down column B.

    ie.

    14th July 2008
    22nd July 2008
    12th August 2008
    26th August 2008

    I need a formula that counts only the months i want (ie. just count amount of times a date in july occurs)

    Any help would be great!

    Thanks
    Hi and welcome to the board

    Try
    =sumproduct(month(a2:a10)=7)
    Adjust the range to your needs
    Cheers
    Quoting entire posts clutters the forum and makes threads hard to read !

    If you are pleased with a member's answer then use the Star icon to rate it

    Click here to see forum rules

  3. #3
    Registered User
    Join Date
    06-30-2008
    Location
    Ireland
    Posts
    34
    Quote Originally Posted by arthurbr
    Hi and welcome to the board

    Try
    =sumproduct(month(a2:a10)=7)
    Adjust the range to your needs
    Cheers

    Thanks very much!

    I tried this formula and it doesnt work?

    I assume the "month" part stays as is and that the "7" represents July!?

    Does my date need to be in a particualar format? The dates are formated to dates already

    Also how would i specify the month and year i want to add (ie. to add july 2007 not july 2008)

    Many Thanks

  4. #4
    Registered User
    Join Date
    06-30-2008
    Location
    Ireland
    Posts
    34
    If it makes a difference, it is for Excel 2007

  5. #5
    Extremely Helpful member
    Join Date
    12-23-2006
    Location
    Belgium
    MS-Off Ver
    XL2003
    Posts
    6,127
    Quote Originally Posted by BodyHaven
    If it makes a difference, it is for Excel 2007
    Don't think it's important .
    Sorry,I wasn't really watching, but I suppose 14th July 2008 is text or is it a date with a Custom format ? (if you're not sure right-click the date and select format, then Number ( don't OK)If it reads a number it's a date, if not it's plain text).


    What error did you get ?
    Last edited by arthurbr; 06-30-2008 at 04:17 PM.
    Quoting entire posts clutters the forum and makes threads hard to read !

    If you are pleased with a member's answer then use the Star icon to rate it

    Click here to see forum rules

  6. #6
    Registered User
    Join Date
    06-30-2008
    Location
    Ireland
    Posts
    34
    Quote Originally Posted by arthurbr
    Don't think it's important .
    Sorry,I wasn't really watching, but I suppose 14th July 2008 is text or is it a date with a Custom format ? (if you're not sure right-click the date and select format, then Number ( don't OK)If it reads a number it's a date, if not it's plain text).


    What error did you get ?

    Its a custom date (DD MMM Y)


    I dont get an error, it just doesnt count them. Cant get anything but zero

  7. #7
    Extremely Helpful member
    Join Date
    12-23-2006
    Location
    Belgium
    MS-Off Ver
    XL2003
    Posts
    6,127
    Could you please post a small sample of your data (see "attachments" under 'additional options") ?
    Quoting entire posts clutters the forum and makes threads hard to read !

    If you are pleased with a member's answer then use the Star icon to rate it

    Click here to see forum rules

  8. #8
    Registered User
    Join Date
    06-30-2008
    Location
    Ireland
    Posts
    34
    Quote Originally Posted by arthurbr
    Could you please post a small sample of your data (see "attachments" under 'additional options") ?

    I put it onto a new sheet for clarity
    Attached Files Attached Files

  9. #9
    Extremely Helpful member
    Join Date
    12-23-2006
    Location
    Belgium
    MS-Off Ver
    XL2003
    Posts
    6,127
    Hi,
    I took the liberty of changing a year to check.
    Added a file with a formula and a PT approach
    Is this what you need?
    Cheers
    Attached Files Attached Files
    Quoting entire posts clutters the forum and makes threads hard to read !

    If you are pleased with a member's answer then use the Star icon to rate it

    Click here to see forum rules

+ 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.2.0