BigBeachBananas
Active Member
- Joined
- Jul 13, 2021
- Messages
- 450
- Office Version
- 365
- Platform
- Windows
- MacOS
Hi all,
I have the following sample data. I have determined the number of usable months for my data in cell G2. Now, I need help extracting the usable months' value from columns D to E (highlighted in yellow). Essentially, it should be the last non-zero value in the Count Column (Column C), counting up to # of usable months (in this case 25). Let me know if this is unclear.
I have the following sample data. I have determined the number of usable months for my data in cell G2. Now, I need help extracting the usable months' value from columns D to E (highlighted in yellow). Essentially, it should be the last non-zero value in the Count Column (Column C), counting up to # of usable months (in this case 25). Let me know if this is unclear.
Excel question.xlsx | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | Month | Claims | Count | Rolling 12 Months Average | Values to Use | ||||
2 | 1 | $0 | 0 | Months to use | 25 | ||||
3 | 2 | $0 | 0 | ||||||
4 | 3 | $0 | 0 | ||||||
5 | 4 | $0 | 0 | ||||||
6 | 5 | $0 | 0 | ||||||
7 | 6 | $0 | 0 | ||||||
8 | 7 | $0 | 0 | ||||||
9 | 8 | $0 | 0 | ||||||
10 | 9 | $0 | 0 | ||||||
11 | 10 | $0 | 0 | ||||||
12 | 11 | $0 | 0 | ||||||
13 | 12 | $0 | 0 | #DIV/0! | |||||
14 | 13 | $0 | 0 | #DIV/0! | |||||
15 | 14 | $0 | 0 | #DIV/0! | |||||
16 | 15 | $0 | 0 | #DIV/0! | |||||
17 | 16 | $0 | 0 | #DIV/0! | |||||
18 | 17 | $0 | 0 | #DIV/0! | |||||
19 | 18 | $0 | 0 | #DIV/0! | |||||
20 | 19 | $891,543 | 1570 | $567.86 | |||||
21 | 20 | $775,318 | 1576 | $529.84 | |||||
22 | 21 | ######## | 1583 | $577.71 | |||||
23 | 22 | $997,811 | 1577 | $591.47 | |||||
24 | 23 | $999,928 | 1580 | $599.76 | |||||
25 | 24 | ######## | 1576 | $611.70 | |||||
26 | 25 | $949,805 | 1591 | $609.59 | |||||
27 | 26 | $775,797 | 1582 | $594.66 | |||||
28 | 27 | ######## | 1595 | $625.16 | |||||
29 | 28 | ######## | 1598 | $660.68 | |||||
30 | 29 | ######## | 1603 | $672.46 | |||||
31 | 30 | ######## | 1598 | $698.61 | |||||
32 | 31 | ######## | 1606 | $710.88 | |||||
33 | 32 | ######## | 1622 | $740.38 | |||||
34 | 33 | $888,167 | 1621 | $729.67 | |||||
35 | 34 | ######## | 1624 | $744.11 | |||||
36 | 35 | ######## | 1632 | $778.88 | |||||
37 | 36 | ######## | 1625 | $791.12 | |||||
38 | 37 | ######## | 1652 | $797.95 | |||||
39 | 38 | ######## | 1671 | $810.85 | |||||
40 | 39 | ######## | 1676 | $815.76 | |||||
41 | 40 | ######## | 1689 | $798.80 | |||||
42 | 41 | ######## | 1707 | $817.86 | |||||
43 | 42 | ######## | 1701 | $821.09 | |||||
44 | 43 | ######## | 1722 | $820.74 | |||||
45 | 44 | ######## | 1740 | $820.93 | |||||
46 | 45 | ######## | 1775 | $846.20 | |||||
47 | 46 | ######## | 1798 | $845.88 | |||||
48 | 47 | ######## | 1799 | $832.41 | |||||
49 | 48 | ######## | 1799 | $845.78 | |||||
50 | 49 | ######## | 2061 | $909.88 | |||||
51 | 50 | ######## | 2073 | $935.70 | |||||
52 | 51 | ######## | 2080 | $936.90 | |||||
53 | 52 | ######## | 2079 | $938.26 | |||||
54 | 53 | ######## | 2082 | $918.43 | |||||
55 | 54 | ######## | 2072 | $899.64 | |||||
56 | 55 | $0 | 0 | $914.17 | |||||
57 | 56 | $0 | 0 | $920.20 | |||||
58 | 57 | $0 | 0 | $926.24 | |||||
59 | 58 | $0 | 0 | $939.67 | |||||
60 | 59 | $0 | 0 | $947.95 | |||||
61 | 60 | $0 | 0 | $944.02 | |||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G2 | G2 | =COUNTIF(C2:C61,">0")-11 |
D13:D61 | D13 | =SUM(B2:B13)/SUM(C2:C13) |