Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Excel function Networkdays substitute in Alteryx

Redzapplin
8 - Asteroid

Hi there,

 

Can you help me in converting the =NETWORKDAYS(AK2,AO2)-1 (Excel formula) in alteryx?

5 REPLIES 5
RolandSchubert
16 - Nebula
16 - Nebula

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 

AshleyL
Alteryx
Alteryx

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

Redzapplin
8 - Asteroid

@RolandSchubert Thanks much!

Redzapplin
8 - Asteroid

Thanks much @AshleyL. Indeed this is a good one,

Hardik
5 - Atom

Unable to find the macro is there a different link?

Labels