Using COUNTIF with two criterias and a date range.
I'm using the formulas below to pull from another smartsheet, but to only pull if it matches within date range..
COUNTIFS({Spreadsheet Name Here Range 1}, "Plant Location", {Spreadsheet Name Here Range 2}, "Category Type", AND (@cell >= DATE(2023, 1, 1), @cell <= DATE(2023, 1, 31)))
or
=COUNTIFS({Spreadsheet Name Here Range 1}, "Plant Location", {Spreadsheet Name Here Range 2}, "Category Type", COUNTIFS([01/01/2023]:[01/31/2023], AND(IFERROR(MONTH(@cell), 0) = 1, IFERROR(YEAR(@cell), 0) = 2023))
I keep getting #UNPARESEABLE. Any help would be appreciated it. Thank you
Answers
-
The only problem I see right off with the first one is the space after the AND function before the opening parenthesis.
-
Got that. Thank you Paul. I think i may not be including a Range 3 with the date columns from other spreadsheet?
-
Help Article Resources
Categories
Check out the Formula Handbook template!