+ Reply to Thread
Results 1 to 7 of 7

VLOOKUP with Special Value

Hybrid View

Andrew.Trevayne VLOOKUP with Special Value 10-21-2011, 03:46 AM
TMS Re: VLOOKUP with Special Value 10-21-2011, 05:05 AM
kvsrinivasamurthy Re: VLOOKUP with Special Value 10-24-2011, 02:06 AM
Andrew.Trevayne Re: VLOOKUP with Special Value 10-25-2011, 04:37 AM
TMS Re: VLOOKUP with Special Value 10-25-2011, 05:29 AM
Andrew.Trevayne Re: VLOOKUP with Special Value 10-27-2011, 03:24 AM
TMS Re: VLOOKUP with Special Value 10-27-2011, 03:28 AM
  1. #1
    Forum Contributor
    Join Date
    11-02-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    353

    VLOOKUP with Special Value

    Hello,
    Not sure if this is possible but how do you suggest I "VLOOKUP" a Cell (ColumnA) with value like "ABCD" and "EFGH" and "KLMN"
    Asterisk can be different characters.
    I'd like to pickup all that has this at the beginning.

    VLOOKUP table is on Sheet2 Columns AB to pickup Value on B if theres a match.
    Sheet 2 Column A has ABCD*, EFGH* and KLMN*, any thing from Sheet 1 that starts with this should be able to pickup the value on Sheet 2 Column B.
    I hope I am making sense.
    Appreciate your help. Thank you in advance.


    Cheers,
    Andrew
    Last edited by Andrew.Trevayne; 10-27-2011 at 03:24 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,465

    Re: VLOOKUP with Special Value

    Can we see some real examples in a sample workbook.


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: VLOOKUP with Special Value

    Assuming Sheet2 has data from A2 to B7 as you have given,to get values in Sheet1 put this formula in Sheet1 B2 cell and drag down.

    =SUMPRODUCT(--(LEFT(Sheet2!$A$2:$A$7,4)=Sheet1!A2),Sheet2!$B$2:$B$7)

  4. #4
    Forum Contributor
    Join Date
    11-02-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    353

    Re: VLOOKUP with Special Value

    @kvsrinivasamurthy
    Thank you for the formula but it was not picking the values as I was expecting.
    Perhaps I didnt clearly explained what I needed.

    @TMShucks
    I have enclosed my dummy spread sheet


    Here is what I was trying to achieve.
    On Sheet 1 Column A I will have a set of records.
    Sheet 2 Will be the lookup page (picking the value on column B)

    Sheet 1 Column A values varries but typically begins with ABCD, EFGH, KLMN.
    I need a formula to pickup value in sheet 2 based on the beginning values of Sheet1 Column A.
    Something like ABCD* or EFGH* or KLMN*

    Hope you guys understand what Im trying to explain. Thank you in advance.
    Attached Files Attached Files

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,465

    Re: VLOOKUP with Special Value

    Try:

    =VLOOKUP(LEFT($A2,4),Sheet2!$A:$B,2,FALSE)


    Regards

  6. #6
    Forum Contributor
    Join Date
    11-02-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    353

    Re: VLOOKUP with Special Value

    This is brilliant! Thanks to you both!

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,465

    Re: VLOOKUP with Special Value

    You're welcome. Thanks for the rep.

    Regards

+ 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