+ Reply to Thread
Results 1 to 8 of 8

Binary to Decimal

Hybrid View

  1. #1
    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: Binary to Decimal

    The formula I started with was

    =SUMPRODUCT(MID(A2, RowVec(1, LEN(A2)), 1) * 2^RowVec(LEN(A2) - 1, 0))

    ... but that uses a UDF. INDIRECT is compact but volatile.
    Last edited by shg; 11-09-2017 at 01:43 PM.
    Entia non sunt multiplicanda sine necessitate

  2. #2
    Valued Forum Contributor Root_'s Avatar
    Join Date
    07-29-2017
    Location
    _
    MS-Off Ver
    2010+
    Posts
    514

    Re: Binary to Decimal

    Here is a non-volatile version:

    =SUMPRODUCT(MID(A1,ROW(A$1:INDEX(A:A,LEN(A1))),1)*(2^(LEN(A1)-ROW(A$1:INDEX(A:A,LEN(A1))))))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Binary to decimal converter
    By SavageMind in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-15-2016, 05:12 PM
  2. [SOLVED] Signed Binary Decimal (B16) Conversion
    By Talamon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2014, 03:34 PM
  3. Excel Binary to Decimal
    By madushana in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-19-2013, 01:00 PM
  4. Binary to Decimal converter
    By thedudester1978 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2012, 12:42 PM
  5. Converts a decimal number to binary
    By sricomm in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-09-2006, 10:37 PM
  6. decimal to binary
    By boardmaker in forum Excel General
    Replies: 4
    Last Post: 06-13-2006, 04:10 PM
  7. [SOLVED] decimal to binary conversion
    By tam in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-29-2005, 01:05 PM

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