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.
=index($B$2:$B$400,mode(match($B$2:$B407,$B$2:$B407,0)))
This implies that this is a successful formula, but I can't see it in your spreadsheet. When I apply it to your test data it returns "#N/A", and thearrayformula
version returns "#N/A". Would you please clarify whether you have mean that this "returns the mode day" OR "is intended to return the mode day".