+ Reply to Thread
Results 1 to 3 of 3

If function

  1. #1
    Registered User
    Join Date
    01-24-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    5

    If function

    Basically in a cell e.g. 'C2' I want an If statement to see if a number of cells e.g. B2,B3,B4,B5,B6,B7,B8 are not equal to a certain cell e.g. C4 and if none of them are equal to the value in 'C4' then I want it to say "No'" and if at least one does then for it to say "Yes". Any suggestions?

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: If function

    In C2 try:

    =IF(ISNA(MATCH(C4,B2:B8,0)),"No","Yes")

  3. #3
    Registered User
    Join Date
    01-24-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: If function

    I've done this =IF((COUNTIF(B2:B8,C4 )) = 0, "Yes", "No")

    So if none of them equal C4 then the answer will be 0 and so "Yes" is displayed

+ 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