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
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!