Consulting

Results 1 to 4 of 4

Thread: countif forumla

  1. #1
    VBAX Contributor
    Joined
    Aug 2007
    Posts
    165
    Location

    countif forumla

    Hi

    It is possible to count the number of entries in a particular month with out doing a pivot table.....via forumla......say i wanted to know the number of clients that fell in the month february any year from 2000 to date?

    thanks

  2. #2
    VBAX Mentor anandbohra's Avatar
    Joined
    May 2007
    Location
    Mumbai
    Posts
    313
    Location
    try this
    =SUMPRODUCT(--(MONTH(A1:A4)=2),--(YEAR(A1:A4)>2000))

    countif will do only if u have one criteria say date is more than certain date
    =countif(range,criteria)
    =COUNTIF(A:A,">01/01/2000")

    but here u have multiple criteria i.e. month of Feb & year more than 2000
    so better use sumproduct

  3. #3
    VBAX Regular
    Joined
    Aug 2007
    Posts
    21
    Location
    If you have Excel2007 you can use countifs. I have had some troubles with sumproduct, you might also concatenate and then use countif.
    Col A Col B Col C
    Feb 2000 =Concatenate(A+B)

  4. #4
    VBAX Mentor anandbohra's Avatar
    Joined
    May 2007
    Location
    Mumbai
    Posts
    313
    Location
    yes i know in Excel 2007 there are some added functions like countifs, sumifs, averageifs etc
    but sumproduct will solve your problem in better way.

    but u still didnt mention your exact problem.

    r u getting the required output or we r just discussing various other way to get required output.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •