Solved

Calculate the next business day

Posted on 2008-06-09
3
527 Views
Last Modified: 2010-04-21
Hello,

I have found help on calculating the number of business days between two dates, but I need to see if there is a way to show the next business day.

I want a field that takes the currentdate and adds 1 day, but if that day is a saturday, sunday, or company holiday, show the next day following that.

Example:
currentdate: 6/6/08
@nextworkday: 6/9/08

-or-

currentdate: 11/26/08
@nextworkday: 12/1/08 (due to two company holidays)

Any help would be greatly appreciated!
0
Comment
Question by:benbelzer
3 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 21745209
Holidays are not provided by anything because they are related to your contry/state/province. You need to create your mechanism for them.
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 21745238
Here is a formula that does what you want.

http://www.kenhamady.com/form17.shtml

It uses this formula

http://www.kenhamady.com/form01.shtml

mlmcc
0
 

Author Closing Comment

by:benbelzer
ID: 31465478
Worked perfectly... thank you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now