Number count formula
Hi All. I have a column of data that is strictly numbers. I am trying to build a formula to look for duplicates and also at the same time not count any blanks in the column. The normal formula i would use for this is =COUNTIFS([Column Name]:[Column Name],AND(@cell = [Column Name]@row, ISNUMBER(@cell))). However some of the data in the column starts with a 0 and my formula is not counting these. If I change it to =COUNTIFS([Column Name]:[Column Name],AND(@cell = [Column Name]@row, ISTEXT(@cell))) then it will count the one that starts with a 0 but not the ones that start with 1. I read somewhere that changing the column type to a Contact List will solve this but that doesn't seem to work (when I use either formula). Since this column will be writing back to Salesforce I don't want to just have people not use the leading 0. Any help would be appreciated.
Best Answer
-
The leading zero means that it is stored as a text value. Try this instead...
=COUNTIFS([Column Name]:[Column Name],AND(@cell = [Column Name]@row, @cell <> ""))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
The leading zero means that it is stored as a text value. Try this instead...
=COUNTIFS([Column Name]:[Column Name],AND(@cell = [Column Name]@row, @cell <> ""))
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
That worked! Thank you.
-
Happy to help. 👍️
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 379 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!