+ Reply to Thread
Results 1 to 5 of 5

Use lookup to return values separated by comms

  1. #1
    Registered User
    Join Date
    01-06-2009
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    8

    Question Use lookup to return values separated by comms

    Good morning!

    I am new to the forum and have a problem that I need help to solve. I am not proficient with formulas, macros and advanced excel stuff.

    I have a sheet with values in a cell separated by commas. I need to change those values to another set of values given to me and retain that they are separated by commas.

    I have attached an example. Sheet named "Data" are my original values. Sheet named "Lookup table" is such. Sheet named "Result" is what I need my answer to be.

    I would appreciate any assistance. Thank you!
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    You have a few options but my first question to you would be:

    What is the max number of conditions that could be present in any one cell ?

  3. #3
    Registered User
    Join Date
    01-06-2009
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    8
    I am glad to hear that there are a few options.

    The maximum number of conditions would be 13. They could have all of the values listed except for "None".

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    From what I can see someone's already tried to give you a solution which with 2 minor amendments will work.

    Amendment 1:

    In your file: go into VB Editor.
    Go to ThisWorkbook
    Cut the Text from that Page and Paste into Module 1.

    Amendment 2:

    Change this line:

    Please Login or Register  to view this content.
    To:

    Please Login or Register  to view this content.
    Now go back to Native XL and to Sheet Data

    In Cell B2:

    =MultiVLookup2($A2,'Lookup Table'!$A$1:$B$20,2)

  5. #5
    Registered User
    Join Date
    01-06-2009
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    8
    I hope that you don't get offended by this but I have to say
    "God Bless you!"

    I am new to VBA and could not figure out what was wrong with the multilookup function and I thought that I had deleted it out before posting the example. You have saved me sooo much headache and time!! I hope that you have a wonderful rest of the day!!


+ 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