Alteryx Designer

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

Excel function Networkdays substitute in Alteryx

Highlighted
8 - Asteroid

Hi there,

 

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

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

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 

Highlighted
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

Highlighted
8 - Asteroid

@RolandSchubert Thanks much!

Highlighted
8 - Asteroid

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

Labels