+ Reply to Thread
Results 1 to 5 of 5

Search and Return Select Data

  1. #1
    Registered User
    Join Date
    09-24-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    21

    Search and Return Select Data

    On one sheet I have a list of students similar to what is below. I am wanting to pull data from another sheet using the student ID#'s.

    Sheet #1
    column A

    Student ID#
    1511
    1596
    1595
    1550
    1540
    1559
    1543
    1525
    1539

    So on sheet #2 the search would match the student ID#'s from sheet #1 and then return the Room#'s of only those students that matched back to sheet #1.

    Sheet #2
    column A

    Student ID#
    1511
    1533
    1596
    1595
    2000
    1550
    1540
    1559
    1543
    2695
    1525
    1539
    1865

    Sheet #2
    column B

    Room#
    11
    9
    6
    13
    21
    28
    17
    18
    2
    4
    15
    23
    27

    Any help is appreciated.

    Justin

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Search and Return Select Data

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Search and Return Select Data

    90Shilling, Good afternoon.

    Using your scenario:

    Sheet#1 - Column A2:A20 --> Student ID#

    Sheet#2 - Column A2:A30 --> Student ID#
    Sheet#2 - Column B2:B30 --> Room#

    The VLOOKUP function do your job easily.

    Try this one:
    Sheet#1 - Cell B2 --> =VLOOKUP(A2,Sheet2!$A$2:$B$30,2,0)

    Copy it down.

    Is it what you desire?
    I hope it helps.

    Greetings from Brazil
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  4. #4
    Registered User
    Join Date
    09-24-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Search and Return Select Data

    Worked great Marcilio, thanks.

    Justin

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

    Re: Search and Return Select Data

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    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]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Search, select,cut and paste the data into a new sheet
    By Arun7777 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-12-2012, 05:50 AM
  2. [SOLVED] Select all data in a column based on search return
    By rtcwlomax in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2012, 09:47 AM
  3. Select row with function then search for data.
    By Printerman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2012, 07:36 AM
  4. Replies: 0
    Last Post: 01-14-2012, 02:13 AM
  5. Formula to search and select data from multiple cells
    By Karenh119 in forum Excel General
    Replies: 7
    Last Post: 02-04-2010, 04:24 PM

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