cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alopez222
Helper III
Helper III

How can I calculate the number of days between two days without including the weekends and holidays?

I have a field named Days Change_Ship which uses a formula seen below. Current Ship Date is entered by the user while Revision Date is day the item was created by the user. How can I do the same thing but not include the weekends and holidays, or at least not include the weekends?

 

Days Change_Ship Formula:

alopez222_0-1653330190644.png

 

2 REPLIES 2
ScottShearer
Super User
Super User

@alopez222 

If you are asking how to exclude weekends in Power Automate, here is a link that shows how.

I don't believe there is a way to do this with a formula in a SharePoint calculated column.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
eliotcole
Super User
Super User

I'd started working on your problem, @alopez222, and came to the same conclusion that @ScottShearer did, which is that it's hard to do it with holidays.

 

However, I believe that a very complicated set of IF() formula would be able to do the weekends ... MAYBE.

 

Incidentally, did you know that the list has its own 'Created' column which lists the time at which the item was created?

 

In the meantime, I used the SharePoint list that I'd started for your problem to make this answer here, and thought you'd like to know as it does what you need, too:

https://powerusers.microsoft.com/t5/Building-Flows/Newb-trying-to-create-a-flow-that-calculates-due-...

 

Just use that Revision Date column instead of the Due Date one that I used in the example.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (3,301)