Skip to main content
Solved

Return if dates is a holiday

  • July 17, 2023
  • 2 replies
  • 41 views

Forum|alt.badge.img+2

I'm trying to return a value if the date matches any of a string of dates. I'm trying to make sure dates don't land on company holidays. Thanks!

Best answer by Alexey_Gusev

Hi,
You can try WORKDAY_DIFF({Date},{Date},"list of dates")=0
Weekend will be also included, but I guess it doesn't contradict your goal

 

 

2 replies

Alexey_Gusev
Forum|alt.badge.img+25
  • Brainy
  • 1260 replies
  • Answer
  • July 17, 2023

Hi,
You can try WORKDAY_DIFF({Date},{Date},"list of dates")=0
Weekend will be also included, but I guess it doesn't contradict your goal

 

 

Forum|alt.badge.img+21
  • Inspiring
  • 560 replies
  • July 18, 2023

Using Workday_diff is a good idea!
If you don't need to add any particular holidays, you can use this formula as well.

 

IF(WEEKDAY({Date},"Monday")>4,"holiday")