Using COUNTIF with two criterias and a date range.

Options

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

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!