+ Reply to Thread
Results 1 to 6 of 6

counting with different criteria

  1. #1
    Registered User
    Join Date
    07-08-2009
    Location
    sydney, australia
    MS-Off Ver
    Excel 2007
    Posts
    16

    Smile counting with different criteria

    can someone help with this

    I need to seperate and count two different criterias.
    In my mthly work sheet Column F is desiginated to engineer 3 number codes and contractors which are 2 numeric and 1 alpha.

    the engineer codes seem to be from 100 -500
    examples of contractor codes are 26B,24T,25E etc.

    How can I count only the 3 number engineer codes?

    snowee01
    Last edited by snowee01; 07-15-2009 at 09:59 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: counting with different criteria

    Hi Snowee,

    To count just the numbers in column F, use:
    =COUNT(F2:F100)

    To count just the non-numeric cells, use:
    =COUNTA(F2:F100)-COUNT(F2:F100)

    Adjust your range as needed. COUNT only counts numbers, while COUNTA counts all cells with text (including numbers), which is why we subtract the number count to get that total.

    Hope that helps!

  3. #3
    Registered User
    Join Date
    07-08-2009
    Location
    sydney, australia
    MS-Off Ver
    Excel 2007
    Posts
    16

    Smile Re: counting with different criteria

    thanks for your help Paul, however we have hit another snag, when we used your great tip we discovered that all cells have been converted to text straight from "Pronto's report building - we can not change column to 'Numeric' any ideas to get around this

  4. #4
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: counting with different criteria

    Something like:
    Please Login or Register  to view this content.
    Will coerce the third character into a recognizable number, if it is indeed a number, and return TRUE, but will return FALSE if it's a letter.

    Hope that helps?
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  5. #5
    Registered User
    Join Date
    07-08-2009
    Location
    sydney, australia
    MS-Off Ver
    Excel 2007
    Posts
    16

    Thumbs up Re: counting with different criteria

    this sooooo worked...thankyou thankyou. I included this into a sumproduct and now have the base count.

    well done
    Last edited by snowee01; 07-15-2009 at 09:53 AM.

  6. #6
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: counting with different criteria

    coolz.
    Please mark your thread as solved.
    Teamwork ftw!

    mew!

+ 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