Noxqss38242
Board Regular
- Joined
- Sep 15, 2017
- Messages
- 225
- Office Version
- 2016
I'm trying to find days elapsed based on dates but the dates are not chronological.
I tried putting in a helper column by using "rank" function.
Then tried to say if rank is greater than 1, index/match to pull the date and subtract current rank from previous rank's date but it errors out....
I tried putting in a helper column by using "rank" function.
Then tried to say if rank is greater than 1, index/match to pull the date and subtract current rank from previous rank's date but it errors out....
Qualifications.xlsx | |||||
---|---|---|---|---|---|
C | D | E | |||
31 | 7/12/2023 | 1 | |||
32 | |||||
33 | 4/20/2022 | 4 | #VALUE! | ||
34 | |||||
35 | 2/12/2023 | 3 | |||
36 | |||||
37 | 1/8/2018 | 7 | |||
38 | |||||
39 | 2/20/2022 | 5 | |||
40 | |||||
41 | 1/20/2022 | 6 | |||
42 | |||||
43 | 7/10/2023 | 2 | |||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D31,D43,D41,D39,D37,D35,D33 | D31 | =IF(ISBLANK(C31),"",RANK(C31,($C$31:$C$72),0)) |
E31,E33 | E31 | =IF(D31>1,INDEX($C$31:$C$72,MATCH(D31,$D$31:$D$72,0)-INDEX($C$31:$C$72,MATCH(D31-1,$D$31:$D$72,0))),"") |
E40 | E40 | =IF(ISBLANK(C40),"",(ABS(C40-C38))) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
A31:AF72 | Expression | =MOD(ROW(),2)=0 | text | NO |