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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!