+ Reply to Thread
Results 1 to 5 of 5

Is value a2 in B:b?

Hybrid View

  1. #1
    Registered User
    Join Date
    07-08-2009
    Location
    Wales, UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    Is value a2 in B:b?

    Hi,

    I am up against the clock, and I need to know how to display in a cell "Yes" or "No" based on a value being (or not) in a column.

    I have column A with values, and I want column C to show Yes/No based on if value x from say A2 exists as a whole matched valued in B2:b3000 and set c2="Yes" if it is, and no if it isn't.

    I have tried to work this out my self, but being under pressure it's not making much sense, and I could do with a hand.

    Im sure the answer must have been presented here, so even if some one can direct me to a post that would be good.

    Many thanks in advance
    Last edited by NBVC; 07-09-2009 at 08:19 AM.

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

    Re: Is value a2 in B:b?

    =Isnumber(Match(A2,$B$2:$B$3000,0)) will return TRUE if Match found, FALSE if not... copy it down the column...
    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
    03-16-2009
    Location
    London, UK
    MS-Off Ver
    Excel 16.78 on Mac - Office 365.
    Posts
    80

    Re: Is value a2 in B:b?

    Perhaps you can check whether the value you are looking for exists in the range, and if so display yes? So something like

    =IF(COUNTIF(B2:B3000,"x")>0,"yes","no")

  4. #4
    Registered User
    Join Date
    07-08-2009
    Location
    Wales, UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    Wink Re: Is value a2 in B:b?

    Many thanks, I was getting confused by various search results and the different ways you can do lookups in excel. I had tried a few permutations of those commands, but never got them to work.

    It seems as though the following does what I need.
    =IF(COUNTIF(B377:B3375,A377)>0,"yes","no")

    Thanks for the quick responses.

  5. #5
    Registered User
    Join Date
    03-16-2009
    Location
    London, UK
    MS-Off Ver
    Excel 16.78 on Mac - Office 365.
    Posts
    80

    Re: Is value a2 in B:b?

    Cool, don't forget to mark your post as [SOLVED] if it is...

+ 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