Closed Thread
Results 1 to 4 of 4

Building a macro to look into another datasheet

  1. #1
    Registered User
    Join Date
    09-30-2008
    Location
    USA
    MS-Off Ver
    2010
    Posts
    36

    Building a macro to look into another datasheet

    I have two excel files:

    products.xls
    keywords.xls

    products.xls:
    column C: Is the list of colors for each product
    column D: I want put the narrowed names resulting from the match when I run the macro.
    keywords.xls
    column A: Is a list of color names
    column B: Is the narrowed name I assigned for each color name on column A.

    Example: I assigned “red” as the narrowed name for the color names Light Red, Dark Red and Fire Red.
    I want put in column D (file products.xls) Red if in the column C (file products.xls) exist Light Red, Dark Red or Fire Red. I don’t want repeat the word “red” in Column D, even if there are more than one match per row.

    Actual match: if we take row 4, column C (file products.xls), the list is:
    Black, Dark Green, Navy Blue, NG Black, NG Dk Green, Dark Blue, Light Blue, Royal Blue.

    I want, in the D (file products.xls):

    Black, Green, Blue

    Can anyone help me on this please. Thank you in advance.




    products.xls keywords.xls
    Last edited by WT2008; 09-24-2012 at 07:24 PM.

  2. #2
    Registered User
    Join Date
    09-30-2008
    Location
    USA
    MS-Off Ver
    2010
    Posts
    36

    Re: Building a macro to look into another datasheet

    Any help here? – Perhaps any tip about where something similar comes up!

  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Building a macro to look into another datasheet

    Why not post in the relevant forum, might get some response

    http://www.excelforum.com/excel-programming-vba-macros/

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Building a macro to look into another datasheet

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    In future if you need to move a thread to the relevant subforum, do not create a new thread, instead PM a moderator to move the thread for you. This will prevent duplicate threads.

    Thread Closed.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed 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