Vlookup with reference to another sheet

Hello,
I am trying to utilize VLOOKUP formula to return value from another sheet. Goal is to get Client Name from Sheet 2 into sheet 1. Below is the formula i am trying, however I keep getting error . When referencing the second sheet i can only select the task name column and not able to have the range from Task Name to Comments.
VLOOKUP(Task@row, {TEST01 Project ... Range 1}, 2, true)
Sheet 1
Sheet 2
Best Answer
-
Vlookup is going to need a very specific data set and my guess would be that your range is not correct. Index/Match is more flexible overall, but does the same thing. You can have columns in any order this way.
=Index({TEST01 Project ... Range Comments},Match(Task@row,{TEST01 Project ... Range Task Name},0),1)
For you ranges:
{TEST01 Project ... Range Comments} = The Comments Column
{TEST01 Project ... Range Task Name} = The Task Name Column
This is then dynamic and you don't have to adjust it later.
Answers
-
Vlookup is going to need a very specific data set and my guess would be that your range is not correct. Index/Match is more flexible overall, but does the same thing. You can have columns in any order this way.
=Index({TEST01 Project ... Range Comments},Match(Task@row,{TEST01 Project ... Range Task Name},0),1)
For you ranges:
{TEST01 Project ... Range Comments} = The Comments Column
{TEST01 Project ... Range Task Name} = The Task Name Column
This is then dynamic and you don't have to adjust it later.
-
@VBAGuru Thank you that worked !
-
Glad that worked!
Have a great weekend!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 450 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!