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

Need column mode after query/filtering huge data set with multiples ifs and ranges

$
0
0

I created this which returns the mode day in text of all the data that has been received in every transaction =index($B$2:$B$400,mode(match($B$2:$B407,$B$2:$B407,0)))

I now need to find a way to confine this mode search between specific date ranges A2:A,">=2022/04/01", A2:A,"<=2022/04/30" and a specific value in column H $H$2:$H,"BnD"

I have tried so many different ways of connecting different formulas which mostly work individually and never all together.

I tried this =COUNTIFS(A2:A,">=2022/04/01", A2:A,"<=2022/04/30",B2:B,"Saturday", $H$2:$H,"BnD")+COUNTIFS(A2:A,">=01/04/2022", A2:A,"<=30/04/2022",B2:B,"Saturday", $H$2:$H,"BnD") which provides me what I require minus the mode because I have specified a day in this one but in need the mode of that column B.

I am now trying to break down the individual parts and build them back up. Falling at 3rd hurdle!=countifs(A2:A,">=1/4/2022",A2:A,"<=30/4/2022") Works correctly and =countif(H2:H,"BnD") works, but when combined =countifs(A6:A,">=23/12/2021",A6:A,"<=24/12/2021",H2:H,"BnD") I get value error even though in this new range all rows have values in the required cells. I think this may be preventing from getting anywhere with this

Example sheet https://docs.google.com/spreadsheets/d/1anfWAkxa73-N7TydeMXVRNTuA1UB-vJ9A3iEnDjXa-I/edit?usp=sharing loosely has the same setup but the most basic formulas aren't even working on this one either.

I used #N/A in occasionally as this appears in the live sheet when a partner is unknown or doesn't have a value at all.

Any suggestions welcome


Viewing all articles
Browse latest Browse all 9786

Trending Articles



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