Aug 7, 2022
FILTER has mismatched range sizes (ranges consistently specified)
The intention is that each row is checked in turn for all conditions of the filter() command (against multiple columns), all need to pass for the row to be copied/filters. Each row of data is self contained.
This worked perfectly when all I had were tests for non-empty cells: not(isblank())
Adding date check makes the filter die.
This is the first row of data:
Coria, Niceifolia, Seeds: Collect, 1 Jan, 6 aug, Hard (comment expected), [See Document]
If "today()" is "22 FEB" of any year then it passes the following test and therefore the row is wanted/copied:
("22 FEB" >= "1 JAN") AND ("22 FEB" <= "6 AUG)
I've used the fixed year of "1999" in place of any year.
={FILTER('Propagation Timing (Calendar)'!A2:F,not(IsBlank('Propagation Timing (Calendar)'!C2:C)))}
={ FILTER('Propagation Timing (Calendar)'!A2:F,
DateValue(Concatenate("1999-", month(now()), "-", day(now()))) >= DateValue(Concatenate('Propagation Timing (Calendar)'!C2:C, " 1999"))
)
}
={
FILTER('Propagation Timing (Calendar)'!A2:F,
not(IsBlank('Propagation Timing (Calendar)'!C2:C)),
DateValue(Concatenate("1999-", month(now()), "-", day(now()))) >= DateValue(Concatenate('Propagation Timing (Calendar)'!C2:C, " 1999"))
)
}
It reports:
Error
FILTER has mismatched range sizes. Expected row count: 999. column count: 1. Actual row count: 1, column count: 1.
Now I haven't found any decent description of ranges so I could be doing something wrong but I'm specifying them consistently between the working and non-working filters. The major difference is I'm using ">=" for a greater than or equal comparison.
Is there anyway to see WHERE in the filter it fails? Is there a debugger?
Details
Community content may not be verified or up-to-date. Learn more.
Last edited Aug 8, 2022
All Replies (12)