+ Reply to Thread
Results 1 to 4 of 4

decimal to 16 bits binary conversion in Excel?

  1. #1
    Registered User
    Join Date
    03-26-2006
    Posts
    3

    decimal to 16 bits binary conversion in Excel?

    I'm aware of the function DEC2BIN(), but it has a limitation of 10 bits. Are there any 16 bits solutions available?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try this

    =DEC2BIN(A1/256,8)&DEC2BIN(MOD(A1,256),8)

    always shows 16 bits...

  3. #3
    Philippe L. Balmanno
    Guest

    Re: decimal to 16 bits binary conversion in Excel?

    xcgames said the following on 3/26/2006 2:20 PM:
    > I'm aware of the function DEC2BIN(), but it has a limitation of 10 bits.
    > Are there any 16 bits solutions available?
    >
    >

    See this post you may need to use VBA and break it up.
    http://www.dailydoseofexcel.com/arch...mal-to-binary/

  4. #4
    Registered User
    Join Date
    09-05-2019
    Location
    Bangalore
    MS-Off Ver
    2016
    Posts
    1

    Re: decimal to 16 bits binary conversion in Excel?

    This equation will give the 1 bit to 16 bits conversion from hex to binary. for all Dec to convert the original number to hex and use this.
    =HEX2BIN(MID($B$47,1,IF(LEN($B$47)<2,0,LEN($B$47)-2)))&HEX2BIN(MID($B$47,IF(LEN($B$47)<=2, 1, 1+LEN($B$47)-2), IF(LEN($B$47)<2, 1,2)))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1