Populate column with names by project
I'm wondering what the best way to do the following would be:
I have about 100 districts and each one is assigned to one of four people. I want to populate a column with the names of the people associated with each district. Would this be best as a nested If statement?
Thanks!
Answers
-
Do you mean a column separate from what you have in your screenshot?
Can you provide more details as to how you have everything set up and what your desired end result is? THat will help greatly with finding you a solution.
Generally speaking though... If you have a list that is longer than 3 or 4 selections at most, I tend to lean more towards creating a table and using an INDEX/MATCH combo (a more flexible version of a VLOOKUP).
-
Sorry, I meant populate the District Planner column. It is mostly blank, I manually typed in those names. INDEX/MATCH sounds like it would be a better bet.
I will be typing in the district abbreviations and would like the district planner column to auto-populate with the names of the planners associated with the district.
-
Ok. The first step would be to create your table. In one column you would have your District Abrev. and in the other you would have the Names.
=INDEX(range to pull from, row number, optional column number)
=MATCH(value for comparison, range, match type)
INDEX will pull your data, but you need a numerical value in the second portion to tell the function which row to pull from. Since we are only pulling from a single column, we can ignore that 3rd portion since it is optional.
MATCH produces a numerical value based on where within a range a specific value is found. If you are looking down a single column, this number will be the row number. We will use this to automate the second portion of the INDEX function.
=INDEX(Name:Name, MATCH(Substation@row, [District Abrev.]:[District Abrev.], 0))
-
Hi, I can't get this to work for me. I think maybe VLOOKUP would be a better bet but I can't get that to work either and I'm not sure what I'm doing wrong.
I'm trying to look up by "Substation" column between two tables to populate the name associated with the substation.
for search_value I'm clicking on the first entry in the Substation column in the table I want to populate.
for lookup_table I'm clicking "Reference Another Sheet" and selecting the Substation and Planner columns
for column_num I'm typing 4, as I'm trying to pull the names from the 4th column of the lookup table.
it's giving me #INCORRECT ARGUMENT SET and I can't figure out what I'm doing wrong.
Thanks!
-
@Andrea Katz Try replacing the 4 with a 2.
To use a more flexible INDEX/MATCH, it would look something like this...
=INDEX({Substations Planner Column}, MATCH(Substation@row, {Substations Substation Column}, 0))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!