function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mahboob AljiwalaMahboob Aljiwala 

How can i exclude holidays on my custom formula field using custom holiday object ?

Khan AnasKhan Anas (Salesforce Developers) 
Hi Mahboob,

Greetings to you!

Please refer to below link which might help you.

It is an idea ( to exclude both holidays and weekends in Formula.

If you want to calculate the number of days between two dates while excluding weekends or weekdays, you can refer to below knowledge article.

However, you can use this Apex code to exclude holidays and weekends in Formula.

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks and Regards,
Khan Anas