Numbers (Advanced) - SUMIFS formula not filtering by date as expected.
Context:
I have 2 tables, the first, "Expenses" is shown in red
The second, "Table 1" is shown in grey/white, with 4 entries to test the functionality of the formula.
I would like the entries from "Table 1" to SUM and populate "Expenses" filtering in to both the correct month and the correct category. After a few hours of research, trial, error and more error, I have arrived at the following scary, but mostly functional, formula.
It is important that the formula can be copied along rows and columns while preserving the correct input data.
Formula:
SUMIFS($Price,Table 1::$A,">=" &B$1,Table 1::$A,"<=" & EOMONTH(B$1,0),$Category,"*" &$A6& "*")
The source, and some explaination, of the formula: https://exceljet.net/formula/sum-by-month
Issue:
The formula works perfectly in all the months of 2020. However, as it goes through to january of 2021, and beyond, it no longer filters by date (including all data regardless of date). It filters by category just fine.
As is often the case with these things I expect I've overlooked something small but important. I'm in over my head and have no idea how to diagnose. I am immensely grateful for any help you can provide.
Sam