Greetings,
Let's say I'm tracking my workouts at work. Suppose I had a chunk of text in a cell that looked like this:
8/30. Ran a mile around the building. 9/2. Treadmill. 9/19: Walked around the track. 9/20: Skipped jump rope in a fitness class.
The number of dates can vary within cells. I always use ?/?? format, but I can follow the date with a space, colon, or period.
I want to find the greatest amount of business days I went without working out at the company gym. How do I do this?
I can do
=SEARCH("?/??",A1,1) for the first date,
=SEARCH("?/??",A1,SEARCH("?/??",A1,1)+1) for the second date,
I could then use MID to capture the dates, DATE to turn them into dates with this calendar year, and NETWORKDAYS to get the difference. But how do I search for the *greatest* number of days?
I'd be grateful for any problem-solving assistance you can give me.
Thanks,
Rachel
Let's say I'm tracking my workouts at work. Suppose I had a chunk of text in a cell that looked like this:
8/30. Ran a mile around the building. 9/2. Treadmill. 9/19: Walked around the track. 9/20: Skipped jump rope in a fitness class.
The number of dates can vary within cells. I always use ?/?? format, but I can follow the date with a space, colon, or period.
I want to find the greatest amount of business days I went without working out at the company gym. How do I do this?
I can do
=SEARCH("?/??",A1,1) for the first date,
=SEARCH("?/??",A1,SEARCH("?/??",A1,1)+1) for the second date,
I could then use MID to capture the dates, DATE to turn them into dates with this calendar year, and NETWORKDAYS to get the difference. But how do I search for the *greatest* number of days?
I'd be grateful for any problem-solving assistance you can give me.
Thanks,
Rachel
Last edited: