Excel function Networkdays substitute in Alteryx
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi there,
Can you help me in converting the =NETWORKDAYS(AK2,AO2)-1 (Excel formula) in alteryx?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Redzapplin ,
in Alteryx, you can create a list of dates in the range (i.e. between StartDate and EndDate), count the days that are not Saturday/Sunday and remove holidays from a list. I've attached a sample workflow. You can also convert it to a marco and set a switch to decide, if holidays should be considered.
Let me know if it works for you.
Best,
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Redzapplin !
There's actually a macro that was built to do this on the gallery: https://gallery.alteryx.com/#!app/Count-Weekdays/5862c055a18e9e0ff8d854cd.
You can download it and add the 'CalculateBusinessDays' macro to your workflow. It also gives you the option to add weekdays that you want excluded as business days (like holidays).
Hope this helps!
Ashley
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@RolandSchubert Thanks much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks much @AshleyL. Indeed this is a good one,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Unable to find the macro is there a different link?
