blackmajik072
New Member
- Joined
- Jul 18, 2018
- Messages
- 3
Hi folks,
I'm trying to figure out a formula which will do a lookup of a region to find cities to sum sales in an associated table. I can manually do this by hard coding SUMIFS statements. However this is not scalable and will be too difficult to maintain before long. Any ideas on how I might achieve this? Many thanks.
Sales by Region
<tbody>
</tbody>
Region/City Lookup Table
<tbody>
</tbody>
Sales by City
<tbody>
</tbody>
I'm trying to figure out a formula which will do a lookup of a region to find cities to sum sales in an associated table. I can manually do this by hard coding SUMIFS statements. However this is not scalable and will be too difficult to maintain before long. Any ideas on how I might achieve this? Many thanks.
Sales by Region
Region | Jan | Feb | Mar |
East | 25 | 97 | 34 |
West | 12 | 20 | 22 |
North | 34 | 13 | 18 |
South | 20 | 47 | 51 |
Total | 91 | 177 | 125 |
<tbody>
</tbody>
Region/City Lookup Table
Region | City |
East | Sydney |
North | Brisbane |
South | Hobart |
East | Newcastle |
West | Perth |
South | Melbourne |
North | Gold Coast |
West | Broome |
<tbody>
</tbody>
Sales by City
City | Jan | Feb | Mar |
Broome | 10 | 15 | 14 |
Melbourne | 20 | 47 | 51 |
Gold Coast | 34 | 13 | 18 |
Sydney | 11 | 43 | 12 |
Newcastle | 14 | 54 | 32 |
Perth | 2 | 5 | 8 |
<tbody>
</tbody>