Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
ivandrago
Creator II
Creator II

NetworkDays script

Hi,


I have the attached Document, I have a Holidays worksheet and a Orders Worksheet.
I want to use the Function NetworkDays againts the DateEntered, DateInvoiced fields and
using the Holidays to exclude the days between.
But I am having trouble trying to do this via the script?

Thanks

1 Solution

Accepted Solutions
maxgro
MVP
MVP

see attachment, this is the RESULT

using your qvw

and variable h =chr(39) & concat(Holidays, chr(39) & ',' & chr(39)) & chr(39)

and expression =NetWorkDays(DateEntered, DateInvoiced, $(h))

1.png

View solution in original post

5 Replies
ivandrago
Creator II
Creator II
Author

Anyone?

aveeeeeee7en
Specialist III
Specialist III

Hi Ivan

See the Attachment.

Hope it works for you.

Regards

Aviral Nag

aveeeeeee7en
Specialist III
Specialist III

If you want Number of Days excluding Holidays than see the Attachment.

ivandrago
Creator II
Creator II
Author

Hi,

Thanks for your reply, but the results that you have provided are not what I wanted? I was expected to see the following results, basically I want to see how many working days are between DateEntered and DateInvoiced and to exclude the holidays from the result set.

OrderIdDateEnteredDateInvoicedDaysOld
101/05/201301/07/201342
209/12/201322/01/201430
322/03/201422/03/20140
412/12/201325/03/201471
524/12/201324/12/20131
624/12/201330/12/20133
725/12/201302/01/20144

Thanks

maxgro
MVP
MVP

see attachment, this is the RESULT

using your qvw

and variable h =chr(39) & concat(Holidays, chr(39) & ',' & chr(39)) & chr(39)

and expression =NetWorkDays(DateEntered, DateInvoiced, $(h))

1.png