Results 1 to 14 of 14

How to lookup values between a delimiter and replace based on range?

Threaded View

  1. #1
    Registered User
    Join Date
    10-22-2010
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    15

    How to lookup values between a delimiter and replace based on range?

    Greetings!

    I need some help with VBA or a formula to do the following:

    Column A contains Part Numbers. Column B contains that part number's database ID. Column C (RelatedProducts) contains a string of ID's that are related to this part number. If there is more than one related product, the values are separated by a semi-colon as the delimiter.

    I'm trying to substitute each ID in Column C (RelatedProducts) with the corresponding part number, using columns A & B as the lookup table. Again, Column C may contain multiple related ID's, so the function needs to find the corresponding part number for each value between the semi-colons, copy the part numbers to Column D (but now separated by a comma instead of a semi-colon).

    I'm not very skilled in VBA, so this is way beyond me. I've included a spreadsheet that contains a sample of the data, plus Column D (Output) that shows what the result should look like. I'd be so grateful for any help.
    Attached Files Attached Files
    Last edited by cda; 10-25-2010 at 12:05 PM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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