+ Reply to Thread
Results 1 to 4 of 4

Lookup a cell in a list to see if it is in the list

  1. #1
    Registered User
    Join Date
    11-22-2005
    Posts
    13

    Lookup a cell in a list to see if it is in the list

    is there a way to check if a certain cell value is in a list of values? I need to return a logical TRUE/FALSE. Ie. TRUE if it is in the list and FALSE if it is not. I could use a rather large OR function but would prefer a simpler method. I was trying to use MATCH but I couldnt figure out how to change the #NA to a FALSE value. Any suggestions would be appreciated.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    Try this:

    =ISNUMBER(MATCH(A1,your_list,0))

    Is that what you're looking for?

    Regards,
    Ron

  3. #3
    Niek Otten
    Guest

    Re: Lookup a cell in a list to see if it is in the list

    =IF(ISNA(MATCH(B1,A1:A100,0)),FALSE(),TRUE())

    --
    Kind regards,

    Niek Otten

    "quimrider" <[email protected]> wrote
    in message news:[email protected]...
    >
    > is there a way to check if a certain cell value is in a list of values?
    > I need to return a logical TRUE/FALSE. Ie. TRUE if it is in the list
    > and FALSE if it is not. I could use a rather large OR function but
    > would prefer a simpler method. I was trying to use MATCH but I
    > couldnt figure out how to change the #NA to a FALSE value. Any
    > suggestions would be appreciated.
    >
    >
    > --
    > quimrider
    > ------------------------------------------------------------------------
    > quimrider's Profile:
    > http://www.excelforum.com/member.php...o&userid=29009
    > View this thread: http://www.excelforum.com/showthread...hreadid=492149
    >




  4. #4
    Registered User
    Join Date
    11-22-2005
    Posts
    13

    Smile Thanks

    That's exactly what I was looking for... Why didn't I think of that...LOL
    here's my formula:
    =IF(ISNUMBER(MATCH(AB16,$AB$1:$AB$12,0)),0,$AA598)
    checks if AB16 is in the list and returns 0 if it's not or AA598 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