+ Reply to Thread
Results 1 to 3 of 3

Counting cells with a criteria based on content and adjacent cell

  1. #1
    Registered User
    Join Date
    06-03-2008
    Posts
    3

    Counting cells with a criteria based on content and adjacent cell

    Hi

    I have a list of names, lets say Tony in A1:A3 and then Kay in A4:A6 and John in A7:A9.

    In the B column some of the nmaes have an X next to the name. How can I count how many cells are there in column A with the name Tony in with an X net to it?

    I can add a column and then add the 2 test strings together then count the TonyX's but I dont want to display the column. I hide the column but its part of an outline so when the group expands it shows up again. If I try to make it zero width it still shows up after group expansion.

    Is there a dbase function I can do this with in a single cell.

    In the end I had to move the third column to the other side of the sheet and now its a pin to audit

    Cheers

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try

    =Sumproduct((A1:A10="Tony")*(B1:B10="X"))

    adjusting ranges to suit...

    Note: Replace "Tony" with cell reference, if desired.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-03-2008
    Posts
    3
    That did the trick!

    Thanks. It also help me find other things

    Cheers

+ 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