Dear All,
I have derived a formula which looks at current month dates within a Scenario and then ascertains which contracts applies and then calculates the revenue.
It works, but wondering if there more streamlined approach.
Cell C66
=CHOOSE(SUMPRODUCT(--(C$65>=$B$31:$B$34),--(C$65<=$C$31:$C$34),$A$31:$A$34),SUMPRODUCT(--(C42>Contract_1),(C42-Contract_1),CRates_1),SUMPRODUCT(--(C42>Contract_2),(C42-Contract_2),CRates_2),SUMPRODUCT(--(C42>Contract_3),(C42-Contract_3),CRates_3),SUMPRODUCT(--(C42>Contract_4),(C42-Contract_4),CRates_4))
Item in orange gets the correct contract 1 rates and then Choose selects a formula. There are four contracts and using choose there are too many Sumproducts which will down model calculation.
Is there a better way?
Sheet1
<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 119px;"><col style="width: 119px;"><col style="width: 73px;"><col style="width: 73px;"><col style="width: 162px;"><col style="width: 78px;"><col style="width: 78px;"></colgroup><tbody>
</tbody>
<tbody>
</tbody>
Sheet1
<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 119px;"><col style="width: 119px;"><col style="width: 73px;"><col style="width: 73px;"><col style="width: 162px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 89px;"><col style="width: 89px;"><col style="width: 89px;"><col style="width: 89px;"><col style="width: 89px;"></colgroup><tbody>
</tbody>
Sheet1
<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 119px;"><col style="width: 119px;"><col style="width: 73px;"><col style="width: 73px;"><col style="width: 162px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 89px;"><col style="width: 89px;"><col style="width: 89px;"><col style="width: 89px;"><col style="width: 89px;"></colgroup><tbody>
</tbody>
<tbody>
</tbody>
<tbody>
</tbody>
Your help would be appreciated
Kind Regards
Biz
I have derived a formula which looks at current month dates within a Scenario and then ascertains which contracts applies and then calculates the revenue.
It works, but wondering if there more streamlined approach.
Cell C66
=CHOOSE(SUMPRODUCT(--(C$65>=$B$31:$B$34),--(C$65<=$C$31:$C$34),$A$31:$A$34),SUMPRODUCT(--(C42>Contract_1),(C42-Contract_1),CRates_1),SUMPRODUCT(--(C42>Contract_2),(C42-Contract_2),CRates_2),SUMPRODUCT(--(C42>Contract_3),(C42-Contract_3),CRates_3),SUMPRODUCT(--(C42>Contract_4),(C42-Contract_4),CRates_4))
Item in orange gets the correct contract 1 rates and then Choose selects a formula. There are four contracts and using choose there are too many Sumproducts which will down model calculation.
Is there a better way?
Sheet1
A | B | C | D | E | F | G | |
1 | |||||||
2 | Contract 1 | ||||||
3 | Transaction No. is Greater Than: | But Less Than or Equal to: | Revenue Rate | Differential rate | |||
4 | - | 1,000,000 | $0.10 | $0.10 | |||
5 | 1,000,000 | 5,000,000 | $0.08 | ($0.02) | |||
6 | 5,000,000 | $0.05 | ($0.03) | ||||
7 | |||||||
8 | Effective Date | ||||||
9 | Contract 2 | ||||||
10 | Transaction No. is Greater Than: | But Less Than or Equal to: | Revenue Rate | Differential rate | |||
11 | - | 1,000,000 | $0.03 | $0.03 | |||
12 | |||||||
13 | |||||||
14 | Contract 3 | ||||||
15 | Transaction No. is Greater Than: | But Less Than or Equal to: | Revenue Rate | Differential rate | |||
16 | - | 1,000,000 | $0.10 | $0.10 | |||
17 | 1,000,000 | 5,000,000 | $0.08 | ($0.02) | |||
18 | 5,000,000 | $0.04 | ($0.04) | ||||
19 | |||||||
20 | |||||||
21 | Contract 4 | ||||||
22 | Transaction No. is Greater Than: | But Less Than or Equal to: | Revenue Rate | Differential rate | |||
23 | - | 1,000,000 | $0.08 | $0.08 | |||
24 | 1,000,000 | 5,000,000 | $0.06 | ($0.02) | |||
25 | 5,000,000 | $0.04 | ($0.02) |
<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 119px;"><col style="width: 119px;"><col style="width: 73px;"><col style="width: 73px;"><col style="width: 162px;"><col style="width: 78px;"><col style="width: 78px;"></colgroup><tbody>
</tbody>
Spreadsheet Formulas | ||||||||||||||||||||||||||||||||||
<tbody> </tbody> |
<tbody>
</tbody>
Sheet1
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |
29 | Scenario 1 | Scenario 2 | Scenario 3 | Scenario 4 | Scenario 5 | Scenario 6 | Scenario 7 | ||||||||
30 | Contract Type | Start Date | End date | Start Date | End date | Start Date | End date | Start Date | End date | Start Date | End date | Start Date | End date | Start Date | End date |
31 | Contract 1 | 1/01/2015 | 31/12/2016 | 1/01/2015 | 31/12/2016 | 1/01/2015 | 31/12/2016 | 1/01/2015 | 31/12/2016 | ||||||
32 | Contract 2 | 1/01/2017 | 31/12/2020 | 1/01/2017 | 31/12/2020 | 1/01/2017 | 31/12/2020 | 1/01/2017 | 31/12/2020 | ||||||
33 | Contract 3 | 1/01/2021 | 31/12/2024 | 1/01/2021 | 31/12/2024 | 1/01/2021 | 31/12/2024 | 1/01/2021 | 31/12/2024 | 1/01/2015 | 31/12/2020 | 1/01/2015 | 31/12/2020 | ||
34 | Contract 4 | 1/01/2021 | 31/12/2024 | 1/01/2021 | 31/12/2024 | 1/01/2015 | 31/12/2024 |
<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 119px;"><col style="width: 119px;"><col style="width: 73px;"><col style="width: 73px;"><col style="width: 162px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 89px;"><col style="width: 89px;"><col style="width: 89px;"><col style="width: 89px;"><col style="width: 89px;"></colgroup><tbody>
</tbody>
Sheet1
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |
40 | Total Transactions | ||||||||||||||
41 | Start Date | Jan-15 | Feb-15 | Mar-15 | Apr-15 | May-15 | Jun-15 | Jul-15 | Aug-15 | Sep-15 | Oct-15 | Nov-15 | Dec-15 | Jan-16 | |
42 | Person1 | 01/04/2015 | - | - | - | 939,789 | 1,225,385 | 1,596,110 | 2,076,251 | 2,696,307 | 3,494,120 | 4,515,942 | 5,817,148 | 7,462,254 | 9,523,749 |
43 | Person2 | 01/04/2015 | - | - | - | 1,273,167 | 1,660,077 | 2,162,314 | 2,812,772 | 3,652,787 | 4,733,618 | 6,117,925 | 7,880,714 | 10,109,398 | 12,902,185 |
44 | Person3 | 01/05/2015 | - | - | - | - | 343,044 | 447,291 | 582,613 | 757,871 | 984,201 | 1,275,428 | 1,648,415 | 2,123,378 | 2,723,868 |
45 | Person4 | 01/05/2015 | - | - | - | - | 379,899 | 495,340 | 645,198 | 839,291 | 1,089,932 | 1,412,445 | 1,825,493 | 2,351,492 | 3,016,493 |
46 | Person5 | 01/05/2015 | - | - | - | - | 733,455 | 956,348 | 1,245,675 | 1,620,393 | 2,104,310 | 2,726,964 | 3,524,438 | 4,539,956 | 5,823,869 |
47 | Person6 | 01/05/2015 | - | - | - | - | 969,444 | 1,264,052 | 1,646,475 | 2,141,763 | 2,781,375 | 3,604,362 | 4,658,435 | 6,000,694 | 7,697,704 |
48 | Person7 | 01/06/2015 | - | - | - | - | - | 82,233 | 107,223 | 139,657 | 181,673 | 235,924 | 305,733 | 395,146 | 508,999 |
49 | Person8 | 01/07/2015 | - | - | - | - | - | - | 161,244 | 210,240 | 273,848 | 356,232 | 462,615 | 599,495 | 774,809 |
50 | Person9 | 01/07/2015 | - | - | - | - | - | - | 316,134 | 412,206 | 536,922 | 698,428 | 907,013 | 1,175,394 | 1,519,121 |
51 | Person10 | 01/08/2015 | - | - | - | - | - | - | - | 181,044 | 236,061 | 307,477 | 399,967 | 519,420 | 673,108 |
52 | Person11 | 01/12/2015 | - | - | - | - | - | - | - | - | - | - | - | 31,833 | 41,507 |
53 | Person12 | 01/11/2015 | - | - | - | - | - | - | - | - | - | - | 52,101 | 67,942 | 88,490 |
54 | Person13 | 01/09/2015 | - | - | - | - | - | - | - | - | 277,488 | 361,811 | 471,268 | 613,038 | 796,119 |
55 | Person14 | 01/10/2015 | - | - | - | - | - | - | - | - | - | 123,912 | 161,577 | 210,451 | 273,768 |
56 | Person15 | 01/09/2026 | - | - | - | - | - | - | - | - | - | - | - | - | - |
57 | Person16 | 01/10/2026 | - | - | - | - | - | - | - | - | - | - | - | - | - |
58 | Person17 | 01/03/2015 | - | - | 4,044,978 | 5,274,220 | 6,869,877 | 8,936,458 | 11,605,248 | 15,039,152 | 19,437,231 | 25,037,794 | 32,118,531 | 40,991,475 | 51,990,000 |
59 | Person18 | 01/03/2015 | - | - | 535,545 | 698,296 | 909,559 | 1,183,168 | 1,536,516 | 1,991,150 | 2,573,453 | 3,314,954 | 4,252,433 | 5,427,191 | 6,883,373 |
60 | - | - | 4,580,523 | 8,185,472 | 13,090,741 | 17,123,313 | 22,735,348 | 29,681,861 | 38,704,233 | 50,089,600 | 64,485,880 | 82,618,558 | 105,237,163 |
<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 119px;"><col style="width: 119px;"><col style="width: 73px;"><col style="width: 73px;"><col style="width: 162px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 78px;"><col style="width: 89px;"><col style="width: 89px;"><col style="width: 89px;"><col style="width: 89px;"><col style="width: 89px;"></colgroup><tbody>
</tbody>
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |
64 | Revenue | ||||||||||||||
65 | Sceanrio 1 | Jan-15 | Feb-15 | Mar-15 | Apr-15 | May-15 | Jun-15 | Jul-15 | Aug-15 | Sep-15 | Oct-15 | Nov-15 | Dec-15 | Jan-16 | |
66 | Person1 | $0.00 | $0.00 | $0.00 | $93,978.90 | $118,030.84 | $147,688.79 | $186,100.09 | $235,704.54 | $299,529.62 | $381,275.39 | $460,857.39 | $543,112.68 | $646,187.43 | |
67 | Person2 | $0.00 | $0.00 | $0.00 | $121,853.36 | $152,806.19 | $192,985.11 | $245,021.79 | $312,222.95 | $398,689.42 | $475,896.26 | $564,035.71 | $675,469.89 | $815,109.25 | |
68 | Person3 | $0.00 | $0.00 | $0.00 | $0.00 | $34,304.40 | $44,729.07 | $58,261.28 | $75,787.12 | $98,420.13 | $122,034.23 | $151,873.17 | $189,870.22 | $237,909.48 | |
69 | Person4 | $0.00 | $0.00 | $0.00 | $0.00 | $37,989.90 | $49,534.03 | $64,519.78 | $83,929.11 | $107,194.57 | $132,995.64 | $166,039.43 | $208,119.35 | $261,319.43 | |
70 | Person5 | $0.00 | $0.00 | $0.00 | $0.00 | $73,345.50 | $95,634.77 | $119,653.98 | $149,631.40 | $188,344.84 | $238,157.09 | $301,955.06 | $383,196.49 | $461,193.44 | |
71 | Person6 | $0.00 | $0.00 | $0.00 | $0.00 | $96,944.40 | $121,124.20 | $151,717.97 | $191,341.05 | $242,509.99 | $308,348.98 | $392,674.79 | $470,034.70 | $554,885.18 | |
72 | Person7 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $8,223.30 | $10,722.29 | $13,965.73 | $18,167.29 | $23,592.44 | $30,573.26 | $39,514.65 | $50,899.93 | |
73 | Person8 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $16,124.40 | $21,024.02 | $27,384.81 | $35,623.24 | $46,261.49 | $59,949.49 | $77,480.90 | |
74 | Person9 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $31,613.40 | $41,220.64 | $53,692.17 | $69,842.79 | $90,701.34 | $114,031.52 | $141,529.69 | |
75 | Person10 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $18,104.40 | $23,606.09 | $30,747.74 | $39,996.72 | $51,942.05 | $67,310.78 | |
76 | Person11 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $3,183.30 | $4,150.74 | |
77 | Person12 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $5,210.10 | $6,794.21 | $8,849.03 | |
78 | Person13 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $27,748.80 | $36,181.10 | $47,126.75 | $61,303.81 | $79,611.92 | |
79 | Person14 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $12,391.20 | $16,157.66 | $21,045.14 | $27,376.78 | |
80 | Person15 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | |
81 | Person16 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | |
82 | Person17 | $0.00 | $0.00 | $343,598.24 | $433,711.00 | $513,493.87 | $616,822.88 | $750,262.40 | $921,957.60 | $1,141,861.57 | $1,421,889.70 | $1,775,926.55 | $2,219,573.77 | $2,769,500.02 | |
83 | Person18 | $0.00 | $0.00 | $53,554.50 | $69,829.61 | $90,955.88 | $114,653.41 | $142,921.26 | $179,292.00 | $225,876.24 | $285,196.32 | $360,194.67 | $441,359.55 | $514,168.68 | |
84 | - | - | 397,153 | 719,373 | 1,117,871 | 1,391,396 | 1,776,919 | 2,244,181 | 2,853,026 | 3,574,172 | 4,449,584 | 5,488,501 | 6,717,483 |
<tbody>
</tbody>
Spreadsheet Formulas | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<tbody> </tbody> |
<tbody>
</tbody>
Your help would be appreciated
Kind Regards
Biz