+ Reply to Thread
Results 1 to 3 of 3

Find in Vlookup

  1. #1
    Registered User
    Join Date
    06-24-2009
    Location
    Cape Town, RSA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Find in Vlookup

    Hi there,
    I need to create a function that can perform a vlookup on 'dirty' data.
    its almost as if I need to comine the FIND and VLOOKUP functions.
    The cell I am doing the lookup on will have data like 'S*234CAT-Woodlands#'.
    I need to be able to identify 'CAT' and return the using vlookup Catelog.
    Sounds simple, but the same function needs to eveulate 'S*234DOG-Woodlands#' and find DOG and return using vlookup (or simplar) Dogbert.

    So I have a normal vlookup table, but my index needs to be cleaned up.
    I have attached a sheet to explain a bit better what I am trying to do.
    Tim
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Find in Vlookup

    Welcome to the Board.

    Assuming you want search to be Case Sensitive and you want to return the number associated with first match then:

    B4: =INDEX($G$4:$G$7,MATCH(TRUE,INDEX(ISNUMBER(FIND($F$4:$F$7,$A4)),0),0))
    copied down

    To find number associated with last match (will be first match if only 1 match found)

    B4: =LOOKUP(2,1/(ISNUMBER(FIND($F$4:$F$7,$A4))),$G$4:$G$7)
    copied down
    Last edited by DonkeyOte; 06-24-2009 at 07:23 AM.

  3. #3
    Registered User
    Join Date
    06-24-2009
    Location
    Cape Town, RSA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Find in Vlookup

    Thanks, works perfectly.

+ 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