Count(Distinct()) function that works with one column (range), but not another.
Hi All! I am using a =Count(Distinct({Range})) which works exactly as expected with one range of data, but returns a "1" with the exact same formula on an adjacent column of data. The only difference between the data in the 2 columns is the data. Same column type, similar numbers, etc.
Anyone had this issue before?
Answers
-
Strange!
Can you maybe share some screenshots of the columns? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, andree@getdone.se)
I hope that helps!
Be safe and have a fantastic week!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
This Formula works:
Range:
This does not work: same formula, just an adjacent column for range:
Range:
Thanks!!
-
Hi! I noticed the same with a Sheet Summary field. There were some existing =COUNT(DISTINCT([Range])) that are correct. When I went in today to add another COUNT DISTINCT using a column right next to one of the others, it returned 1.
-
UPDATE:
I have found that the data in my range are almost all numeric, however, there are a couple customers that have site numbers that contain text. It seems the Distinct Function is treating the entire range as either Numeric or Text when it sees that the majority of the data is one or the other. In my case, when it thinks the entire range is numeric, and sees a text field, it is returning "1" as the answer.
However, if I applied the formula to a range that is mixed numeric and text throughout, it handles that range of data without any issues.
-
I found this.
All values must be of the same data type in order for the function to calculate.
For example, 1, 2, a, 2 will produce a value of 1 if counted. 1, 2, 2, 3 will produce a value of 3 because only 1, 2, 3 are distinct.
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 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!