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 <> ""))
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 <> ""))
-
That worked! Thank you.
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!