Results 1 to 8 of 8

vlookup type function, see if string has key, if it does give value

Threaded View

  1. #4
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: vlookup type function, see if string has key, if it does give value

    Hi edsters,

    I didn't think it did substrings either, but in the sample Workbook I posted, it WORKED, as long as the items in 'Sheet 1' are 'Superstrings' of the items in 'Sheet 2'.

    For example if sheet 1 contains:
    a. If you type 'EVERGREEN COMPUTERS AND PRINTERS' the category is 'HOME OFFICE'.
    b. If you type 'EVERGREEN COMPUTER' the category is 'fuel' (the previous entry in the lookup table).
    c. If you type 'EVERGREEN COMPUTERx' the category is 'HOME OFFICE' (the previous entry in the lookup table).

    When you use VLOOKUP with parameter 4 'True', 1, or omission is supposed to return an APPROXIMATE match that is the way VLOOKUP is supposed to work. When the 4th parameter is 'False or 0', then VLOOKUP needs an EXACT MATCH.


    NOTE: The items in the Lookup Table in 'Sheet 2' should be alphabetical (which you have).

    I agree that benishiryo's post is superior to mine.

    Lewis
    Last edited by LJMetzger; 10-14-2013 at 08:34 AM. Reason: Corrected errors VLOOKUP description (had logic backwards).

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Trying to match partial string with another string and give position or cell
    By pat3white in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-01-2013, 10:07 AM
  2. Vlookup needed to give value lookup value is a string within a cell.
    By CFlack8472 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-23-2012, 01:20 PM
  3. Error using Clng function in vba to convert string to long data type
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-05-2011, 06:12 AM
  4. Excel 2007 : Some Form Of VLookup type function....
    By karloz in forum Excel General
    Replies: 5
    Last Post: 12-19-2009, 05:36 PM
  5. [SOLVED] VLookup type function
    By Subs in forum Excel General
    Replies: 1
    Last Post: 05-12-2005, 11:06 AM

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