Thread: Binary Numbers
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
Sanford Lefkowitz Sanford Lefkowitz is offline
external usenet poster
 
Posts: 9
Default Binary Numbers

This might be more of a math question than Excel.

I have an application for which I would like to know the number of "1"s in
the binary representation of a number. For example 20 in binary is 10100,
which has 2 "1"s. I do not necessarily need the binary number itself.

Also, the DEC2BIN function does not work for numbers =512. Are there other
binary converters that do?

Thanks
Sanford