+ Reply to Thread
Results 1 to 3 of 3

Count specific text values contigent on value in next column

  1. #1
    Registered User
    Join Date
    11-05-2007
    Posts
    19

    Count specific text values contigent on value in next column

    hi,
    I have text values going down one column (e.g. "School", "Community", "Home", etc). I want to count the number of occurences of particular text values [say 'school'] in the column except when I have marked the same row in the adjacent column with an "x". I know I can use countif to count the occurences in one column - is there a way to count contingent on value in the next column.

    Thanks for your help

    Richard

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Perhaps a simple formula would be this:
    =COUNTIF(A:A,"School")-COUNTIF(B:B,"x")
    But of course you don't have to have the word in there you can reference another cell like:
    =COUNTIF(A:A,C1)-COUNTIF(B:B,"x")
    Not all forums are the same - seek and you shall find

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523
    Perhaps

    =Sumproduct(--(A1:A100="School"),--(B1:B100<>"x"))

+ 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