Finding Duplicate Formula not working

Jerry Alexander
Jerry Alexander ✭✭✭✭
edited 09/28/23 in Formulas and Functions

I'm trying to find duplicates in [Invoice Number] column. I added a column "Duplicates" and wrote the formula:

=COUNTIF([Invoice Number]:[Invoice Number], [Invoice Number]@row)

Then I could conditionally format any count over 1 and thus finding the duplicates.

Its working for the most part, but I have identified one duplicate in the [Invoice Number] column that's not counting, its returning the value of 0. However, If I retype the duplicate invoice numbers that are duplicated, the formula works. ??? When I do retype, the cell value shifts to the other side of the cell as if the field format changed when I retyped the number. This is an imported sheet, not sure if a "cell format" in excel is overwriting the column format of Text/Number in Smartsheet?

Another issue is some cells where the [Invoice Number] isn't duplicated, its returning the value of "0" rather than "1".

All other duplicates are working. Counting if duplicated, returning value of 1 when not.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!