Hello !
I made a formula to get all the holidays for the current year automatically and I can’t use that value directly with WORKDAY_DIFF in another formula. I have to copy and paste.
If anyone has the answer I would love to have it, thanks a lot !
Hello !
I made a formula to get all the holidays for the current year automatically and I can’t use that value directly with WORKDAY_DIFF in another formula. I have to copy and paste.
If anyone has the answer I would love to have it, thanks a lot !
Best answer by Justin_Barrett
Hello Justin, thank you veryy much ! :grinning_face_with_smiling_eyes:
I use two formula, one to get the holidays I want to exclude and another to get them into string, then I use a lookup on another table and I try to get the data from there.
Some screen will be more explicit :

Formulas :
YE being the current year
Nota : I copied a lot from this work : U.K. Holidays for WORKDAY() and WORKDAY_DIFF(). (Bonus: Easter!)
Thanks again !
Thanks for the added detail. It definitely helps to know that you’re using a lookup to pull that into another table. Lookup fields, even if they only pull from a single record, most often return arrays. Because of this, referring to a lookup field in a formula will bring in the array. In your case, where you need to insert this looked-up date string into WORKDAY_DIFF(), you’ll probably need to convert that array—even though it only contains a single item—back into a string by concatenating it with an empty string:
WORKDAY_DIFF({Start Date Field}, {End Date Field}, {Lookup Field} & "")
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.