Solved

Calculate the next business day

Posted on 2008-06-09
3
530 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 70

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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 …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

756 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