+ Reply to Thread
Results 1 to 15 of 15

Vlookup for value in group of text

  1. #1
    Registered User
    Join Date
    06-28-2012
    Location
    India
    MS-Off Ver
    Excel 2013 and Excel 365
    Posts
    76

    Vlookup for value in group of text

    Please help me in using the vlookup function.
    Example sheet attached.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    12-23-2003
    Posts
    179

    Re: Vlookup for value in group of text

    In B2 of Sheet1 in your file enter and copy down:

    =VLOOKUP(REPLACE(A2,1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&"0123456789"))-1,"")+0,$G$2:$H$149,2,0)

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Vlookup for value in group of text

    Another way, in B2 and copy down:

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


    It's not pretty, but it works.

    BSB.

  4. #4
    Registered User
    Join Date
    06-28-2012
    Location
    India
    MS-Off Ver
    Excel 2013 and Excel 365
    Posts
    76

    Re: Vlookup for value in group of text

    Great, this is working

  5. #5
    Forum Contributor
    Join Date
    12-23-2003
    Posts
    179

    Re: Vlookup for value in group of text

    What did you pick out?

  6. #6
    Registered User
    Join Date
    06-28-2012
    Location
    India
    MS-Off Ver
    Excel 2013 and Excel 365
    Posts
    76

    Re: Vlookup for value in group of text

    Both are working fine for me
    but if i add a digit anywhere before the lookup value then Aladin formula return to #Value error
    and if add any thing after lookup value, both formula return with error.

  7. #7
    Forum Contributor
    Join Date
    12-23-2003
    Posts
    179

    Re: Vlookup for value in group of text

    If error trapping is not what you are after, that is:
    Please Login or Register  to view this content.
    try to provide examples of look up values that are also to be found in your look up table?
    Last edited by Aladin Akyurek; 12-23-2014 at 06:40 AM.

  8. #8
    Registered User
    Join Date
    06-28-2012
    Location
    India
    MS-Off Ver
    Excel 2013 and Excel 365
    Posts
    76

    Re: Vlookup for value in group of text

    Example sheet attached
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    12-23-2003
    Posts
    179

    Re: Vlookup for value in group of text

    Would you agree that no code matches the ones listed below?

    TRF CHA-SCB :- 01871030000000107

    and

    CHA-SCB :- 02711030000000019

  10. #10
    Registered User
    Join Date
    06-28-2012
    Location
    India
    MS-Off Ver
    Excel 2013 and Excel 365
    Posts
    76

    Re: Vlookup for value in group of text

    each code working fine. But no one is working if

    "TRF CHA-SCB :- 01871030000000107" will become "TRF CHA :- 01871030000000107 SCB"

  11. #11
    Forum Contributor
    Join Date
    12-23-2003
    Posts
    179

    Re: Vlookup for value in group of text

    I don't follow. Did you see my question in post #9?

  12. #12
    Registered User
    Join Date
    06-28-2012
    Location
    India
    MS-Off Ver
    Excel 2013 and Excel 365
    Posts
    76

    Re: Vlookup for value in group of text

    Please see the Example sheet in post #10,
    I have change the data in cell A2, A3, A4 cells and the formula return to error massage

  13. #13
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Vlookup for value in group of text

    see the attached file in Yellow Color
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  14. #14
    Registered User
    Join Date
    06-28-2012
    Location
    India
    MS-Off Ver
    Excel 2013 and Excel 365
    Posts
    76

    Re: Vlookup for value in group of text

    Now this is this working with my every condition,
    Thanks Siva, Aladin and BSB

  15. #15
    Forum Contributor
    Join Date
    12-23-2003
    Posts
    179

    Re: Vlookup for value in group of text

    So, the answer to my question would have been yes...

    The formula then I had for you is:

    =LOOKUP(9.99999999999999E+307,FIND($G$2:$G$13,$A2),$H$2:$H$13)

    Or:

    =IFERROR(LOOKUP(9.99999999999999E+307,FIND($G$2:$G$13,$A2),$H$2:$H$13),"")

    which should be faster.

+ 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. [SOLVED] Using formula to each group similar to vlookup
    By holiday4ever in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-17-2014, 07:53 AM
  2. Replies: 1
    Last Post: 02-10-2014, 10:26 PM
  3. VLOOKUP to Display MGR by various Group Codes
    By bmsrmd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-15-2013, 07:08 PM
  4. Replies: 1
    Last Post: 08-28-2013, 07:14 PM
  5. [SOLVED] How do i group certain numbers together (vlookup)??
    By Kate in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2006, 08:40 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