A | B | C | D | E |
---|---|---|---|---|
Open Date | Expiration Date | Days to Expiration | # Days | Close Date |
10/10/22 | 10/21/22 | =MAX(0,B2-TODAY()) | 10/13/22 | |
11/17/22 | 12/16/22 | =MAX(0,B3-TODAY()) |
This chart represents contracts with expiration dates. I would like some help with a formula for column D. The 10/21/22 contract was closed before the expiration date, and the 12/16/22 contract is still open. It may be closed any time prior to or on the date of expiration. Column C is counting down the days to expiration until it reaches 0. What I would like to do is count up the days in column D that the contract is open from the open date until today as long as it remains open, and then stop counting once the cell in column E is filled in.
I hope that is clear, and thanks in advance for your help!