View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Smallweed Smallweed is offline
external usenet poster
 
Posts: 133
Default Formatting TRUE/FALSE to 1/0

Thanks but that's another column, not a format.

"Joel" wrote:

You can do it yourself with a if statement

if(a1, 1, 0)

"Smallweed" wrote:

It's nice to use TRUEs and FALSEs in simple calculations (such as add and
multiply) where TRUE cells are treated by Excel as having a value of 1 and
FALSE cells 0 - although it is strange that =SUM treats them all as 0.

Does anyone know a way of formatting logical cells to actually display 1 for
TRUE and 0 for FALSE?

Obviously one could put together a macro or UDF that physically converted
these values but I would ideally like some kind of Excel format.