Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pat Pat is offline
external usenet poster
 
Posts: 210
Default Count dates until complete or Cancel

(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

--
pls
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 834
Default Count dates until complete or Cancel


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

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

--

HTH

Bob

"Pat" wrote in message
...
(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

--
pls



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Count dates until complete or Cancel

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.


"Pat" wrote:

(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

--
pls

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 834
Default Count dates until complete or Cancel

Typo, should be

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


--

HTH

Bob

"Bob Phillips" wrote in message
...

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

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

--

HTH

Bob

"Pat" wrote in message
...
(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

--
pls





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Count dates until complete or Cancel

Typo, should be
=IF(B2<"",B2-A2,TODAY()-A2)



I don't see anything wrong with your previous answer
=IF(B2,B2-A2,TODAY()-A2)




"Bob Phillips" wrote:

Typo, should be

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


--

HTH

Bob

"Bob Phillips" wrote in message
...

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

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

--

HTH

Bob

"Pat" wrote in message
...
(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

--
pls





.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 834
Default Count dates until complete or Cancel

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.

--

HTH

Bob

"Teethless mama" wrote in message
...
Typo, should be
=IF(B2<"",B2-A2,TODAY()-A2)



I don't see anything wrong with your previous answer
=IF(B2,B2-A2,TODAY()-A2)




"Bob Phillips" wrote:

Typo, should be

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


--

HTH

Bob

"Bob Phillips" wrote in message
...

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

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

--

HTH

Bob

"Pat" wrote in message
...
(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

--
pls




.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Workbook_BeforeClose(Cancel As Boolean) - Cancel won't work gpmichal Setting up and Configuration of Excel 1 May 12th 09 02:33 AM
Count Dates between Dates exclude Text Ken Excel Discussion (Misc queries) 3 April 8th 09 07:59 PM
Calculate Complete Months Between Two Dates Dave C Excel Worksheet Functions 15 October 29th 08 11:01 PM
I want to count the total Number of dates between two dates How? seshu Excel Worksheet Functions 3 February 7th 08 05:41 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM


All times are GMT +1. The time now is 05:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"