rwmill9716
Active Member
- Joined
- May 20, 2006
- Messages
- 493
- Office Version
- 2013
- Platform
- Windows
I have a table that extends several thousand rows. I've included an image showing what I'm trying to do. Cols A and D are trade entry and exit dates; Col B is a unique symbol for a sequence of trades; Col C marks the beginning of the trade with an "*". I need a formula for Col E which calculates the number of days in the trade. Using A_2 as an example, the Days in the Trade would be the Max date for that symbol in Col D minus the Min date for that symbol in Col B; here, that's 8/20/24 - 2/1/24 or 201 days. Note, in the real spread sheet, the symbols will be mixed over a wide range of rows; I'm only interested in presenting the Days in Trade for rows housing an "*".