Results 1 to 3 of 3

Decimal to 16 bits binary conversion in Excel?

Threaded View

  1. #1
    Registered User
    Join Date
    09-25-2019
    Location
    New York
    MS-Off Ver
    2016
    Posts
    1

    Decimal to 16 bits binary conversion in Excel?

    By using the DEC2HEX with the character count to 10, the number of bits can be increased up to 40. The minimum number is -549755813888 (HEX 8000000000)and the maximum number is 549755813887 (HEX 7FFFFFFFFF). Each pair of HEX characters represents a bit array of 8. Use the formulas below:


    For the following formulas, the number is entered into A1

    An 8 BIT array requires only the last 2 characters to be used.

    =HEX2BIN(RIGHT(DEC2HEX(A1,10),2),8)


    A 16 BIT array simply uses the MID formula for the next 2 HEX characters starting at location 7.

    =HEX2BIN(MID(DEC2HEX(A1,10),7,2),8)&HEX2BIN(RIGHT(DEC2HEX(A1,10),2),8)


    Add another 8 bits to the array by simply adding to the left of the formula with the starting point 2 less than the previous.

    =HEX2BIN(MID(DEC2HEX(A1,10),5,2),8)&HEX2BIN(MID(DEC2HEX(A1,10),7,2),8)&HEX2BIN(RIGHT(DEC2HEX(A1,10),2),8)



    and so on.


    Cheers!
    Last edited by AliGW; 07-31-2020 at 12:45 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Auto New Tab renamed....
    By gavinsmith2121 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-08-2017, 11:49 AM
  2. Values to be renamed automatically
    By studio52 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-03-2014, 10:01 AM
  3. Suggestion-Thread Unread Notification For Editing/Change In Thread Title
    By :) Sixthsense :) in forum Suggestions for Improvement
    Replies: 5
    Last Post: 01-15-2014, 01:54 AM
  4. Prevent sheets from being renamed
    By LAF in forum Excel General
    Replies: 3
    Last Post: 02-01-2010, 04:30 PM
  5. pivottables: renamed fields and renamed data
    By lalbatros in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-04-2007, 03:30 PM
  6. Renamed ranges - PART 2
    By rm81 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2006, 09:00 AM
  7. [SOLVED] Renamed invalid sheet name
    By Angela in forum Excel General
    Replies: 7
    Last Post: 02-17-2006, 11:20 AM

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