Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Working days in MS Query

I need to calculate NETWORKDAYS which works fine in Excel but I need to do it
in MS Query. Is there a formula?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Working days in MS Query

See if this helps....

This MS Query SQL returns:
The count of workdays (mon thru fri) by Name
from the tblDatesNames table
where dates are between 01-JAN-2008 and 25-JAN-2008

SELECT
tblDatesNames.Name,
Count(tblDatesNames.Date)
FROM `C:\Sandbox1`.tblDatesNames tblDatesNames
WHERE
(weekday(Date) Between 2 And 6)
AND
(tblDatesNames.Date Between cdate('01-JAN-2008') And cdate('25-JAN-2008'))
GROUP BY
tblDatesNames.Name

The returned values list looks like this:

Name Expr1001
Alpha 4
Bravo 4
Charlie 4
Delta 4
Echo 2
Golf 2
Hotel 4
India 4
Juliet 4
Kilo 4
Lima 2

Is that something you can work with?
Post back if you have more questions.

Regards,

Ron
Microsoft MVP - Excel

"mcquam" wrote in message
...
I need to calculate NETWORKDAYS which works fine in Excel but I need to do
it
in MS Query. Is there a formula?


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
Making weekend days working days - the system cuts the working tim Fluffy Excel Discussion (Misc queries) 1 May 30th 08 10:02 PM
How to calculation no. of days (only working days) between two dat Vivian Chan Excel Discussion (Misc queries) 1 July 26th 07 09:16 AM
Non working days The Rook[_2_] Excel Discussion (Misc queries) 4 March 31st 07 09:00 PM
Working days Andrew Mackenzie Excel Discussion (Misc queries) 8 January 3rd 07 02:39 PM
Working Days Mike Hebblewhite Excel Discussion (Misc queries) 0 January 30th 06 11:00 AM


All times are GMT +1. The time now is 10:07 AM.

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"