+ Reply to Thread
Results 1 to 9 of 9

Vlookup Case sensitive

  1. #1
    Forum Contributor
    Join Date
    09-30-2008
    Location
    London
    Posts
    127

    Vlookup Case sensitive

    Dear all,
    I need vlookup statment case sensitive - Please help me.
    I have excel file like
    in Sheet1
    a small
    A big
    w small
    W big
    Q big
    s small

    and sheet2 have
    a
    A
    w
    W
    q
    q
    s
    Q

    i want to fill column B (in sheet2) using vlookup with sheet1.

    I had used
    =IF(EXACT(A1,VLOOKUP(A1,Sheet2!A:B,1,0)),VLOOKUP(A1,Sheet2!A:B,2,0),"No Exact Match")
    but it's not working perfect.

    Any idea?

    Regards
    Vinay

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Vlookup Case sensitive

    With
    Sheet2 containing this list in A1:B6
    Please Login or Register  to view this content.
    and...Sheet1 containing this list in A1:A8
    Please Login or Register  to view this content.
    This formula returns the category (from Sheet2) that corresponds
    to the letter in Col_A
    Please Login or Register  to view this content.
    Copy that formula down through B8.

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    Please Login or Register  to view this content.
    Which must be confirmed with CTRL+SHIFT+ENTER not just ENTER. You will see { } brackets appear around the formula.

    Then copy down.

    Note: Adjust ranges to suit. Also, you cannot use whole column references with this formula like A:A unless you are using XL2007
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    if as in your example its only one letter and you want to return upper and lower case matches use a helper column in front of your data on sheet 1
    with =code(b1) dragged down where col b is list of letters in upper/lower
    and col c is big,small
    then on sheet 2 col b use
    =VLOOKUP(CODE(A1),Sheet1!A1:C100,3,FALSE)

  5. #5
    Forum Contributor
    Join Date
    09-30-2008
    Location
    London
    Posts
    127
    Hi Ron,

    It's gives me number like 1,2,3,4..
    but in sheet1 output i want like

    a small
    A big
    w small
    W big
    q No match
    q No match
    s small
    Q big

    Thanks

    Vinay

  6. #6
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Vlookup Case sensitive

    OOPS! I copied the wrong formula...(sorry)
    Try this
    Please Login or Register  to view this content.
    Actually....this formula is a bit shorter
    (and still doesn't involve array entering...C+S+E)
    Please Login or Register  to view this content.
    Better?
    Last edited by Ron Coderre; 10-16-2008 at 11:15 AM. Reason: offer an alternative formula

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Have you tried the other suggestions?

  8. #8
    Forum Contributor
    Join Date
    09-30-2008
    Location
    London
    Posts
    127
    Hi Ron,

    Great. it's working perfect.

    Thanks genius.

    Vinay

  9. #9
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    You're very welcome, vinaynaran.....I'm glad I could help.

+ 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. Spellnumber
    By Williams in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 02-16-2020, 03:34 AM
  2. number to words
    By vjn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2008, 04:57 AM
  3. Numbers to Text
    By sachinattri in forum Excel General
    Replies: 6
    Last Post: 06-15-2008, 03:07 AM
  4. "Translating" numbers into words
    By Portuga in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2008, 11:44 AM
  5. Spell number
    By nowfal in forum Excel General
    Replies: 4
    Last Post: 08-20-2007, 04:21 PM

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