LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Convert Binary to Decimal using IF and Sum Functions?

Thanks for the quick response thats the formula/function i was just looking
into how can i specify within that formula what row all these numbers are
coming from?

My spreadsheets currently setup w/ values 0-15 (Dec) in one row and the row
below is the one which will be containing binary numbers (ONLY 1 or 0), how
would i go about setting it up so that if say any value within cells A7-P7
(Either a 0 changes to 1 or the other way around) changes the cell that i put
that formula will automatically change to the proper decimal value. Not sure
if that was explained very well let me know if you want any kind of
clarification.

"daddylonglegs" wrote:

I don't think there's a particularly simple way, here'a one way with binary
number in A1

=SUM(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)*(2^(LEN (A1)-ROW(INDIRECT("1:"&LEN(A1))))))

confirmed with CTRL+SHIFT+ENTER

"YourFriendlyTechGuy" wrote:

Well actually I was told i can only use 'Basic' functions id imagine a pretty
good amount of them just not bin2dec

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"