+ Reply to Thread
Results 1 to 4 of 4

Seaching a text list using IF

  1. #1
    Registered User
    Join Date
    03-13-2010
    Location
    Bedfordshire, England
    MS-Off Ver
    Excel 2010
    Posts
    60

    Seaching a text list using IF

    I have a list of codes in text form, I want a cell (L35) to return YES it sees a code in another referenced cell (L36) and stay blank if not. The code list is L93 to L100. I can use the IF statement and get it to work using only one cell in the list but not if I use the whole list. Can I use IF to do this or do I need another statement.


    This code works
    Please Login or Register  to view this content.
    I thought this may work but does not.
    Please Login or Register  to view this content.
    Last edited by BobTheRocker; 11-24-2010 at 08:01 AM.

  2. #2
    Registered User
    Join Date
    03-13-2010
    Location
    Bedfordshire, England
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Seaching a text list using IF

    This works but there must be a more efficient way of coding it?

    Please Login or Register  to view this content.
    Having done a bit of reading I've also noted the above statement is limited to 30 logicals. I have some lists that are over this limit so I really need a way of slimming this down. Say my list is from L93 to L125, that is over the limit. I'm sure there must be a way of querying if L36 equals L93 to L125 to return TRUE. Any help greatly appreciated.
    Last edited by BobTheRocker; 11-24-2010 at 07:47 AM.

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,445

    Re: Seaching a text list using IF

    Hi,

    Does this work for you?

    =IF(ISNUMBER(MATCH(L36,L93:L125,0)),"YES","")
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Registered User
    Join Date
    03-13-2010
    Location
    Bedfordshire, England
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: Seaching a text list using IF

    Brilliant, it works a trat. Thank you, I will have to carry out some reading on those functions now. Was trying to add an extra column and use VLOOKUP but that is much simpler. Thank you

+ 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