Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / September 2007

Tip: Looking for answers? Try searching our database.

Date subtraction -How to not show negative when 2nd date not entered

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Edward - 27 Sep 2007 13:52 GMT
Hi, I have a section of a worksheet that just needs to show working days
between two dates.
For example, an order was entered on 9/2/07 and complete on 9/15/07

The formula    =NETWORKDAYS(A1, A9) works perfectly except that until the
"completed date" ise filled in, a negative number appears.

Is there a way to have that remain blank until both dates have been entered?

Thanks!
Pranav Vaidya - 27 Sep 2007 14:06 GMT
Hi Edward,

change your formula as
=IF(A9="","",NETWORKDAYS(A1, A9))

Signature

Pranav Vaidya
VBA Developer
PN, MH-India
If you think my answer is useful, please rate this post as an ANSWER!!

> Hi, I have a section of a worksheet that just needs to show working days
> between two dates.
[quoted text clipped - 6 lines]
>
> Thanks!
David Biddulph - 27 Sep 2007 15:03 GMT
=IF(COUNT(A1,A9)=2,NETWORKDAYS(A1, A9),"")
Signature

David Biddulph

> Hi, I have a section of a worksheet that just needs to show working days
> between two dates.
[quoted text clipped - 7 lines]
>
> Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.