I have a spreadsheet with two tables
Table 1 holds the main data and could be thousands of lines long
Table 2 will Distribute the "(unassigned)" items proportionally to the desired areas
TABLE 1
TABLE 2
So in this example for Widget 1 I want to distribute the total value (1,000) to Areas "North" and "West" (note: these areas are just examples, there could be 2 areas or 100 areas)
The formula I am looking for is for column D to come up with the appropriate distributed values based on areas that are not designated as "Excluded" in column C
Table 1 holds the main data and could be thousands of lines long
- This is the table where the bulk data is held
- Most data will have an "Area" assigned to it
- There will be a few items that the area = "(unassigned)"
Table 2 will Distribute the "(unassigned)" items proportionally to the desired areas
- Areas designated with "Exclude" will not have the values distributed
TABLE 1
A | B | C | |
1 | Area | Section | Value |
2 | (unassigned) | Widget 1 | 1000 |
3 | (unassigned) | Widget 2 | 2000 |
4 | (unassigned) | Widget 3 | 3000 |
5 | North | Section 1 | 100 |
6 | South | Section 2 | 200 |
7 | East | Section 3 | 300 |
8 | West | Section 4 | 400 |
9 | North | Section 5 | 500 |
10 | South | Section 1 | 1000 |
11 | East | Section 2 | 2000 |
12 | North | Section 3 | 3000 |
13 | North | Section 4 | 4000 |
14 | West | Section 5 | 5000 |
15 | West | Section 1 | 10000 |
16 | East | Section 2 | 11000 |
17 | South | Section 3 | 12000 |
18 | East | Section 4 | 13000 |
19 | North | Section 5 | 14000 |
TABLE 2
A | B | C | D | |
1 | Items | Area | Distribute | Value |
2 | Widget 1 | North | 583.78 | |
3 | Widget 1 | South | Exclude | |
4 | Widget 1 | East | Exclude | |
5 | Widget 1 | West | 416.22 | |
6 | ||||
7 | Widget 2 | North | Exclude | |
8 | Widget 2 | South | 480.87 | |
9 | Widget 2 | East | 958.11 | |
10 | Widget 2 | West | 561.02 | |
11 | ||||
12 | Widget 3 | North | Exclude | |
13 | Widget 3 | South | Exclude | |
14 | Widget 3 | East | 3,000.00 | |
15 | Widget 3 | West | Exclude |
So in this example for Widget 1 I want to distribute the total value (1,000) to Areas "North" and "West" (note: these areas are just examples, there could be 2 areas or 100 areas)
The formula I am looking for is for column D to come up with the appropriate distributed values based on areas that are not designated as "Excluded" in column C
- So the formula for D2 would be (North Value (21,600) / ((North (21,600)+West(15,400))))*Widget 1 value (1,000) = 583.78