+ Reply to Thread
Results 1 to 15 of 15

Searchable VLOOKUP?

  1. #1
    Registered User
    Join Date
    03-30-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    6

    Searchable VLOOKUP?

    Hey guys,
    I assume this is a reasonably easy thing to do, but how do I have an input field (inputting of a Student's ID) that grabs the name and gender of said student?
    Thanks
    Last edited by Simpleas; 03-30-2016 at 12:47 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,861

    Re: Searchable VLOOKUP?

    Depends on your data layout.

    What do you mean by "input field"? Are you using a form, or is this a cell in a worksheet? Where do you want to show the data that you grab?

    Where is the list of names and that other data you want to retrieve?

    BTW the "***" suggests that the auto-censor detected a word that we don't allow in posts. I cannot imagine what it might have been but maybe you abbreviated "assignment" or something.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    03-30-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    6

    Re: Searchable VLOOKUP?

    Ohh I said the 'other' word for gender aha
    The data is in a different worksheet (all data needed to be pulled are on this one), I wish to do the VLOOKUP on a worksheet on its own. I think input field is having the ability to type in the student id and the data appears, these things being 'dynamic', so that they change when a different id is inputted. Doing this for school and the teacher we have is bad at best so just going along the assignment criteria

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,861

    Re: Searchable VLOOKUP?

    This is hard to understand in the abstract although it sounds like you have a simple problem. Can you attach a file that shows how this data is set up, where is the input field, and an example of the result you want to see?

    Also, you mentioned assignment criteria. We don't do your homework here, but can help move you in the right direction.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Searchable VLOOKUP?

    Maybe this will help?
    A
    B
    C
    D
    E
    F
    G
    1
    Name Header1 Header2 Name Header1 Header2
    2
    aa
    10
    100
    bb
    11
    110
    3
    bb
    11
    110
    4
    cc
    12
    120
    5
    dd
    13
    130
    6
    ee
    14
    140

    F2=VLOOKUP($E2,$A$2:$C$6,MATCH(F$1,$A$1:$C$1,0),0)
    copied across
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    03-30-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    6

    Re: Searchable VLOOKUP?

    2J7HwS9.png
    This is the data set, what I'm looking for is the ability (on a different sheet) for someone to be able to type in a student id and the following comes up; student name and gender.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,861

    Re: Searchable VLOOKUP?

    Screen shots are almost useless. Please attach a file to get the best response.

    Cell A1: this is where they type in the student ID

    This formula will give the forename
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Surname
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Gender
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Searchable VLOOKUP?

    Did you try my suggestion from post #5? (obviously adjust the ranges etc)

  9. #9
    Registered User
    Join Date
    03-30-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    6

    Re: Searchable VLOOKUP?

    Quote Originally Posted by FDibbins View Post
    Did you try my suggestion from post #5? (obviously adjust the ranges etc)
    No sorry I found it a little difficult to understand

    Anyways thanks for all the help so far, here is the doc http://www.filedropper.com/yeah_2
    I managed to do the little amount of VB coding thats in there but I am really struggling to get this VLOOKUP thing done
    Thanks

  10. #10
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,861

    Re: Searchable VLOOKUP?

    To attach a file:
    1. Under the text box where you type your reply click the Go Advanced button.
    2. In the next screen look above the reply box and click the "paper clip" icon. You will get a pop-up screen.
    3. In the pop-up, click Add then Select to select a file from your local drive
    4. Click the Upload button to upload the file
    5. Click Done to attach it.

    It will be displayed as an attachment underneath your post text. Alternatively as the last step you can click the Insert Inline button and a hyperlink to the file will be inserted directly into your post text in the spot where your cursor is set at the moment you click the button.

    Here are step-by-step instructions with screen shots

  11. #11
    Registered User
    Join Date
    03-30-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    6

    Re: Searchable VLOOKUP?

    Quote Originally Posted by 6StringJazzer View Post
    To attach a file:
    1. Under the text box where you type your reply click the Go Advanced button.
    2. In the next screen look above the reply box and click the "paper clip" icon. You will get a pop-up screen.
    3. In the pop-up, click Add then Select to select a file from your local drive
    4. Click the Upload button to upload the file
    5. Click Done to attach it.

    It will be displayed as an attachment underneath your post text. Alternatively as the last step you can click the Insert Inline button and a hyperlink to the file will be inserted directly into your post text in the spot where your cursor is set at the moment you click the button.

    Here are step-by-step instructions with screen shots
    Unfortunately I go to click to on the upload icon and the pop up to upload never loads, its just blank

  12. #12
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,861

    Re: Searchable VLOOKUP?

    Yeah, we've been having some trouble with that on and off. After clicking Go Advanced, scroll down and you should see a button "Manage Attachments". Try that. The window will look different than my instructions but it should be self-explanatory.

  13. #13
    Registered User
    Join Date
    03-30-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    6

    Re: Searchable VLOOKUP?

    That should do it!
    Attached Files Attached Files

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Searchable VLOOKUP?

    Quote Originally Posted by Simpleas View Post
    No sorry I found it a little difficult to understand

    Thanks
    It us really just a simple VLOOKUP, the only extra I added was so that you didnt need to manually specify which column to use within the range. The MATCH() part returns the column number - within the range - that it fionds teh heading

  15. #15
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Searchable VLOOKUP?

    The suggestions already provided, do exactly what you want, you just need to adjust the ranges to suite your data

    =VLOOKUP($B3,Student!$C$4:$G$44,3,0)
    and
    =VLOOKUP($B3,Student!$C$4:$G$44,5,0)

+ 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. Vlookup --- Searchable Drop Down Lists
    By viber52 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-25-2015, 07:10 PM
  2. [SOLVED] Get Combox Searchable
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-19-2014, 05:27 AM
  3. Searchable Combobox
    By marklp89 in forum Excel General
    Replies: 7
    Last Post: 01-16-2010, 07:23 PM
  4. Searchable list
    By jsmity in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2009, 11:55 AM
  5. Searchable archive
    By shadesofsisyphus in forum Excel General
    Replies: 3
    Last Post: 05-12-2006, 05:02 PM
  6. [SOLVED] Searchable text field
    By bill in forum Excel General
    Replies: 3
    Last Post: 11-11-2005, 04:10 AM
  7. FAQ? Searchable archive?
    By Rick Labs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-09-2005, 06:05 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