+ Reply to Thread
Results 1 to 5 of 5

Complex count if ?!

  1. #1
    Registered User
    Join Date
    12-21-2010
    Location
    Oxfordshire
    MS-Off Ver
    Excel 2003
    Posts
    30

    Complex count if ?!

    Hi all,

    Please can somebody help me with something similar to a “countif” statement.

    Basically I’m counting data in column B that is equal to one. - =COUNTIF(B2:B94,"1")

    I also have a column A with different codes: FA , YE , YD , BS

    I would like my count statement to cross relate with column A so to produce a “count” the data will have to be equal to 1 column B and equal to FA in column A.

    FA 1
    YE 1
    BS 2
    BS 3
    FA 2


    Is that possible ?

    Thank you
    Last edited by _Lewis; 06-14-2011 at 08:17 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Complex count if ?!

    Try:

    =COUNTIF($B$2:$B2,$B2)

    and pull down

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Complex count if ?!

    Try SUMPRODUCT like this

    =SUMPRODUCT((B2:B94=1)*(A2:A94="FA"))

    Note: I took out the quotes around the 1 - probably not needed if column B data is numeric
    Audere est facere

  4. #4
    Registered User
    Join Date
    12-21-2010
    Location
    Oxfordshire
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Complex count if ?!

    Sorry i'm not amazing at excel by anymeans, what is that forumula calculating ?

    i was thinking perhaps it would have to be ?

    =COUNTIF(B2:B96,"1")=COUNTIF(A2:A95,"FA")

    but this returns the value FALSE

  5. #5
    Registered User
    Join Date
    12-21-2010
    Location
    Oxfordshire
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Complex count if ?!

    Quote Originally Posted by daddylonglegs View Post
    Try SUMPRODUCT like this

    =SUMPRODUCT((B2:B94=1)*(A2:A94="FA"))

    Note: I took out the quotes around the 1 - probably not needed if column B data is numeric
    Thats fantastic exactly what i was looking for 5* for you

+ 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