View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph[_2_] David Biddulph[_2_] is offline
external usenet poster
 
Posts: 8,651
Default Converting TRUE/FALSE from AND to number, like 1 or 0

=--AND(A1,B1)
but IF should work if you want to use it
=IF(AND(A1,B1),1,0) or (adding unnecessarily)
=IF(AND(A1,B1)=TRUE,1,0)
--
David Biddulph

Joe M. wrote:
I would like to have results of AND() appear as 1 or zero instead of
TRUE or FALSE. I tried to use IF to check for true or false but for
some reason this doesnt work. Can someone help?

Thanks,
Joe M.