VLOOKUP rookie question

Brown

Board Regular
Joined
Sep 14, 2009
Messages
200
Office Version
  1. 365
Good Afternoon,
I am trying to assist someone with a VLOOKUP issue. I have read the directions and watched a couple of videos and I just cannot translate it to this spread sheet.
This person wants to type in an ID number and have it return last name, first name, and grade into a different sheet in the workbook.

1702680314580.png
Looking up column A on this sheet


1702680379245.png
need to have column C, D, E filled once column B has a number that matches column in the first sheet.

is this possible?

Thank you in advance for your assistance.
Brown
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
If your source table (Table1) is on sheet1 and your output is on sheet2, it would look like this:

Book1
ABCD
1Student IDFirst NameLast NameGrade Level
21111111TomCat9
31150407BobMarley9
41201082AliceCooper9
51201753JaneDoe9
61203005SamRoberts9
Sheet1


Book1
BCDEF
2#CCIDFirst NameLast NameGrade Level
311201753JaneDoe9
421111111TomCat9
531203005SamRoberts9
641150407BobMarley9
751201082AliceCooper9
86   
97   
108   
119   
1210   
1311   
1412   
Sheet2
Cell Formulas
RangeFormula
D3:D14D3=IFERROR(VLOOKUP($C3,Table1[#All],2),"")
E3:E14E3=IFERROR(VLOOKUP($C3,Table1[#All],3),"")
F3:F14F3=IFERROR(VLOOKUP($C3,Table1[#All],4),"")
 
Upvote 0
Thank you, on the output sheet if I type the CCID then the names and grade will populate?
 
Upvote 0
If they have Excel 365 another option would be the FILTER function.
In the example below just enter the formula in C3 and drag down. It will fill out all 3 columns going across.

Sheet2
Book1
ABCDE
1
2#Student IDFirst NameLast NameGrade Level
311150407BobMarley10
421201753JaneDoe11
531201082AliceCooper9
Sheet2
Cell Formulas
RangeFormula
C3:E5C3=FILTER(Sheet1!$B$2:$D$6,Sheet1!$A$2:$A$6=B3,"No Match")
Dynamic array formulas.


Sheet1
Book1
ABCD
1Student IDFirst NameLast NameGrade Level
21111111TomCat9
31150407BobMarley10
41201082AliceCooper9
51201753JaneDoe11
61203005SamRoberts10
Sheet1
 
Upvote 0
Solution
If they have Excel 365 another option would be the FILTER function.
In the example below just enter the formula in C3 and drag down. It will fill out all 3 columns going across.

Sheet2
Book1
ABCDE
1
2#Student IDFirst NameLast NameGrade Level
311150407BobMarley10
421201753JaneDoe11
531201082AliceCooper9
Sheet2
Cell Formulas
RangeFormula
C3:E5C3=FILTER(Sheet1!$B$2:$D$6,Sheet1!$A$2:$A$6=B3,"No Match")
Dynamic array formulas.


Sheet1
Book1
ABCD
1Student IDFirst NameLast NameGrade Level
21111111TomCat9
31150407BobMarley10
41201082AliceCooper9
51201753JaneDoe11
61203005SamRoberts10
Sheet1
Thank you all for the help.
Have a great day
 
Upvote 0
For first name on sheet 1
Excel Formula:
=VLOOKUP(Sheet1!A1,Sheet1!A1:D3,3,0)
change ranges to suit
 
Upvote 0
from your duplicate post

Book2
ABCDEF
1Student IDFirst NameLast NameGrade LevelCCID
21049384BillSmith121049384
31055550JimBlack121055550
41062231BobSmalls121062231
51063728SusyQue121063728
61065545TomJerry121065545
71066206SarahConnor121066206
8
9CCIDFirst NameLast NameGrade Level
101049384BillSmith12
111055550JimBlack12
121062231BobSmalls12
131063728SusyQue12
141065545TomJerry12
151066206SarahConnor12
Sheet1


Power Query:
let
    T1 = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    T2 = Excel.CurrentWorkbook(){[Name="Table2"]}[Content],
    MQ = Table.NestedJoin(T2, {"CCID"},T1, {"Student ID"}, "T3", JoinKind.FullOuter),
    #"Expanded T3" = Table.ExpandTableColumn(MQ, "T3", {"First Name", "Last Name", "Grade Level"}, {"First Name", "Last Name", "Grade Level"})

in
    #"Expanded T3"
 
Upvote 0
Thank you all! I am working on it this morning. I am finally able to get the personal data (to basically copy over to the second sheet) but i have not been able to type in the ID number in the first column and have the rest of the data populate?
 
Upvote 0
Would Windows 11 be causing me any issues with this?
I just had my machine updated last week, and I am still working through some of the changes.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top