sum true/false

G

greg

Is there anyway of summing a bunch of rows, that contain true and false.
Where true = 1 false = 0.
I tried changing the cell to a number. with true in it. but no luck.
any other ideas?
thanks
 
D

Dave Peterson

Do the cells contain 1's and 0's or True's and False's?

How about just count the trues/falses:

=countif(a1:a10,true)
and
=countif(a1:a10,false)

=sum(a1:a10)
should sum the cells if they really contain 1's and 0's.
 
P

Per Jessen

greg said:
Is there anyway of summing a bunch of rows, that contain true and false.
Where true = 1 false = 0.
I tried changing the cell to a number. with true in it. but no luck.
any other ideas?
thanks
Hi

Multiply by 1.
If you have True/False in A1 and down, then enter enter this formula in B1
and copy down:

=A1*1

True will equal 1 and False will equal 0.

Regards,
Per
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top