Start Free Trial

Alteryx Designer Desktop Discussions

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

Multi-layered CountIFS in Excel

GuyJHarvey
5 - Atom

I've read the other posts on this but none seem to cover my challenge or level of incompetence.

 

I dont know enough about COUTIFS in excel to fully understand what they do but I have been asked to convert a XLS to Alteryx.

 

The data looks like this but its column O I'm struggling with. 

 

GuyJHarvey_0-1611579343489.png

 

 Any help would be better than me saying I cant do it!

3 REPLIES 3
Lisa_M
8 - Asteroid

A COUNTIF in Excel is a conditional count - so show how many records satisfy specified conditions.

 

In theory, it should be pretty simple to replicate in a workflow - I think I'd use a formula tool and conditional statements to add markers where the Excel conditions are detailed and satisfied, then a summarise tool and a count on the marker field added.

 

Hope this helps.

clmc9601
13 - Pulsar
13 - Pulsar

Hi @GuyJHarvey,

 

I built a workflow that might help you!

 

I also translated the countif from your spreadsheet's excel syntax for short term transfer into English if that helps:

IF result > 1 of both the following
- Part 1 Consider the item number from the row below:

  • Then count the rows with that item number that are active items and have over stock on hand

- Part 2 Consider the item number from the row below:

  • Then count the rows with that item number that are active items and have on-hand shortage

Screen Shot 2021-01-26 at 12.36.59 PM.png

 

It struck me as a little strange to keep referencing the row below (even when a completely different item number), but I'm sure there's a good reason for it.

clmc9601
13 - Pulsar
13 - Pulsar

Hi @GuyJHarvey, just wanted to follow up-- did this solution work for you? Thanks. 

Labels
Top Solution Authors