Counting results of formula
Hi,
I have a sheet with two date columns. I want to count the rows where only one of the date columns have a value. I´ve tried to create a third column with a formula that sets it to 0 or 1 depending on whether the second date column ISBLANK. It works but a cant count the zero's or one's since it seems smartsheet cant count the result of a formula in a cell. Any ideas on how to do this better?
Thanks!
Mikael
Comments
-
If your count formula is in a Checkbox type column, convert it to text like this
=YOUR_FORMULA + ""
for example
=COUNT([Date]:[Date]) + ""
If you need to use that number in a calculation somewhere else, use VALUE() in the formula referencing it.
Craig
-
Also, this formula should work:
=COUNTIFS(DateA:DateA, NOT(ISBLANK(@cell)), DateB:DateB, ISBLANK(@cell)) + COUNTIFS(DateB:DateB, NOT(ISBLANK(@cell)), DateA:DateA, ISBLANK(@cell))
There might be a shorter way, but my coffee has not kicked in yet.
This is what is known as an "exclusive OR". Smartsheet does not have that function yet.
Craig
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!