× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



From: Angela Wawrzaszek <awawrzaszek@nucorauburn.com>

Yes and no this is what will work.  I will be subtracting dates that can be
1-120 days apart.  So to figure out which day of the week it is and subtract
a weekend is not quite that simple.   I wuld need to be able to know how many
weekends to subtract out of the subdur.


===> it is not quite clear what you want (a weekend is two days and there may
be
half weekends on either end of your duration), but assuming that you want to
count
WORKDAYS (i.e. not weekends), you could do it without any fancy date duration
functions with the following simple loop (assume that Monday is day 1):

d = getday(whenever)'
workdays = 0;
loop dur times
   d = d - 1
   if d < 1
        d = 7
   endif
   if d < 6
       workdays = workdays + 1
   endif
endloop







As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.