Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 125
Default networkday - datedif

Hi

In Cell A1 i have 4/4/08
In cell B1 i have 4/4/08

I have tried networkdays(a1,b1) but this gives result as 1. I require result
as 0. when cell B1 reads 5/4/08, will require result 1
Datedif does give the required result, but does not exclude weekends

any ideas/direction

all help appriciated

Brian

--
Message posted via http://www.officekb.com

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4,624
Default networkday - datedif

One way:

=NETWORKDAYS(A1, B1) - 1


In article <825feba2f62fa@uwe, "BNT1 via OfficeKB.com" <u19326@uwe
wrote:

Hi

In Cell A1 i have 4/4/08
In cell B1 i have 4/4/08

I have tried networkdays(a1,b1) but this gives result as 1. I require result
as 0. when cell B1 reads 5/4/08, will require result 1
Datedif does give the required result, but does not exclude weekends

any ideas/direction

all help appriciated

Brian

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4,624
Default networkday - datedif

Disregard - I misread your dates.

Your example seems a bit ambiguous - you want to "exclude weekends", but
if a weekend date is entered (e.g., 5/4/08), you want it to count?

Perhaps

=NETWORKDAYS(A1,B1)-(WEEKDAY(B1,2)<6)



In article ,
JE McGimpsey wrote:

One way:

=NETWORKDAYS(A1, B1) - 1


In article <825feba2f62fa@uwe, "BNT1 via OfficeKB.com" <u19326@uwe
wrote:

Hi

In Cell A1 i have 4/4/08
In cell B1 i have 4/4/08

I have tried networkdays(a1,b1) but this gives result as 1. I require
result
as 0. when cell B1 reads 5/4/08, will require result 1
Datedif does give the required result, but does not exclude weekends

any ideas/direction

all help appriciated

Brian

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 202
Default networkday - datedif

=IF(B1=A1,0,NETWORKDAYS(A1,B1))

"BNT1 via OfficeKB.com" wrote:

Hi

In Cell A1 i have 4/4/08
In cell B1 i have 4/4/08

I have tried networkdays(a1,b1) but this gives result as 1. I require result
as 0. when cell B1 reads 5/4/08, will require result 1
Datedif does give the required result, but does not exclude weekends

any ideas/direction

all help appriciated

Brian

--
Message posted via http://www.officekb.com


  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 202
Default networkday - datedif

1 is correct as it represents the 1 day of the 4/4/08

"BNT1 via OfficeKB.com" wrote:

Hi

In Cell A1 i have 4/4/08
In cell B1 i have 4/4/08

I have tried networkdays(a1,b1) but this gives result as 1. I require result
as 0. when cell B1 reads 5/4/08, will require result 1
Datedif does give the required result, but does not exclude weekends

any ideas/direction

all help appriciated

Brian

--
Message posted via http://www.officekb.com




  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 125
Default networkday - datedif

Sorry to confuse you all, I chose an example date that was a friday :-(
Unfortunately, I do not have the tool pac is not installed at home , ,
networkdays(a1,b1)-1 looks good. I was trying networkdays(a1,(b1-1)) which
gave a minus number

Thank you to all for your speedy response

Regards

Brian

Dennis wrote:
1 is correct as it represents the 1 day of the 4/4/08

Hi

[quoted text clipped - 10 lines]

Brian


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200804/1

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
6 day/week function ie:networkday Robert Excel Worksheet Functions 6 August 6th 07 12:06 AM
Businessday (Networkday) Function dannyboy213 Excel Discussion (Misc queries) 4 February 2nd 06 12:30 AM
Networkday Calendar rac Excel Discussion (Misc queries) 2 January 22nd 06 01:27 PM
DateDif Average? Damn DateDif UTCHELP Excel Worksheet Functions 14 November 17th 05 10:30 AM
NETWORKDAY function problem - starting on weekends [email protected] Excel Discussion (Misc queries) 5 June 16th 05 10:55 PM


All times are GMT +1. The time now is 02:22 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"