I am looking for a single formula that will aggregate data for a parent group with a one to many relationship. Imagine I have sales by employee and I have an employee to group mapping table. My goal is to create a table with sales by group without mapping the group to the sales by employee table.
Sales By Employee
[TABLE="width: 200"]
<tbody>[TR]
[TD]Employee[/TD]
[TD]Sales[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Jeff[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]30
[/TD]
[/TR]
[TR]
[TD]Sarah[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]Jane[/TD]
[TD]50[/TD]
[/TR]
</tbody>[/TABLE]
Employee to Group Map
[TABLE="width: 200"]
<tbody>[TR]
[TD]Group[/TD]
[TD]Salesperson[/TD]
[/TR]
[TR]
[TD]Widgets[/TD]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Widgets[/TD]
[TD]Sarah[/TD]
[/TR]
[TR]
[TD]Widgets[/TD]
[TD]Jane[/TD]
[/TR]
[TR]
[TD]Clocks[/TD]
[TD]Jeff[/TD]
[/TR]
[TR]
[TD]Clocks[/TD]
[TD]Tom[/TD]
[/TR]
</tbody>[/TABLE]
Sales By Group
[TABLE="width: 100"]
<tbody>[TR]
[TD]Group[/TD]
[TD]Sales[/TD]
[/TR]
[TR]
[TD]Widgets[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]Clocks[/TD]
[TD]50
[/TD]
[/TR]
</tbody>[/TABLE]
Is there a single formula that I could put into the Sales column of Sales By Group that would return this result without having to add a third column to the Sales by Employee table?
I need a lookup function that would return the array of employees based on group then sum sales based on this. Unfortunately it doesn't seem possible to nest an array function within a function.
I could do this with a UDF but my employer has an extreme aversion to VBA.
Any different approaches? Many thanks. This is my first post on an excel msg board so forgive me if it is unclear.
Sales By Employee
[TABLE="width: 200"]
<tbody>[TR]
[TD]Employee[/TD]
[TD]Sales[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]Jeff[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]30
[/TD]
[/TR]
[TR]
[TD]Sarah[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]Jane[/TD]
[TD]50[/TD]
[/TR]
</tbody>[/TABLE]
Employee to Group Map
[TABLE="width: 200"]
<tbody>[TR]
[TD]Group[/TD]
[TD]Salesperson[/TD]
[/TR]
[TR]
[TD]Widgets[/TD]
[TD]Bob[/TD]
[/TR]
[TR]
[TD]Widgets[/TD]
[TD]Sarah[/TD]
[/TR]
[TR]
[TD]Widgets[/TD]
[TD]Jane[/TD]
[/TR]
[TR]
[TD]Clocks[/TD]
[TD]Jeff[/TD]
[/TR]
[TR]
[TD]Clocks[/TD]
[TD]Tom[/TD]
[/TR]
</tbody>[/TABLE]
Sales By Group
[TABLE="width: 100"]
<tbody>[TR]
[TD]Group[/TD]
[TD]Sales[/TD]
[/TR]
[TR]
[TD]Widgets[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]Clocks[/TD]
[TD]50
[/TD]
[/TR]
</tbody>[/TABLE]
Is there a single formula that I could put into the Sales column of Sales By Group that would return this result without having to add a third column to the Sales by Employee table?
I need a lookup function that would return the array of employees based on group then sum sales based on this. Unfortunately it doesn't seem possible to nest an array function within a function.
I could do this with a UDF but my employer has an extreme aversion to VBA.
Any different approaches? Many thanks. This is my first post on an excel msg board so forgive me if it is unclear.