VLOOKUP ?... I just need to return a name from a code name when i input a code name
=VLOOKUP([Student Code]@row, {Student List All}, {Student Name List}, false)
I made a function to return a kids name from a code name and im not sure why i cant get it to work.
I made a sheet with a student name list next to a column with the student code and referenced it for this formula
It worked when I made it for just one or 2 specific names but i cant get it to work for the list
I keep getting #invalad data type
Best Answer
-
Hey Dell,
Your formula needs to reference the whole lookup table, with the Student code on the far left, and then the number of the column you want to fetch.
e.g if you want the value in the second column;
=VLOOKUP([Student Code]@row, {Student List All}, 2, false)
If your data is not formatted perfectly left to right, an INDEX/MATCH may work better for you!
=INDEX(column withe the value you want),match(student code@row,column with the student code in),0)
Let me know how you get on!
I'm passionate about helping you leverage the truly awesome power of smartsheet!
Answers
-
Hey Dell,
Your formula needs to reference the whole lookup table, with the Student code on the far left, and then the number of the column you want to fetch.
e.g if you want the value in the second column;
=VLOOKUP([Student Code]@row, {Student List All}, 2, false)
If your data is not formatted perfectly left to right, an INDEX/MATCH may work better for you!
=INDEX(column withe the value you want),match(student code@row,column with the student code in),0)
Let me know how you get on!
I'm passionate about helping you leverage the truly awesome power of smartsheet!
-
Hi @Dell55
I hope you're well and safe!
Read too quickly!
Be safe and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
YES! I just switched the order of my reference sheet rows and now ... Works perfectly!!!
THANKS!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 141 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!