+ Reply to Thread
Results 1 to 5 of 5

Help for fantastic vlookup Jindon code

  1. #1
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Help for fantastic vlookup Jindon code

    This below code works fantastic also in worksheet with many rows.
    I have numbers in sheet2 column A and the names in sheet 2 column B
    I put numbers in Sheet 1 column A and when i run the macro it find the match and put in Sheet1 column B.

    It works great.

    What i would like to have is the same code. But in this case i put the names Sheet 2 column A and the numbers Sheet 2 column B
    And in Sheet 1 column A i put names where example 5 is a match. SO when i run the macro it will find the match of the numbers
    and put in Sheet column B.
    So is like the other way around.
    Jindon code as it is now .

    Please Login or Register  to view this content.
    IN my below test sheet there is 4 names which are the same and i want to find the belonging numbers for them.

    Please have a look
    Thanks

    Sincerely Abjac
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Help for fantastic vlookup Jindon code

    Hi.

    Try this code:

    Please Login or Register  to view this content.
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Help for fantastic vlookup Jindon code

    Hi Abjac,
    you can use VLOOKUP() function
    But first remove the gaps in Sheet2. You can do this with macro:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Help for fantastic vlookup Jindon code

    Or Jindon's code all in one go

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Help for fantastic vlookup Jindon code

    HI Thanks for the answer all codes works really good. So its a perfect , fast and competent answer. Thanks allot to all of you.
    Sincerely
    Abjac

+ 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