Countifs and Isblank is not working
I am using a formula in a column, "Repeat Values" that checks another column, "Document Number", for repeat values and if there are repeat values it checks the checkbox in the "Repeat Values" column. This formula is somewhat working, but also checks the box for all blank cells in the "Document Number" column.
=IF(COUNTIFS([Document Number]:[Document Number], [Document Number]@row) > 1, 1)
I also have a conditional format that checks for checked boxes and if the box is checked, it highlights the repeats in the "Document Number" column. It is also highlighting the blank cells.
I'm not sure if it is doing this because there is also a formula in the "Document Number" column or what.
Any advise on how to modify the formula so it doesn't check the box if the "Document Number" column is a blank field?
Best Answer

Hello @Genevieve P. ,
It did not work. However I kept plugging away trying to figure it out between yesterday and today and this finally worked.
=IF(ISBLANK([Document Number]@row), 0, IF(COUNTIFS([Document Number]:[Document Number], [Document Number]@row) > 1, 1))
Thank you!
Answers

Hi @Joni S
We can add a second IF statement at the beginning of your formula to say that If the Document Number cell is blank, return blank, otherwise...calculate the rest of your formula.
Try this:
=IF([Document Number]@row = "", "", IF(COUNTIFS([Document Number]:[Document Number], [Document Number]@row) > 1, 1))
Let me know if this works for you!
Cheers,
Genevieve

Hello @Genevieve P. ,
It did not work. However I kept plugging away trying to figure it out between yesterday and today and this finally worked.
=IF(ISBLANK([Document Number]@row), 0, IF(COUNTIFS([Document Number]:[Document Number], [Document Number]@row) > 1, 1))
Thank you!

Hi @Joni S
Thanks for letting us know and for posting your solution!
Help Article Resources
Categories
 All Categories
 14 Welcome to the Community
 10.5K Get Help
 61 Global Discussions
 46 Industry Talk
 385 Announcements
 3.5K Ideas & Feature Requests
 54 Brandfolder
 124 Just for fun
 50 Community Job Board
 466 Show & Tell
 40 Member Spotlight
 44 Power Your Process
 28 Sponsor X
 234 Events
 7.3K Forum Archives
Check out the Formula Handbook template!