VLOOKUP for multiple options influencing Gantt chart
I have a sheet that uses Gantt chart data to show assignments on a calendar.
The persons assigned are all in a "Name" column that is a drop down with all the employee names on them. Next to that are start and end date columns that then show a bar range in calendar view.
The employee's name will only appear in the bar in calendar view if the name is in the Primary Column.
The Primary Column can only be text, and NOT a drop down list.
I have been successful in using VLOOKUP so that when the drop down name is chosen in the Name column, that name populates into the Primary Column.
My problem, is that I cannot figure out how to do that for multiple choices. (For example, if in my drop down I have employees Larry, Moe, and Curly, my VLOOKUP works for only one of those names.) Is there a way to use VLOOKUP so it will return the correct name for any employee chosen?
Comments
-
Is the dropdown list on the same sheet? Are you able to provide some screenshots?
-
Yes. The drop down is on the same sheet. It's the name column in the screenshot.
The ID column is the primary that I want populated with my choice from the drop down.
My goal is to be able to easily build an on-call calendar. The drop down populating the primary column would cut down on typing.
The only way I've gotten it to work, as the screen shot shows, is that each row has the specific formula identifying that person.
So, in row 1, if I chose "Nick" or "Kira" it would give me a #NO MATCH error in the ID (primary) column.
-
Would it work to just use a basic
=Name@row
to pull the name from the Name column into the Primary Column? What is the reason for using the VLOOKUP?
-
Holy cow!! <face palm>
That did exactly what I wanted it to do!
I was using VLOOKUP because that was the only formula that I could see that would do what I wanted to.
Thank you very much! You've earned your gold star for the day!
-
Happy to help! There are actually a handful of formulas that can be used to pull data.
There is a template in the solution center that contains examples of all of the different functions. It is totally interactive, and if you accidentally mess something up, you can delete the sheet and download a fresh template. See the snippet below.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!