+ Reply to Thread
Results 1 to 6 of 6

Determine If A Cell Entry Is In A List And Return True

  1. #1
    Registered User
    Join Date
    04-11-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Determine If A Cell Entry Is In A List And Return True

    Hi, I'm a newbie.

    How do I take a string in F3, check it against a list of strings in I3:I6, and return TRUE if it is, FALSE if it's not. Ultimately, I want to use this to conditionally format a cell.

    I've googled and can see that you can pass an array as an argument to an IF statement, but I don't know if this is the most appropriate way, and if it is, I can't get it to work.

    I haven't posted what I've tried because I don't even know if I am using the right approach, never mind if my formula is wrong...

    TIA,

    W

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264

    Re: Determine If A Cell Entry Is In A List And Return True

    Hi

    Do you mean something like:

    =ISNUMBER(MATCH(F3,I3:I6,0))

    ?

    Richard
    Richard Schollar
    Microsoft MVP - Excel

  3. #3
    Registered User
    Join Date
    04-11-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Determine If A Cell Entry Is In A List And Return True

    ah, sorry, I now realise I should have been more precise. Your suggestion is exactly what I want to do, but the cells all contain text. rather than numbers. Is there a similar formula for text?

  4. #4
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264

    Re: Determine If A Cell Entry Is In A List And Return True

    Yes - it's the exact same formula. Are you only looking for a partial match however? eg if F3 contains dog do you want it to only match against 'dog' or to 'doggone' as well?

    Richard

  5. #5
    Registered User
    Join Date
    04-11-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Determine If A Cell Entry Is In A List And Return True

    only match dog, not doggone

  6. #6
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264

    Re: Determine If A Cell Entry Is In A List And Return True

    It's the same formula in that case

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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