I am trying to extract some information out of a data series. I am first trying to count the number of positive and negative streaks and the magnitude of each move. The 2nd step will be to count the frequency of moves by their size and their date.
I have tried looking at some nested IF/AND functions on other threads but am struggling with the best path. I am happy to use helper columns, as many as needed, to keep things simple and not hog too much system resources.
The box on the right is what a summary table might look like. I will be needing both regular and % changes. I work with Climate data.
Any suggestions are appreciated. I have become a big fan of Excel 365 new functions like Filter, Xlookup, etc but haven't reached a solution yet with anything.
I have tried looking at some nested IF/AND functions on other threads but am struggling with the best path. I am happy to use helper columns, as many as needed, to keep things simple and not hog too much system resources.
The box on the right is what a summary table might look like. I will be needing both regular and % changes. I work with Climate data.
Any suggestions are appreciated. I have become a big fan of Excel 365 new functions like Filter, Xlookup, etc but haven't reached a solution yet with anything.
Climate Data.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | Date | Temp | Change | % Change | +/- | Start Date | 3/1/2021 | |||
2 | 4/16/2021 | 100 | 0 | 0.00% | 0 | End Date | 4/16/2021 | |||
3 | 4/15/2021 | 99 | -1 | -1.00% | 0 | Lookback | ||||
4 | 4/14/2021 | 98 | -1 | -1.01% | 0 | |||||
5 | 4/13/2021 | 97 | -1 | -1.02% | 0 | # of Moves > 10% | ||||
6 | 4/12/2021 | 96 | -1 | -1.03% | 0 | # of Moves > 5% | ||||
7 | 4/9/2021 | 100 | 4 | 4.17% | 1 | # of Moves < 10% | ||||
8 | 4/8/2021 | 95 | -5 | -5.00% | 0 | # of Moves < 5% | ||||
9 | 4/7/2021 | 90 | -5 | -5.26% | 0 | Shortest Move > 10% | ||||
10 | 4/6/2021 | 85 | -5 | -5.56% | 0 | |||||
11 | 4/5/2021 | 80 | -5 | -5.88% | 0 | |||||
12 | 4/2/2021 | 100 | 20 | 25.00% | 1 | |||||
13 | 4/1/2021 | 90 | -10 | -10.00% | 0 | |||||
14 | 3/31/2021 | 80 | -10 | -11.11% | 0 | |||||
15 | 3/30/2021 | 70 | -10 | -12.50% | 0 | |||||
16 | 3/29/2021 | 60 | -10 | -14.29% | 0 | |||||
17 | 3/26/2021 | 100 | 40 | 66.67% | 1 | |||||
18 | 3/25/2021 | 85 | -15 | -15.00% | 0 | |||||
19 | 3/24/2021 | 70 | -15 | -17.65% | 0 | |||||
20 | 3/23/2021 | 55 | -15 | -21.43% | 0 | |||||
21 | 3/22/2021 | 40 | -15 | -27.27% | 0 | |||||
22 | 3/19/2021 | 100 | 60 | 150.00% | 1 | |||||
23 | 3/18/2021 | 80 | -20 | -20.00% | 0 | |||||
24 | 3/17/2021 | 60 | -20 | -25.00% | 0 | |||||
25 | 3/16/2021 | 40 | -20 | -33.33% | 0 | |||||
26 | 3/15/2021 | 20 | -20 | -50.00% | 0 | |||||
27 | 3/12/2021 | 30 | 10 | 50.00% | 1 | |||||
28 | 3/11/2021 | 40 | 10 | 33.33% | 1 | |||||
29 | 3/10/2021 | 50 | 10 | 25.00% | 1 | |||||
30 | 3/9/2021 | 60 | 10 | 20.00% | 1 | |||||
31 | 3/8/2021 | 70 | 10 | 16.67% | 1 | |||||
32 | 3/5/2021 | 90 | 20 | 28.57% | 1 | |||||
33 | 3/4/2021 | 100 | 10 | 11.11% | 1 | |||||
34 | 3/3/2021 | 50 | -50 | -50.00% | 0 | |||||
35 | 3/2/2021 | 100 | 50 | 100.00% | 1 | |||||
36 | 3/1/2021 | 100 | 0 | 0.00% | 0 | |||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E2:E36 | E2 | =IF(C2>0,"1","0") |
H1 | H1 | =MIN(A2:A36) |
H2 | H2 | =MAX(A2) |
C3:C36 | C3 | =B3-B2 |
D3:D36 | D3 | =(B3-B2)/B2 |
B3:B6 | B3 | =B2-1 |
B8:B11 | B8 | =B7-5 |
B13:B16 | B13 | =B12-10 |
B18:B21 | B18 | =B17-15 |
B23:B26 | B23 | =B22-20 |
B27:B31 | B27 | =B26+10 |