+ Reply to Thread
Results 1 to 10 of 10

64 bit Binary

  1. #1
    Registered User
    Join Date
    08-13-2010
    Location
    Earth
    MS-Off Ver
    Excel 2003
    Posts
    2

    64 bit Binary

    Hey Guys,

    I've been referencing these forums for some time, but have always generally found what I needed here, or somewhere else if necessary, unfortunately though I've become stuck with this particular problem and can't find any way of doing what I need!

    I receive a .csv with multiple columns of data. Column I contains a 64bit binary value stored in decimal format, the largest of which can be produced is:

    9223372036854770000

    Now, I've already discovered that excel's built in dec2bin() function is not powerful enough to convert a number this large, and whilst there are some user techniques out there to break down larger numbers, but it seems mine is too big for that too.

    What I need to do is find a way to

    1) Convert it back into Binary, (for the above one, for examples sake)
    111111111111111111111111111111111111111111111111110100000000000

    2) Split this output into separate columns, e.g. column I has the original decimal value, columns M onward would then be filled with 1,1,1,1,1 etc

    I have no coding skill whatsoever, but I do understand how VB functions so I imagine this is possible via a custom function maybe, please help!
    Last edited by Gimboidnk; 08-14-2010 at 07:22 AM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Help with 64 bit Binary

    Here you go ... this works from the activecell, but it's easily adaptable to work from other ranges, if you require.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-13-2010
    Location
    Earth
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Help with 64 bit Binary

    You sir, are a gentleman and a scholar, I was hoping that someone somewhere might be able to help me with this, but a response as quick as yours, which has worked instantly and perfectly.

    If I was female I'd offer to have your babys, THANK YOU!

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Help with 64 bit Binary

    Glad to help. You're welcome to have my babies ... could you have them tomorrow night, while I go to the pub? Thanks.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Help with 64 bit Binary

    Andrew, I believe you're routine will have a problem with an input with more than 15 significant digits, e.g., 9223372036854769999.

    Please Login or Register  to view this content.
    Examples:

    Please Login or Register  to view this content.
    The commas are optional.

    The formula in B2 and down is =IntStr2Str(A2, TRUE)
    Last edited by shg; 08-14-2010 at 07:35 PM.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    08-11-2014
    Location
    Israel
    MS-Off Ver
    2013
    Posts
    19

    Re: Help with 64 bit Binary

    Hi,
    This is exactly a function i was looking for!
    But how can i insert this nice code into excel and use it?
    Thank you!
    Alon (newee on the forum)

  7. #7
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: 64 bit Binary

    Please Login or Register  to view this content.
    Alt+F11, then insert a module and paste It into It.

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,620

    Re: Help with 64 bit Binary

    Quote Originally Posted by alonglick View Post
    Hi,
    This is exactly a function i was looking for!
    But how can i insert this nice code into excel and use it?
    Thank you!
    Alon (newee on the forum)
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

  9. #9
    Registered User
    Join Date
    10-09-2014
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    1

    Re: 64 bit Binary

    post removed. will start a new thread.
    Attached Images Attached Images
    Last edited by qtrcoShawn; 10-24-2014 at 09:39 AM. Reason: Admin indicated this should be a new thread. Post removed.

  10. #10
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,954

    Re: 64 bit Binary

    qtrcoShawn,
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

+ 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