killerstein
New Member
- Joined
- Jan 13, 2021
- Messages
- 4
- Office Version
- 2019
- Platform
- Windows
Dear users,
I am trying to do the following but have been unsuccessful therefore I seek your help;
I have vendors who buy TVs from certain Towns. The top left table displays the quantities of TVs bought by each vendor who has a record of purchase while the bottom left table displays the sourcing structure of each vendor (the proportion of TVs purchased from each town). With these data, I would like to fill the top right table, which should show how many TVs a specific town has supplied in a specific month. Thus, for a specific cell on the top right table, I would like to lookup/match the name of the town in the bottom left table, I would like to lookup the name of all the vendors with records (top left table) in the bottom left table and then multiply the respective quantities with the respective proportions and finally sum them all to find how many TVs a town supplied to all the vendors in total for a specific month.
For example, the quantities for town F (in all the months) should be vendor 5's quantities multiplied by 0.5 because vendor 5 is the only one with qty data that sources from town F and its sourcing ratio is 0.5 (50%). On the other hand, for town M it should be 0.5*(qty of vendor 2) + 0.04*(qty of vendor 5).
I am unsure what formula I should use; I tried sumproduct with lookup/match, or sumifs, but could not figure out a way.
I am trying to do the following but have been unsuccessful therefore I seek your help;
I have vendors who buy TVs from certain Towns. The top left table displays the quantities of TVs bought by each vendor who has a record of purchase while the bottom left table displays the sourcing structure of each vendor (the proportion of TVs purchased from each town). With these data, I would like to fill the top right table, which should show how many TVs a specific town has supplied in a specific month. Thus, for a specific cell on the top right table, I would like to lookup/match the name of the town in the bottom left table, I would like to lookup the name of all the vendors with records (top left table) in the bottom left table and then multiply the respective quantities with the respective proportions and finally sum them all to find how many TVs a town supplied to all the vendors in total for a specific month.
For example, the quantities for town F (in all the months) should be vendor 5's quantities multiplied by 0.5 because vendor 5 is the only one with qty data that sources from town F and its sourcing ratio is 0.5 (50%). On the other hand, for town M it should be 0.5*(qty of vendor 2) + 0.04*(qty of vendor 5).
I am unsure what formula I should use; I tried sumproduct with lookup/match, or sumifs, but could not figure out a way.