DATA VALIDATION with INDEX MATCH array, possible?

KDavidP1987

Board Regular
Joined
Mar 6, 2018
Messages
51
Hello all,

Context:
I am working on a spreadsheet for our PMO to automatically enter data from a CSV file into a large table of agent working hours, then calculate the project's budget in a Pivot Table for their reports. They have been very thrilled with the results, however, there is one issue that we came across in design that I haven't been able to solve.

The data entry section moves the information entered over to a calculations table which matches the agent's information up with the team they work for (from a team information table). This is important for separating out team calculations within the pivot table. However, the problem is that a select few agents perform work for multiple teams, depending on what they're needed for, and the PMO needs this to be reflected in the budget.

Question:
I've added a field to the data entry table, which allows the PM to select the team agents work for from a drop-down list, derived from the team table. However, I would like for it to only show the teams the agent is associated within the drop-down list (data validation), so that they can't select an invalid team for the agents, and so that the list will be shorter.

Is it possible, through formula or VBA, to set up a variable array that the data validation list uses, based on the agent's name in column D, so that only the teams they are assigned to will show up in the drop-down list next to their name?

Table5: (Formatted as a table, for data entry and pivot table purposes)

EmailTime WorkedMatched NameTeam
John.Smith@Contoso.com120John SmithRPG
John.Smith@Contoso.com300John SmithJava

<tbody>
</tbody>

^ So I would like for fields in the column named Team to have a data validation drop-down list in them which reflects the teams (from table 3, below) that John Smith is listed for (RPG and Java). ****

Table3: (formatted as a table, for data entry and pivot table purposes)
TeamAgentEmailRate
RPGJohn SmithJohn.Smith@Contoso.com$60.00
JavaJohn SmithJohn.Smith@Contoso.com$60.00
OperationsJane DoeJane.Doe@Contoso.com$60.00
SAPJill SmithJill.Smith@contoso.com$60.00

<tbody>
</tbody>

Thank you, in advance!

Sincerely,
Kristopher
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,213,494
Messages
6,113,981
Members
448,538
Latest member
alex78

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