Leave blank if date is in the future
I'm wanting a cell to be blank if the month is in the future (highlighted cells below) but once we are in that current month to start counting. Right now my formula is pulling from our master page and counting all the entries with in a certain time period but not sure where to go from there.
=COUNTIFS({Created}, <=DATE(2022, 3, 31), {Created}, >=DATE(2022, 3, 1))
Best Answer
-
Hi @Alywilk
You can add an IF statement at the beginning that says IF Today's Date is less than DATE(2022, 3, 1), return blank: ""
Try this:
=IF(TODAY() < DATE(2022, 03, 01), "", COUNTIFS({Created}, <=DATE(2022, 03, 31), {Created}, >=DATE(2022, 03, 01)))
Cheers!
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
Answers
-
Hi @Alywilk
You can add an IF statement at the beginning that says IF Today's Date is less than DATE(2022, 3, 1), return blank: ""
Try this:
=IF(TODAY() < DATE(2022, 03, 01), "", COUNTIFS({Created}, <=DATE(2022, 03, 31), {Created}, >=DATE(2022, 03, 01)))
Cheers!
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now -
Thank you that worked!
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 438 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 283 Events
- 33 Webinars
- 7.3K Forum Archives