Count Duplicates Only if the Field is NOT Blank

I am struggling to get the formula right to solve this problem. My formula can count if there are duplicates in this field, but it also counts it if the field is blank (because many rows won't have a value in this field). Can anyone help me add the "if it is not blank" piece so i only get a 1 if there is a value in the TFPhoneNo field?
=IF(COUNTIF(TFPhoneNo:TFPhoneNo, TFPhoneNo@row) > 1, 1)
I appreciate it.
Best Answers
-
=IF(TFPhoneNo@row,"","",IF(COUNTIF(TFPhoneNo:TFPhoneNo, TFPhoneNo@row) > 1, 1))
-
Try this
=IF(AND(COUNTIF(TFPhoneNo:TFPhoneNo, TFPhoneNo@row) > 1, NOT(ISBLANK(TFPhoneNo@row))), 1)
Regards,
Soum
Please accept my answer as Solution if it helped you
Answers
-
=IF(TFPhoneNo@row,"","",IF(COUNTIF(TFPhoneNo:TFPhoneNo, TFPhoneNo@row) > 1, 1))
-
Try this
=IF(AND(COUNTIF(TFPhoneNo:TFPhoneNo, TFPhoneNo@row) > 1, NOT(ISBLANK(TFPhoneNo@row))), 1)
Regards,
Soum
Please accept my answer as Solution if it helped you
-
Soum - that worked perfectly, thank you so much!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 450 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!