Countifs from another smartsheet using a date range
I have tried 2 different formulas, and neither one matches the data which was previously on an excel spreadsheet:
=COUNTIFS(CAR Log Range 1}, ">=01-JAN-2022", {CAR Log Range 1}, "<=31-JAN-2022")
I get a value of 2, which should be 1 as per my excel spreadsheet
=COUNTIFS(Date:Date, {CAR Log Range 1} >= DATE(2022, 1, 1), Date:Date, {CAR Log Range 1}l <= DATE(2022, 1, 31))
And this one just gets an error
Help is appreciated!
Best Answer
-
Hi @PStewart
Try these;😀
=COUNTIFS({CAR Log Range 1}, >=DATE(2022, 1, 1), {CAR Log Range 1}, <=DATE(2022, 1, 31))
or
=COUNTIF({CAR Log Range 1}, AND(@cell >= DATE(2022, 1, 1), @cell <= DATE(2022, 1, 31)))
Answers
-
Hi @PStewart
Try these;😀
=COUNTIFS({CAR Log Range 1}, >=DATE(2022, 1, 1), {CAR Log Range 1}, <=DATE(2022, 1, 31))
or
=COUNTIF({CAR Log Range 1}, AND(@cell >= DATE(2022, 1, 1), @cell <= DATE(2022, 1, 31)))
-
The second formula worked great!! thank you
-
Happy to help!😁
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!