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.9K Get Help
- 474 Global Discussions
- 207 Use Cases
- 517 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 83 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!