Ignoring blank cells

Closed
Report
Posts
1
Registration date
Wednesday May 12, 2010
Status
Member
Last seen
May 12, 2010
-
Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
-
I have a formula along the lines of..... =IF((a1=b1),1,0)

How can i get the formula to ignore blank cells?


1 reply

Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
768
=IF(AND(a1=b1, A1<>""),1,0)