Returning "1" if 3 criteria are met, "0" if not

  • Thread starter Thread starter wx4usa
  • Start date Start date
W

wx4usa

I have 3 columns with misc data. Column A is a date, column B is an
invoice number and C is an expense report number. If all 3 columns
have data entered, I would like to have a formula return the number
"1" if not, "0"

How do I do this?
 
I have 3 columns with misc data. Column A is a date, column B is an
invoice number and C is an expense report number. If all 3 columns
have data entered, I would like to have a formula return the number
"1" if not, "0"

How do I do this?

Here's one way:

=--(SUMPRODUCT(--(LEN(A1:C1)>0))=3)


--ron
 
Just to mention another option:

= --(COUNTBLANK(A1:C1)=0)

One difference with this vs using COUNTA is that
COUNTA will count a cell with a Prefix Character (ie ') has having data, and
CountBlank will not.
 
Back
Top