Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Find most common value in based on a multiple criteria

$
0
0

I've got a dataset which I'm looking at ISOWEEK NUM and looking to pull back the most common value per week. The only challenge I'm facing is that I want to also exclude certain companies (i've created an additional column for that) but when I add this in it stops working. My current working formula is:

=arrayformula(index('Orders & Revenue'!$I:$I,MODE(if('Orders & Revenue'!$P:$P="No",MATCH('Orders & Revenue'!$I:$I,'Orders & Revenue'!$I:$I,0)))))

What I want to do is and in the and function so that I can lookup another column as well.I tried the below but it didn't work:

=arrayformula(index('Orders & Revenue'!$I:$I,MODE(if(and('Orders & Revenue'!$P:$P="No",'Orders & Revenue'!$N:$N,C$9),MATCH('Orders & Revenue'!$I:$I,'Orders & Revenue'!$I:$I,0)))))

Any thoughts?


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>