+ Reply to Thread
Results 1 to 7 of 7

Find names and copy to sheet2

  1. #1
    Registered User
    Join Date
    05-21-2008
    Location
    London
    MS-Off Ver
    2007
    Posts
    66

    Find names and copy to sheet2

    I am trying to write some code that will look up a value in a range of cells and copy the names in column A to another sheet.

    I have attached a sample sheet which I hope explains what i am trying to achieve more clearly.


    thanks

    Vetequk
    Attached Files Attached Files
    Last edited by Vetequk; 02-02-2010 at 04:27 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,959

    Re: Find names and copy to sheet2

    ...which I hope explains what i am trying to achieve more clearly. ...
    Unfortunately, not so. You should have provided before and after examples showing which value was looked up and which name was returned.

    As it is, though, the data range has many repeating values. For instance the value "11" is associated with
    name5, name6 & name9, etc.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    01-23-2010
    Location
    Moscow
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Find names and copy to sheet2

    Look at this
    Attached Files Attached Files

  4. #4
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Find names and copy to sheet2

    ----------------------------------
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  5. #5
    Registered User
    Join Date
    05-21-2008
    Location
    London
    MS-Off Ver
    2007
    Posts
    66

    Re: Find names and copy to sheet2

    OK
    if the number 11 was typed into the message box, the code would look for the number 11 within the range and when it find it goto column A where the name is located copy the name to cell A2 on sheet 2 then go onto the next 11 and copy that name to A3 and so on until the end.


    I have attached a with the desired results on sheet 2 if 11 was typed in.


    thanks

    vetequk
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-21-2008
    Location
    London
    MS-Off Ver
    2007
    Posts
    66

    Re: Find names and copy to sheet2

    Igor Shadow

    I had a look at the file and that's just what I was looking for.

    Thanks Vetequk

  7. #7
    Registered User
    Join Date
    01-23-2010
    Location
    Moscow
    MS-Off Ver
    Excel 2007
    Posts
    27

    Smile Re: Find names and copy to sheet2

    I was glad to help

+ 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