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
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.
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]
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
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.
Maybe this will help?
A B C D E F G 1Name Header1 Header2 Name Header1 Header2 2aa 10 100bb 11 110 3bb 11 110 4cc 12 120 5dd 13 130 6ee 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
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.
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:![]()
Please Login or Register to view this content.
Surname
Formula:![]()
Please Login or Register to view this content.
Gender
Formula:![]()
Please Login or Register to view this content.
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
To attach a file:
- Under the text box where you type your reply click the Go Advanced button.
- In the next screen look above the reply box and click the "paper clip" icon. You will get a pop-up screen.
- In the pop-up, click Add then Select to select a file from your local drive
- Click the Upload button to upload the file
- 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
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.
That should do it!
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)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks