+ Reply to Thread
Results 1 to 3 of 3

VLOOKUP return value based on text in cell

  1. #1
    Registered User
    Join Date
    03-04-2009
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    13

    VLOOKUP return value based on text in cell

    SHEET1 [Column A] contains my old part numbers. The part numbers begin with either “D” or “E”

    SHEET2 is a cross reference table
    SHEET2 [Column A] contains my old part numbers
    SHEET2 [Column B] contains my new part numbers that BEGIN with “D”
    SHEET2 [Column C] contains my new part numbers that BEGIN with “E”

    If Old Part Number begins with “D” VLOOKUP using SHEET1 [Column B] and place in SHEET1 [Column B]
    If Old Part Number begins with “E” VLOOKUP using SHEET2 [Column C] and place in SHEET1 [Column B]

    Please see attached example

    Example.zip

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VLOOKUP return value based on text in cell

    Hi,

    Perhaps in B2 copied down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-04-2009
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: VLOOKUP return value based on text in cell

    BRILLIANT!!

    Thanks Richard.. I wasn't sure what approach to use.. I was going between IF() and INDIRECT but couldnt figure out how to get the syntax right with either.
    Your formula worked great..

    Thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 12-07-2012, 12:47 PM
  2. [SOLVED] VLOOKUP - to return a value based on what I input to a cell?
    By AndyHawke in forum Excel General
    Replies: 14
    Last Post: 09-25-2012, 04:31 AM
  3. [SOLVED] How to set Vlookup from a string of text in a cell and return the same manner
    By cathchin in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-14-2012, 04:14 AM
  4. VLOOKUP to return values based on partial text
    By cartlidge_adrian in forum Excel General
    Replies: 5
    Last Post: 01-13-2012, 05:20 AM
  5. Replies: 2
    Last Post: 04-20-2011, 08:50 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