+ Reply to Thread
Results 1 to 2 of 2

How to find rows that don't contain a certain value

  1. #1
    Registered User
    Join Date
    03-01-2010
    Location
    earth
    MS-Off Ver
    Excel 365
    Posts
    24

    How to find rows that don't contain a certain value

    Hi,

    I have a range of data:

    A B C
    man1 table
    man1 pencil
    man1 phone
    man2 table
    man2 phone
    man3 table
    man3 pencil
    man3 phone


    As you see above, each man have some items. I would like to write in column C "NO" if that man doesn't have a pencil. How can I do this?

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to find rows that don't contain a certain value

    Hi

    Do you mean something like this? In C1 and copy down.

    =IF(SUMPRODUCT(($A$1:$A$8=A1)*($B$1:$B$8="pencil"))=0,"NO","")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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