Consulting

Results 1 to 3 of 3

Thread: Find values in a range then copy and paste data to different column

  1. #1

    Find values in a range then copy and paste data to different column

    Hello All.

    Firstly I apologise if this has been covered somewhere before, I have searched the internet but due to my rather limited knowledge of Excel VBA have been unable to find something or even modify existing code to meet my requirements.

    What I would like is a way of searching a column of data, in this case Column C for a name and then to copy that Cell into the same Cell in Column E.

    So searching for John Wayne would copy the contents of Cells C2 and C3 into cells E2 and E3.

    The other thing is I would like to search through a range of names rather than one specific one, the list of names in this example would be listed in column J and the amount of names to search would change on a daily basis.

    Sample Data.xlsxSample Data.xlsx

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,874
    in E2:
    =IF(ISNUMBER(MATCH(C2,$J$2:$J$9,0)),C2,"")
    copy down.
    Altering the list in j2:j9 will/could result in column E results changing.
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    Thank you very much for your help really appreciate it, thats a lot simpler than i thought it would be

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •