Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default calculating # of days

i have a spreadsheet that has a starting date, completion date, and the 3rd
column is elapsed # of days using formula =NETWORKDAYS(A2,B2) in column 3.
Problem is if I don't have any date entered in completion date yet i get a
negative # in column 3 example -28491 or -28473 where this should be zero
until i enter the completion date.

thx 2 all

char

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 199
Default calculating # of days

"Charlene Lee" wrote in message
...
i have a spreadsheet that has a starting date, completion date, and the 3rd
column is elapsed # of days using formula =NETWORKDAYS(A2,B2) in column 3.
Problem is if I don't have any date entered in completion date yet i get a
negative # in column 3 example -28491 or -28473 where this should be zero
until i enter the completion date.

thx 2 all

char


Changing the formula to =IF(ISBLANK(B2),0,NETWORKDAYS(A2,B2)) should sort
it. You could also swap the 0 for "" if you want C2 to be blank?

V

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
Conditional Formatting Dates calculating 10 days and 30 days from a certain date Sioux[_2_] Excel Worksheet Functions 2 October 11th 07 02:04 PM
Days per month for calculating storage days Bart Excel Worksheet Functions 3 January 31st 07 06:40 PM
calculating days Jason - MR Excel Discussion (Misc queries) 3 January 26th 06 07:23 PM
Calculating recurring date in following month, calculating # days in that period Walterius Excel Worksheet Functions 6 June 4th 05 11:21 PM
Calculating days Wildturkey9521 Excel Worksheet Functions 1 November 30th 04 12:27 AM


All times are GMT +1. The time now is 09:34 PM.

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

About Us

"It's about Microsoft Excel"