A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Count Days until Completion



 
 
Thread Tools Display Modes
  #1  
Old April 5th, 2010, 02:21 PM posted to microsoft.public.excel.newusers
Pat
external usenet poster
 
Posts: 677
Default Count Days until Completion

Is there a way to count days (with a date enter in Start Column) until
"Completed" or "Cancel" is entered in my Status Column?

Right now, it is calculating on the Start and Completion Date. If the
completion date is blank - I receive wrong date in the duration column.

Start Date: 4/1/10
Completion Date: 4/5/10
Status: Completed
Duration: 4


--
pls
Ads
  #2  
Old April 5th, 2010, 02:36 PM posted to microsoft.public.excel.newusers
Bernard Liengme
external usenet poster
 
Posts: 516
Default Count Days until Completion

Let's say your stuff is in A1:B4 with labels in A;
In B4 to compute duration we could use any of these
A) =IF(B20, (B2-B1),"") or=IF(B2, (B2-B1),"") since a positive value in
B2 will be treated as TRUE
B) =IF(OR(B3="Completed",B3="Cancel"), B2-B1, "")
C) =IF(LEFT(B3)="C",B2-B1,"")
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Pat" wrote in message
...
Is there a way to count days (with a date enter in Start Column) until
"Completed" or "Cancel" is entered in my Status Column?

Right now, it is calculating on the Start and Completion Date. If the
completion date is blank - I receive wrong date in the duration column.

Start Date: 4/1/10
Completion Date: 4/5/10
Status: Completed
Duration: 4


--
pls


  #3  
Old April 5th, 2010, 02:45 PM posted to microsoft.public.excel.newusers
Steve[_73_]
external usenet poster
 
Posts: 9
Default Count Days until Completion

Pat penned:
Is there a way to count days (with a date enter in Start Column) until
"Completed" or "Cancel" is entered in my Status Column?


Right now, it is calculating on the Start and Completion Date. If the
completion date is blank - I receive wrong date in the duration column.


Start Date: 4/1/10
Completion Date: 4/5/10
Status: Completed
Duration: 4



If the start date is in A1 the completed Dated in B1 in C1 put

=IF(OR(B1="",B1="cancel"),"",B1-A1)

and format C1 as a number

--
Steve

I think age is a very high price to pay for maturity.
- Tom Stoppard
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:53 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2018 OfficeFrustration.
The comments are property of their posters.