Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 440
Default Date difference

Hi,
The following code will return the difference between the dates in N7 and R7:
=IF(R7="","",DAYS360(N7,R7,TRUE))
It doesn't take into consideration weekends.
Can this formula be changed to ignore weekends?
--
tia

Jock
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Date difference

Try:-

=NETWORKDAYS(N7,R7)

Mike

"Jock" wrote:

Hi,
The following code will return the difference between the dates in N7 and R7:
=IF(R7="","",DAYS360(N7,R7,TRUE))
It doesn't take into consideration weekends.
Can this formula be changed to ignore weekends?
--
tia

Jock

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Date difference

Hi Jock,

Look at the NETWORKDAYS() function.
If you get a #NAME Error: ToolsAdd-ins, check Analysis Toolpak

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Jock" wrote in message ...
| Hi,
| The following code will return the difference between the dates in N7 and R7:
| =IF(R7="","",DAYS360(N7,R7,TRUE))
| It doesn't take into consideration weekends.
| Can this formula be changed to ignore weekends?
| --
| tia
|
| Jock


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 440
Default Date difference

Thanks Niek & Mike H.
Sorted.

Jock


"Niek Otten" wrote:

Hi Jock,

Look at the NETWORKDAYS() function.
If you get a #NAME Error: ToolsAdd-ins, check Analysis Toolpak

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Jock" wrote in message ...
| Hi,
| The following code will return the difference between the dates in N7 and R7:
| =IF(R7="","",DAYS360(N7,R7,TRUE))
| It doesn't take into consideration weekends.
| Can this formula be changed to ignore weekends?
| --
| tia
|
| Jock



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
Difference betwen Excel Date () Function and System Date Khalil[_2_] Excel Worksheet Functions 2 June 16th 09 01:10 PM
Difference System date and Excel Date function Khalil Excel Worksheet Functions 2 June 16th 09 11:23 AM
Difference between last date of month and given date Nikhil Excel Worksheet Functions 3 June 13th 08 01:03 PM
Calculating Difference Between Start Date & Time And End Date & Ti Samwar Excel Discussion (Misc queries) 2 December 19th 05 12:42 PM
Date difference Maxi Excel Worksheet Functions 7 July 28th 05 01:38 PM


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