Count dates until complete or Cancel

P

Pat

(Excel 2003) Is there a way to calculate the days and then stop the counting
when you have entered a completion date and/or cancelled appears in the
"Status column?

I want the duration column to keep calculating the days until either a date
is enter into the "Completion Date" Column or the "Status" Column has
cancelled or completed in it.

Start Date Completion Date Status Duration
3/24/10 9

3/15/10 3/20/10 Cancelled 5
 
B

Bob Phillips

Does the second date automatically mean that the status is also set? If so,
you only need

=IF(B2,B2-A2,TODAY()-A2)
 
M

Mike H

Pat,

Apart from the obvious, what is the significance of 'Cancelled' to the
formula when you have a completion date in that row. It seem to me if I
understand correct that this will do what you want

=IF(B2="",TODAY()-A2,B2-A2)
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 
B

Bob Phillips

Nor do I, but I didn't mean to add that level of um sophistication for
someone who is clearly relatively new to Excel. The amended form is much
clearer in intent.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top