Hi,
Please help. Looking for a formula dynamic enough to use through out the entire year to detect consecutive non zero months. However, every consecutive 3 months block will form a cut off resetting the count to 0 again (Scenario A). The formula needs to follow the moving date. Expanding on that a second formula with the same logic but detecting every consecutive month with values greater than or equal to 3 (Scenario B). Illustrated below:
Please help. Looking for a formula dynamic enough to use through out the entire year to detect consecutive non zero months. However, every consecutive 3 months block will form a cut off resetting the count to 0 again (Scenario A). The formula needs to follow the moving date. Expanding on that a second formula with the same logic but detecting every consecutive month with values greater than or equal to 3 (Scenario B). Illustrated below:
Book1.xlsx | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | |||
1 | 13/3/2023 | |||||||||||||||
2 | ||||||||||||||||
3 | January | February | March | April | May | June | July | August | September | October | November | December | Consecutive Months Indicator | |||
4 | Scenario 1 (a) | 1 | 2 | 2 | ||||||||||||
5 | Scenario 1 (b) | 2 | 1 | 5 | 1 | 1 | ||||||||||
6 | Scenario 1 (c) | 1 | 0 | 6 | 1 | 7 | 0 | |||||||||
7 | Scenario 2 (a) | 3 | 0 | 3 | 1 | |||||||||||
8 | Scenario 2 (b) | 3 | 6 | 3 | 7 | 3 | 9 | 3 | 1 | |||||||
9 | Scenario 2 (c) | 3 | 3 | 1 | 2 | 3 | 3 | 7 | 8 | 1 | 0 | |||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A1 | A1 | =TODAY()-1 |