Dear All,
I'm trying to create a formula that calculates PTD using Year and Month Numbers.
In Column H, PTD calculation and Colum I Should Be the solution.
Please note I can't create helper columns.
Your help would be greatly appreciated.
Kind Regards
Biz
I'm trying to create a formula that calculates PTD using Year and Month Numbers.
In Column H, PTD calculation and Colum I Should Be the solution.
Please note I can't create helper columns.
Sumifs Between YearNo and Month No.xlsx | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | Year | Month | Amount | Month | Year | PTD | Should Be | Match | ||||
2 | 2020 | 1 | 81,430 | 2022 | 7 | 1,251,978 | 1,710,248 | FALSE | ||||
3 | 2020 | 2 | 92,130 | 2020 | 8 | 606,790 | 606,790 | TRUE | ||||
4 | 2020 | 3 | 99,310 | 2020 | 4 | 366,650 | 366,650 | TRUE | ||||
5 | 2020 | 4 | 93,780 | 2022 | 5 | 962,647 | 1,623,813 | FALSE | ||||
6 | 2020 | 5 | 97,110 | |||||||||
7 | 2020 | 6 | 54,598 | |||||||||
8 | 2020 | 7 | 81,788 | |||||||||
9 | 2020 | 8 | 6,644 | |||||||||
10 | 2020 | 9 | 572 | |||||||||
11 | 2020 | 10 | 29,207 | |||||||||
12 | 2020 | 11 | 67,210 | |||||||||
13 | 2020 | 12 | 99,848 | |||||||||
14 | 2021 | 1 | 44,225 | |||||||||
15 | 2021 | 2 | 9,513 | |||||||||
16 | 2021 | 3 | 69,688 | |||||||||
17 | 2021 | 4 | 25,346 | |||||||||
18 | 2021 | 5 | 87,405 | |||||||||
19 | 2021 | 6 | 65,616 | |||||||||
20 | 2021 | 7 | 894 | |||||||||
21 | 2021 | 8 | 28,271 | |||||||||
22 | 2021 | 9 | 95,501 | |||||||||
23 | 2021 | 10 | 42,431 | |||||||||
24 | 2021 | 11 | 25,765 | |||||||||
25 | 2021 | 12 | 62,821 | |||||||||
26 | 2022 | 1 | 83,334 | |||||||||
27 | 2022 | 2 | 51,922 | |||||||||
28 | 2022 | 3 | 5,627 | |||||||||
29 | 2022 | 4 | 25,320 | |||||||||
30 | 2022 | 5 | 96,507 | |||||||||
31 | 2022 | 6 | 79,674 | |||||||||
32 | 2022 | 7 | 6,761 | |||||||||
33 | 2022 | 8 | 1,000 | |||||||||
34 | 2022 | 9 | ||||||||||
35 | 2022 | 10 | ||||||||||
36 | 2022 | 11 | ||||||||||
37 | 2022 | 12 | ||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H2:H5 | H2 | =SUMIFS($C$2:$C$37,$A$2:$A$37,"<=" &$F2,$B$2:$B$37,"<="&G2) |
J2:J5 | J2 | =I2=H2 |
Your help would be greatly appreciated.
Kind Regards
Biz