+ Reply to Thread
Results 1 to 8 of 8

Looking for a correct COUNTIF function

  1. #1
    Registered User
    Join Date
    11-22-2012
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    9

    Looking for a correct COUNTIF function

    I am using Excel 2003. I have two columns. One columns contains the letter "b" and no data and the other column contains different numbers.
    What I am trying to do is count the numbers which are marked "b" and are >= 12.
    I tried so many formulas and none of them works.
    Here is an example of what I did

    =COUNT(IF(C112:C203="b",IF(E112:E203>=DATAVALUE("12"),)))
    =COUNTIF(C112:C203="b",E112:E203,">=12")

    Please help
    Thanks

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Looking for a correct COUNTIF function

    For Exel 2003, try this:
    =SUMPRODUCT((C112:C203="b")*(E112:E203>=12))

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Looking for a correct COUNTIF function

    Try this:

    =SUMPRODUCT((C112:C203="b")*(E112:E203>=12))

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    08-23-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Looking for a correct COUNTIF function

    You should use the COUNTIFS() Function:


    =COUNTIFS(C112:C203, "b", E112:E203, ">=12")
    A macro does what you tell it, not what you want.

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Looking for a correct COUNTIF function

    Quote Originally Posted by thinkspac View Post
    You should use the COUNTIFS() Function:


    =COUNTIFS(C112:C203, "b", E112:E203, ">=12")
    Not an option with Excel 2003. That function was first introduced in Excel 2007.

  6. #6
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Looking for a correct COUNTIF function

    @ thinkspac

    The OP's profile indicates that they have Excel 2003, No COUNTIFS in that version.

  7. #7
    Registered User
    Join Date
    08-23-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: Looking for a correct COUNTIF function

    Quote Originally Posted by Ron Coderre View Post
    Not an option with Excel 2003. That function was first introduced in Excel 2007.
    I missed the 2003 reference, sorry.

  8. #8
    Registered User
    Join Date
    11-22-2012
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Looking for a correct COUNTIF function

    Quote Originally Posted by Ron Coderre View Post
    For Exel 2003, try this:
    =SUMPRODUCT((C112:C203="b")*(E112:E203>=12))

    Does that help?
    Quote Originally Posted by Pete_UK View Post
    Try this:

    =SUMPRODUCT((C112:C203="b")*(E112:E203>=12))

    Hope this helps.

    Pete
    Thank you guys, it worked.

+ 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