+ Reply to Thread
Results 1 to 7 of 7

Match search terms, and add data in next column. Multi search problem.

  1. #1
    Registered User
    Join Date
    11-25-2012
    Location
    Swansea, Wales
    MS-Off Ver
    Excel 2003
    Posts
    55

    Match search terms, and add data in next column. Multi search problem.

    What I have is two sheets, 'Template' and 'Sheet2', on template i have a database and in column F a list of names (in example i have it sorted but in the actual it wont be). On Sheet2 in column B there is a list of the names (removing duplicates) used in database, column C holds a code (could be text or number).

    What I need is the search list to look at Sheets("sheet1").Range("B:B") and then add the corresponding code from C:C in to the database on Sheets("Template").Range("F:F").

    I am banging my head against the wall......



    Please Login or Register  to view this content.
    Help.xlsm

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Match search terms, and add data in next column. Multi search problem.

    Edit: Macro not needed. Your post is a little confusing (ie. There is no "Sheet2" in your example, and its not clear what you want to go where) so I will guess. Put this in column F of the "Template" sheet. Copy down.

    Please Login or Register  to view this content.
    Last edited by stnkynts; 01-23-2013 at 05:06 PM.

  3. #3
    Registered User
    Join Date
    11-25-2012
    Location
    Swansea, Wales
    MS-Off Ver
    Excel 2003
    Posts
    55

    Re: Match search terms, and add data in next column. Multi search problem.

    I want to insert the value (this could even be a formula) from column C of sheet "Sheet1" to column G (sorry) of sheet "Template" all based upon the persons name which is in column B and F respectively?

    Sorry thought I named it "Sheet2" in my example, it is sheet1

  4. #4
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Match search terms, and add data in next column. Multi search problem.

    This should do it

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  5. #5
    Registered User
    Join Date
    11-25-2012
    Location
    Swansea, Wales
    MS-Off Ver
    Excel 2003
    Posts
    55

    Re: Match search terms, and add data in next column. Multi search problem.

    Thank you that works fine...... I don't really understand how it works...... but it does work very well...

    I there was a formula in column c on sheet1, could the code be amended to paste the formula??





    Quote Originally Posted by mike7952 View Post
    This should do it

    Please Login or Register  to view this content.

  6. #6
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Match search terms, and add data in next column. Multi search problem.

    Wales MB

    Please dont quote whole post.

    Not sure what your meaning by formulas. Can you post a example?

  7. #7
    Registered User
    Join Date
    11-25-2012
    Location
    Swansea, Wales
    MS-Off Ver
    Excel 2003
    Posts
    55

    Re: Match search terms, and add data in next column. Multi search problem.

    Sorry about that I pressed the wrong button.....

    Not a hundred percent sure, but thinking along the line of a Index and match look up, looking at a different excel file (Each name will need to look at different file), but using search data from the same row but from column D and E (all on sheet Template)......... ???

    When the formula gets pasted in it needs to reference the data in the same row.....

+ 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