Binary to decimal excel

Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2019 for Mac Excel 2016 Excel 2016 for Mac Excel 2013 Excel 2010 Excel 2007 Excel for Mac 2011 Excel Starter 2010 More…Less

This article describes the formula syntax and usage of the BIN2DEC function in Microsoft Excel.

Description

Converts a binary number to decimal.

Syntax

BIN2DEC(number)

The BIN2DEC function syntax has the following arguments:

  • Number     Required. The binary number you want to convert. Number cannot contain more than 10 characters (10 bits). The most significant bit of number is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two’s-complement notation.

Remark

If number is not a valid binary number, or if number contains more than 10 characters (10 bits), BIN2DEC returns the #NUM! error value.

Example

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Formula

Description

Result

=BIN2DEC(1100100)

Converts binary 1100100 to decimal

100

=BIN2DEC(1111111111)

Converts binary 1111111111 to decimal

-1

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Below is given the easiest Binary to decimal conversion method that you can do yourself even if you dont know the basic principle of mathematical conversion. In another artcile we have already described the manual conversion of binary to decimal numbers.

If you are willing to use computer for mathematical conversions then the best option is to use Excel sheets and applying the functions of binary t o decimal conversion. You can also use your smartphone if you have the Excel access on your device. Simply open the Excel and use below formula for Bin 2 Dec conversion.

Excel is also useful for finding binary to hexa and octal numbers by just changing the formula or function i.e. bin2hex & bin2oct.

BIN2DEC function

This paragraph describes the formula syntax and usage of the binary to decimal BIN2DEC function in Microsoft Excel. This function converts a binary number to decimal.

Syntax

BIN2DEC(number)

The BIN2DEC function syntax has the following arguments:

Number Required. The binary number you want to convert. Number cannot contain more than 10 characters (10 bits). The most significant bit of number is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two’s-complement notation.

If number is not a valid binary number, or if number contains more than 10 characters (10 bits), BIN2DEC returns the #NUM! error value.

In below example screen shot E7 is the cell number where we have put the binary number 111011, we can directly insert the binary number inside the function argument i.e. in place of E7 in below screen image. This is also mentioned in below another example of binary to decimal conversion.

binary to decimal conversion method

Example

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet to get binary to decimal number. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Formula Description Result
=BIN2DEC(1100100) Converts binary 1100100 to decimal 100
=BIN2DEC(1111111111) Converts binary 1111111111 to decimal -1

binary to decimal conversion manual method

Step 1: Find out the total number of digits in the binary number for example it is having n digits.

Step 2: Subtract 1 from total number of digits this will be the power of the 2 for example if we have binary number 111010111 it is having 9 digits therefore by subtracting 1 we get number 8.

Step 3: Now start multiplying each binary digit with powers of 2 from 8 to zero and keep adding them as below:

1×28   = 256

1×27   = 128

1×26   = 64

0x25   = 0

1×24   = 16

0x23   = 0

1×22   = 4

1×21   = 2

1×20   = 1

Step 4: Now add all these values to get the decimal number: 471

Example No 2

Find the decimal value of 1110012:

binary number: 1 1 1 0 0 1
power of 2: 25 24 23 22 21 20

1110012 = 1⋅25+1⋅24+1⋅23+0⋅22+0⋅21+1⋅20 = 5710

Binary
Number
Decimal
Number
Hex
Number
0 0 0
1 1 1
10 2 2
11 3 3
100 4 4
101 5 5
110 6 6
111 7 7
1000 8 8
1001 9 9
1010 10 A
1011 11 B
1100 12 C
1101 13 D
1110 14 E
1111 15 F
10000 16 10
10001 17 11
10010 18 12
10011 19 13
10100 20 14
10101 21 15
10110 22 16
10111 23 17
11000 24 18
11001 25 19
11010 26 1A
11011 27 1B
11100 28 1C
11101 29 1D
11110 30 1E
11111 31 1F
100000 32 20
1000000 64 40
10000000 128 80
100000000 256 100

Содержание

  1. The Excel BIN2DEC Function
  2. Function Description
  3. Bin2Dec Function Examples
  4. Bin2Dec Function Error
  5. Easiest Binary To Decimal Conversion Using MS Excel
  6. BIN2DEC function
  7. Syntax
  8. Example
  9. binary to decimal conversion manual method
  10. Example No 2
  11. HOW TO CONVERT 16 BIT BINARY NUMBER INTO DECIMAL NUMBER IN EXCEL ?
  12. Table of Contents
  13. INTRODUCTION
  14. WHAT IS A DECIMAL NUMBER SYSTEM ?
  15. WHAT IS A BINARY NUMBER SYSTEM?
  16. WHY TO CONVERT THE NUMBERS FROM BINARY SYSTEM TO DECIMAL SYSTEM ?
  17. WHY BIN2DEC FUNCTION IS NOT WORKING FOR MORE THAN 10 DIGITS ?
  18. DOWNLOAD THE ADDIN
  19. SAFETY WHILE INSTALLING THE ADDINS
  20. EXAMPLE 2: CONVERT 111001000100101 DECIMAL NUMBER INTO BINARY NUMBER
  21. Binary to decimal excel
  22. Преобразование двоичного значения в десятичное
  23. Преобразование двоичного значения в восьмеричное
  24. Преобразовать двоичное значение в шестнадцатеричное значение
  25. Замечания
  26. Файл примера
  27. Относительные функции
  28. Относительные формулы
  29. Относительные формулы
  30. Kutools for Excel — поможет вам выделиться из толпы

The Excel BIN2DEC Function

The Binary (Base 2) Numeral System uses the digits 0 & 1.

The following table shows the first 8 binary values, along with the equivalent decimal values:

Binary 1 10 11 100 101 110 111 1000
Decimal 1 2 3 4 5 6 7 8

For further information on the binary numeral system, see the Wikipedia Binary Page

Function Description

The Excel Bin2Dec function converts a Binary (a base-2 number) into a decimal number.

The syntax of the function is:

Where the number argument is the binary number that is to be converted to a decimal.

Note that the supplied number argument must not be more than 10 characters (40 bits) long. The most significant bit of this value denotes the sign of the number and the remaining 39 bits denote the magnitude. Negative numbers are represented using two’s complement notation.

Bin2Dec Function Examples

The following spreadsheets show five examples of the Excel Bin2Dec function.

A
1 =BIN2DEC( «10» )
2 =BIN2DEC( «11» )
3 =BIN2DEC( «0000000010» )
4 =BIN2DEC( «1111111110» )
5 =BIN2DEC( «110» )
A B
1 2 Result is 1*2 + 0
2 3 Result is 1*2 + 1
3 2 Result is 1*2
4 -2 Result is -2^9 + 2^8 + 2^7 + . + 2 + 0
5 6 Result is 2^2 + 2 + 0

Note that, in the above example spreadsheet, the negative binary number in cell A4 is represented by two’s complement notation.

Further details and examples of the Excel Bin2Dec function are provided on the Microsoft Office website.

Bin2Dec Function Error

If you get an error from the Excel Bin2Dec function this is likely to be the #NUM! error:

Источник

Easiest Binary To Decimal Conversion Using MS Excel

Below is given the easiest Binary to decimal conversion method that you can do yourself even if you dont know the basic principle of mathematical conversion. In another artcile we have already described the manual conversion of binary to decimal numbers.

If you are willing to use computer for mathematical conversions then the best option is to use Excel sheets and applying the functions of binary t o decimal conversion. You can also use your smartphone if you have the Excel access on your device. Simply open the Excel and use below formula for Bin 2 Dec conversion.

Excel is also useful for finding binary to hexa and octal numbers by just changing the formula or function i.e. bin2hex & bin2oct.

BIN2DEC function

Syntax

The BIN2DEC function syntax has the following arguments:

Number Required. The binary number you want to convert. Number cannot contain more than 10 characters (10 bits). The most significant bit of number is the sign bit. The remaining 9 bits are magnitude bits. Negative numbers are represented using two’s-complement notation.

If number is not a valid binary number, or if number contains more than 10 characters (10 bits), BIN2DEC returns the #NUM! error value.

In below example screen shot E7 is the cell number where we have put the binary number 111011, we can directly insert the binary number inside the function argument i.e. in place of E7 in below screen image. This is also mentioned in below another example of binary to decimal conversion.

Example

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet to get binary to decimal number. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Formula Description Result
=BIN2DEC(1100100) Converts binary 1100100 to decimal 100
=BIN2DEC(1111111111) Converts binary 1111111111 to decimal -1

binary to decimal conversion manual method

Step 1: Find out the total number of digits in the binary number for example it is having n digits.

Step 2: Subtract 1 from total number of digits this will be the power of the 2 for example if we have binary number 111010111 it is having 9 digits therefore by subtracting 1 we get number 8.

Step 3: Now start multiplying each binary digit with powers of 2 from 8 to zero and keep adding them as below:

Step 4: Now add all these values to get the decimal number: 471

Example No 2

Find the decimal value of 1110012:

binary number: 1 1 1 0 0 1
power of 2: 2 5 2 4 2 3 2 2 2 1 2 0

1110012 = 1⋅2 5 +1⋅2 4 +1⋅2 3 +0⋅2 2 +0⋅2 1 +1⋅2 0 = 5710

Источник

HOW TO CONVERT 16 BIT BINARY NUMBER INTO DECIMAL NUMBER IN EXCEL ?

Table of Contents

INTRODUCTION

Excel is the SPREADSHEET APPLICATION offered by Microsoft.

Spreadsheet applications are very helpful in different types of mathematical applications.

The functions present in the EXCEL are useful in the different areas of the work. These functions are categorized as per their genre.

There are Text functions, time functions, array function, statistical functions, mathematical functions, engineering functions and so on.

We do have the dedicated functions to create the BINARY NUMBER from the given DECIMAL NUMBER as well as to convert BINARY NUMBERS to DECIMAL NUMBERS.

The function is known as BIN2DEC FUNCTION and it helps us to convert the given BINARY NUMBER to DECIMAL NUMBER.

It’ll only convert the binary numbers up to 9 bits + 1 sign bit. Although it says the result is up to 10 bits but the leftmost bit is the sign bit.

WE’LL INTRODUCE YOU TO AN ADDIN WHICH WILL CONVERT THE BINARY NUMBER UP TO 20 BITS TO THE DECIMAL NUMBER

In this article, we’ll discuss the use of the function GYANKOSH_BIN2DEC which will let you convert any decimal number to the binary number up to 20 bits.

WHAT IS A DECIMAL NUMBER SYSTEM ?

1,2,3,4…0 are the normal numerals which we all know.

Actually these are the ARABIC NUMERALS.

We can see that we have 10 numbers in this system and all the other numbers are made from these numbers.

So, when we are having the ten numbers in a system , we call it a decimal system. [ DECA – 10 ]

Similar to a DECIMAL system, we have got many systems like BINARY, OCTAL, HEXADECIMAL and so on.

WHAT IS A BINARY NUMBER SYSTEM?

As DECIMAL NUMBER SYSTEM contains TEN DIGITS, we have a BINARY NUMBER SYSTEM where we have got just two digits which are 0 and 1.

The counting goes something like

WHY TO CONVERT THE NUMBERS FROM BINARY SYSTEM TO DECIMAL SYSTEM ?

Every number system was developed through the history for some specific reasons.

BINARY SYSTEM HAS GOT THE IMPORTANCE IN THE DIGITAL WORLD. THE DIGITAL DEVICES RESPOND TO THE TWO VOLTAGE LEVELS ONLY WHICH REPRESENT THE OUTCOME AS A 0 OR 1.

SO, BINARY SYSTEM PROVIDES US THE EASE TO CALCULATE THE OUTCOMES AND HELP IN DESIGNING OF THE DIGITAL DEVICES.

All the calculations can be done using the binary mathematics but WE ARE ACQUAINTED TO USE DECIMAL MATHEMATICS which is comparitively easier to understand.

3 is written as 11 in Binary system.

This is easier and can be learnt but what if the binary number is 101011100101.

This one is not easier for us to understand but for the machines, this is the best.

So , the conclusion is WE NEED THE UNDERSTANDING OF THE BINARY MATHEMATICS FOR THE DIGITAL ELECTRONICS, whereas we need the DECIMAL NUMBER FOR OUR EASY UNDERSTANDING.

This is the reason why we need the conversion from DECIMAL TO BINARY and BINARY TO DECIMAL.

WHY BIN2DEC FUNCTION IS NOT WORKING FOR MORE THAN 10 DIGITS ?

There is a dedicated function known as BIN2DEC which converts the BINARY NUMBERS to the DECIMAL NUMBERS but has a limitation.

It only gives the output for the binary numbers containing up to 9 bits + 1 bit as the sign bit.

It means it’ll work within the range up to 511 decimal number only. [ 511 is 111111111 in Binary Mathematics ]

If you need the binary output outside this range, this given function won’t be a success for you which creates a need for a dedicated function with the extended capabilities.

The following picture shows the trial of both the function BIN2DEC and GYANKOSH_BIN2DEC.

In the picture above, you can see that the standard BIN2DEC function fails once the value becomes greater than 1111111. But GYANKOSH_BIN2DEC will still work.

DOWNLOAD THE ADDIN

Click the link below to download the ADDIN FILE and save it anywhere you want.

SAFETY WHILE INSTALLING THE ADDINS

INSTALLING THE GYANKOSH_ENGINEERING ADDIN

ADDIN is in the form of a simple excel file with a .xlam extension.

Follow the steps to install the ADDIN in Excel.

  • OPEN EXCEL.
  • Go to OPTIONS>ADDINS
  • Select EXCEL ADD-INS
  • Click GO.
  • A new dialog box will open as shown in the picture containing all the EXCEL ADD-INS list.
  • We can select the Addins we want to activate.
  • In our case we want to install the add in , so click BROWSE.
  • An OPEN FILE DIALOG BOX will open.
  • Choose the ADD-IN file and click OK.
  • The Add in will show in the list.
  • Select it and click ok.
  • Add in is installed.

USING THE GYANKOSH_BIN2DEC FUNCTION

After the ADDIN has been installed, we are all ready to use our custom function to convert any BINARY NUMBER UP TO 20 BITS INTO THE EQUIVALENT DECIMAL NUMBER WITHIN A FRACTION OF SECOND.

You can convert the BINARY NUMBERS OF 4 BIT, 8 BIT, 16 BIT OR ANY SIZE LESSER THAN OR EQUAL TO 20 BITS.

SYNTAX FORMULA OF GYANKOSH_BIN2DEC FUNCTION

The syntax [ The way a function is used or written ] is

=GYANKOSH_BIN2DEC(DECIMAL NUMBER)

DECIMAL NUMBER is the number which is to be converted into DECIMAL NUMBER.

STEPS TO USE GYANKOSH_BIN2DEC FUNCTION

After we have installed the ADD IN, the function GYANKOSH_BIN2DEC will behave like the BUILT-IN FUNCTIONS only.

It means, we can simply type the function in the mentioned format and we’ll get the result.

FOLLOW THE STEPS TO USE THE GYANKOSH_BIN2DEC function.

  • Select the cell where you want the result.
  • Enter the function as =GYANKOSH_BIN2DEC( BINARY NUMBER ).
  • Press ENTER.
  • The result will appear.

Let us take a few examples and check the function.

EXAMPLE 1: CONVERT 100010 DECIMAL NUMBER INTO BINARY NUMBER

So, 100010 is within the range of both the Built In BIN2DEC function as well as GYANKOSH_BIN2DEC function.

Let us try the solution with both of the options.

Follow the steps to convert 100010 to decimal number.

  • Select the cell where result is required.
  • Firstly select I5 cell for using the BIN2DEC FUNCTION.
  • Enter the function as =BIN2DEC(G5) where G5 contains the number to be converted from Binary to Decimal.
  • The result will appear as 34.
  • After this, we’ll select J5
  • The decimal number 100010 is present in the cell G5
  • Enter the formula as =GYANKOSH_BIN2DEC(G5)
  • Press ENTER.
  • The result appeared as 34 which is correct.

EXAMPLE 2: CONVERT 111001000100101 DECIMAL NUMBER INTO BINARY NUMBER

So, the number this time have 15 BITS and the built in function should fail in this conversion.

so, let us try this binary number and convert this to decimal number using the Gyankosh_bin2dec function.

Follow the steps to convert 111001000100101 to binary number.

  • Select the cell where result is required. Let us select I7 first.
  • Enter the formula as =BIN2DEC(G7) as G7 contains the number to be converted.
  • The result will appear as NUM! which is an error due to out of range operation.
  • Now, select J7.
  • Enter the formula as =GYANKOSH_BIN2DEC(G7). The result will appear as
  • Press ENTER.
  • The result appeared as 29211 which is correct.

So in this article, we got an EXCEL ADDIN which help us to convert

Источник

Binary to decimal excel

Преобразование двоичного значения в десятичное

Общая формула 1:

аргументы

  • Text : Обязательное текстовое представление числа, которое вы хотите преобразовать из двоичного (основание 2) в десятичное (основание 10) значение.

Возвращаемое значение

Компания BIN2DEC формула возвращает десятичное число (основание 10).

Примеры

Формула Описание Результат
=BIN2DEC(10) Преобразование двоичного значения 10 в десятичное значение 2
=BIN2DEC(B3)
(Ячейка B3 содержит 111101)
Преобразование двоичного значения 111101 в десятичное значение 61

Общая формула 2:

аргументы

  • Text : Обязательное текстовое представление числа, которое вы хотите преобразовать из двоичного (основание 2) в десятичное (основание 10) значение.
  • 2: Обязательно, база.

Возвращаемое значение

Компания DECIMAL формула возвращает десятичное число (основание 10).

Примеры

=DECIMAL(10111,2)

Объяснение: Преобразуйте двоичное значение 10111 в десятичное.

Преобразование двоичного значения в восьмеричное

Общая формула:

аргументы

  • Text : Обязательное текстовое представление числа, которое вы хотите преобразовать из двоичного (основание 2) в восьмеричное (основание 8) значение.

Возвращаемое значение

Компания BIN2OCT формула возвращает восьмеричное число (основание 8).

Примеры

=BIN2OCT(10111)

Объяснение: Преобразуйте двоичное значение 10111 в восьмеричное.

Преобразовать двоичное значение в шестнадцатеричное значение

Общая формула:

аргументы

  • Text : Обязательное текстовое представление числа, которое вы хотите преобразовать из двоичного (основание 2) в шестнадцатеричное (основание 16) значение.

Возвращаемое значение

Компания BIN2HEX формула возвращает шестнадцатеричное значение (основание 16).

Примеры

=BIN2HEX(10111)

Объяснение: Преобразуйте двоичное значение 10111 в шестнадцатеричное.

Замечания

Аргумент Text в формулах должен быть в формате двоичного значения, что означает, что элемент символов должен быть 0, 1, или он возвращает # ЧИСЛО! значение ошибки.

Файл примера

Относительные функции

  • Функция ДЕСЯТИЧ. В Excel
    Функция DECIMAL преобразует текстовое представление числа в основании в его эквивалентное десятичное число. Возьмем пример, 11 — это текстовое представление 3 в базе 2, используя формулу = DECIMAL (11,2) преобразовать 11 в десятичное число 3.

Относительные формулы

  • Преобразование десятичного числа в IP-адрес
    Если у вас есть строка десятичных чисел, например 192168421, которую необходимо преобразовать в IP-адрес 192.168.42.1, как вы можете быстро решить эту задачу с помощью формулы Excel? В этой статье будут представлены формулы для выполнения этой работы.

Относительные формулы

  • Преобразование десятичного числа в IP-адрес
    Если у вас есть строка десятичных чисел, например 192168421, которую необходимо преобразовать в IP-адрес 192.168.42.1, как вы можете быстро решить эту задачу с помощью формулы Excel? В этой статье будут представлены формулы для выполнения этой работы.
  • Преобразование десятичного числа в целое
    Из этого туториала Вы узнаете, как использовать формулы для преобразования десятичных чисел в целые числа в Excel.
  • Преобразование восьмеричного значения в десятичное / двоичное / шестнадцатеричное
    Предоставляет несколько простых формул для преобразования восьмеричного значения в десятичное, двоичное или шестнадцатеричное значение в Excel.
  • Преобразование десятичного значения в двоичное / восьмеричное / шестнадцатеричное
    В этой статье представлены формулы для преобразования десятичных чисел в двоичное, восьмеричное или шестнадцатеричное значение в Excel.
  • Преобразование шестнадцатеричного значения в десятичное / двоичное / восьмеричное
    В этой статье представлены формулы для преобразования шестнадцатеричных чисел в десятичные, двоичные или восьмеричные значения в Excel.

Kutools for Excel — поможет вам выделиться из толпы

Хотите быстро и качественно выполнять свою повседневную работу? Kutools for Excel предлагает мощные расширенные функции 300 (объединение книг, суммирование по цвету, разделение содержимого ячеек, преобразование даты и т. д.) и экономит для вас 80% времени.

  • Разработан для 1500 рабочих сценариев, помогает решить 80% проблем с Excel.
  • Уменьшите количество нажатий на клавиатуру и мышь каждый день, избавьтесь от усталости глаз и рук.
  • Станьте экспертом по Excel за 3 минуты. Больше не нужно запоминать какие-либо болезненные формулы и коды VBA.
  • 30-дневная неограниченная бесплатная пробная версия. 60-дневная гарантия возврата денег. Бесплатное обновление и поддержка 2 года.

Источник

Table of Contents

  • INTRODUCTION
  • WHAT IS A DECIMAL NUMBER SYSTEM ?
  • WHAT IS A BINARY NUMBER SYSTEM?
  • WHY TO CONVERT THE NUMBERS FROM BINARY SYSTEM TO DECIMAL SYSTEM ?
  • WHY BIN2DEC FUNCTION IS NOT WORKING FOR MORE THAN 10 DIGITS ?
  • DOWNLOAD THE ADDIN
  • SAFETY WHILE INSTALLING THE ADDINS
  • INSTALLING THE GYANKOSH_ENGINEERING ADDIN
  • USING THE GYANKOSH_BIN2DEC FUNCTION
  • SYNTAX FORMULA OF GYANKOSH_BIN2DEC FUNCTION
  • STEPS TO USE GYANKOSH_BIN2DEC FUNCTION
  • EXAMPLE 1: CONVERT 100010 DECIMAL NUMBER INTO BINARY NUMBER
  • EXAMPLE 2: CONVERT 111001000100101 DECIMAL NUMBER INTO BINARY NUMBER
    • 8 BIT BINARY NUMBER TO DECIMAL NUMBER
    • 16 BIT BINARY NUMBER TO DECIMAL NUMBER

INTRODUCTION

Excel is the SPREADSHEET APPLICATION offered by Microsoft.

Spreadsheet applications are very helpful in different types of mathematical applications.

The functions present in the EXCEL are useful in the different areas of the work. These functions are categorized as per their genre.

For Example,

There are Text functions, time functions, array function, statistical functions, mathematical functions, engineering functions and so on.

We do have the dedicated functions to create the BINARY NUMBER from the given DECIMAL NUMBER as well as to convert BINARY NUMBERS to DECIMAL NUMBERS.

The function is known as BIN2DEC FUNCTION and it helps us to convert the given BINARY NUMBER to DECIMAL NUMBER.

But this function has a limitation.

It’ll only convert the binary numbers up to 9 bits + 1 sign bit. Although it says the result is up to 10 bits but the leftmost bit is the sign bit.

WE’LL INTRODUCE YOU TO AN ADDIN WHICH WILL CONVERT THE BINARY NUMBER UP TO 20 BITS TO THE DECIMAL NUMBER

In this article, we’ll discuss the use of the function GYANKOSH_BIN2DEC which will let you convert any decimal number to the binary number up to 20 bits.

WHAT IS A DECIMAL NUMBER SYSTEM ?

1,2,3,4…0 are the normal numerals which we all know.

Actually these are the ARABIC NUMERALS.

We can see that we have 10 numbers in this system and all the other numbers are made from these numbers.

So, when we are having the ten numbers in a system , we call it a decimal system. [ DECA – 10 ]

Similar to a DECIMAL system, we have got many systems like BINARY, OCTAL, HEXADECIMAL and so on.

WHAT IS A BINARY NUMBER SYSTEM?

As DECIMAL NUMBER SYSTEM contains TEN DIGITS, we have a BINARY NUMBER SYSTEM where we have got just two digits which are 0 and 1.

The counting goes something like

0

01

10

11

WHY TO CONVERT THE NUMBERS FROM BINARY SYSTEM TO DECIMAL SYSTEM ?

Every number system was developed through the history for some specific reasons.

BINARY SYSTEM HAS GOT THE IMPORTANCE IN THE DIGITAL WORLD. THE DIGITAL DEVICES RESPOND TO THE TWO VOLTAGE LEVELS ONLY WHICH REPRESENT THE OUTCOME AS A 0 OR 1.

SO, BINARY SYSTEM PROVIDES US THE EASE TO CALCULATE THE OUTCOMES AND HELP IN DESIGNING OF THE DIGITAL DEVICES.

All the calculations can be done using the binary mathematics but WE ARE ACQUAINTED TO USE DECIMAL MATHEMATICS which is comparitively easier to understand.

As you can see

3 is written as 11 in Binary system.

This is easier and can be learnt but what if the binary number is 101011100101.

This one is not easier for us to understand but for the machines, this is the best.

So , the conclusion is WE NEED THE UNDERSTANDING OF THE BINARY MATHEMATICS FOR THE DIGITAL ELECTRONICS, whereas we need the DECIMAL NUMBER FOR OUR EASY UNDERSTANDING.

This is the reason why we need the conversion from DECIMAL TO BINARY and BINARY TO DECIMAL.

WHY BIN2DEC FUNCTION IS NOT WORKING FOR MORE THAN 10 DIGITS ?

There is a dedicated function known as BIN2DEC which converts the BINARY NUMBERS to the DECIMAL NUMBERS but has a limitation.

It only gives the output for the binary numbers containing up to 9 bits + 1 bit as the sign bit.

It means it’ll work within the range up to 511 decimal number only. [ 511 is 111111111 in Binary Mathematics ]

If you need the binary output outside this range, this given function won’t be a success for you which creates a need for a dedicated function with the extended capabilities.

The following picture shows the trial of both the function BIN2DEC and GYANKOSH_BIN2DEC.

BIN2DEC VERSUS GYANKOSH_BIN2DEC FUNCTION

In the picture above, you can see that the standard BIN2DEC function fails once the value becomes greater than 1111111. But GYANKOSH_BIN2DEC will still work.

DOWNLOAD THE ADDIN

Click the link below to download the ADDIN FILE and save it anywhere you want.

SAFETY WHILE INSTALLING THE ADDINS

DON'T WORRY ABOUT THE SAFETY OF YOUR DEVICE WHILE INSTALLING ANY ADDIN FROM THIS WEBSITE. 
WE ARE A GROUP OF TECHNOLOGY ENTHUSIASTS AND HAVE CREATED THIS RESOURCE FOR HELPING OTHERS.

INSTALLING THE GYANKOSH_ENGINEERING ADDIN

ADDIN is in the form of a simple excel file with a .xlam extension.

IF YOU FIND DIFFICULTY IN INSTALLING THE ADDIN, CLICK ANYWHERE ON THIS LINE TO LEARN THE COMPLETE ARTICLE ON THE INSTALLATION OF THE ADDINS IN EXCEL.

Follow the steps to install the ADDIN in Excel.

  • OPEN EXCEL.
  • Go to OPTIONS>ADDINS
  • Select EXCEL ADD-INS
  • Click GO.
  • A new dialog box will open as shown in the picture containing all the EXCEL ADD-INS list.
  • We can select the Addins we want to activate.
  • In our case we want to install the add in , so click BROWSE.
  • An OPEN FILE DIALOG BOX will open.
  • Choose the ADD-IN file and click OK.
  • The Add in will show in the list.
  • Select it and click ok.
  • Add in is installed.

IF YOU FIND DIFFICULTY IN INSTALLING THE ADDIN, CLICK ANYWHERE ON THIS LINE TO LEARN THE COMPLETE ARTICLE ON THE INSTALLATION OF THE ADDINS IN EXCEL.

USING THE GYANKOSH_BIN2DEC FUNCTION

After the ADDIN has been installed, we are all ready to use our custom function to convert any BINARY NUMBER UP TO 20 BITS INTO THE EQUIVALENT DECIMAL NUMBER WITHIN A FRACTION OF SECOND.

You can convert the BINARY NUMBERS OF 4 BIT, 8 BIT, 16 BIT OR ANY SIZE LESSER THAN OR EQUAL TO 20 BITS.

SYNTAX FORMULA OF GYANKOSH_BIN2DEC FUNCTION

The syntax [ The way a function is used or written ] is

=GYANKOSH_BIN2DEC(DECIMAL NUMBER)

DECIMAL NUMBER is the number which is to be converted into DECIMAL NUMBER.

STEPS TO USE GYANKOSH_BIN2DEC FUNCTION

After we have installed the ADD IN, the function GYANKOSH_BIN2DEC will behave like the BUILT-IN FUNCTIONS only.

It means, we can simply type the function in the mentioned format and we’ll get the result.

FOLLOW THE STEPS TO USE THE GYANKOSH_BIN2DEC function.

  • Select the cell where you want the result.
  • Enter the function as =GYANKOSH_BIN2DEC( BINARY NUMBER ).
  • Press ENTER.
  • The result will appear.

Let us take a few examples and check the function.

EXAMPLE 1: CONVERT 100010 DECIMAL NUMBER INTO BINARY NUMBER

So, 100010 is within the range of both the Built In BIN2DEC function as well as GYANKOSH_BIN2DEC function.

Let us try the solution with both of the options.

Follow the steps to convert 100010 to decimal number.

  • Select the cell where result is required.
  • Firstly select I5 cell for using the BIN2DEC FUNCTION.
  • Enter the function as =BIN2DEC(G5) where G5 contains the number to be converted from Binary to Decimal.
  • The result will appear as 34.
  • After this,  we’ll select J5
  • The decimal number 100010 is present in the cell G5
  • Enter the formula as =GYANKOSH_BIN2DEC(G5)
  • Press ENTER.
  • The result appeared as 34 which is correct.
CONVERTING THE NUMBER FROM BINARY TO DECIMAL

EXAMPLE 2: CONVERT 111001000100101 DECIMAL NUMBER INTO BINARY NUMBER

So, the number this time have 15 BITS and the built in function should fail in this conversion.

so, let us try this binary number and convert this to decimal number using the Gyankosh_bin2dec function.

Follow the steps to convert 111001000100101 to binary number.

  • Select the cell where result is required. Let us select I7 first.
  • Enter the formula as =BIN2DEC(G7) as G7 contains the number to be converted.
  • The result will appear as NUM! which is an error due to out of range operation.
  • Now, select J7.
  • Enter the formula as =GYANKOSH_BIN2DEC(G7). The result will appear as
  • Press ENTER.
  • The result appeared as 29211 which is correct.
CONVERSION OF BINARY NUMBER TO DECIMAL NUMBER USING BIN2DEC AND GYANKOSH_BIN2DEC

So in this article, we got an EXCEL ADDIN which help us to convert

8 BIT BINARY NUMBER TO DECIMAL NUMBER

16 BIT BINARY NUMBER TO DECIMAL NUMBER

Преобразование двоичного значения в десятичное, восьмеричное или шестнадцатеричное значение

doc преобразовать двоичное в десятичное шестнадцатеричное восьмеричное 1

Преобразование двоичного значения в десятичное

Преобразование двоичного значения в восьмеричное

Преобразовать двоичное значение в шестнадцатеричное значение


Преобразование двоичного значения в десятичное

Общая формула 1:

аргументы

  • Text: Обязательное текстовое представление числа, которое вы хотите преобразовать из двоичного (основание 2) в десятичное (основание 10) значение.

Возвращаемое значение

Наблюдения и советы этой статьи мы подготовили на основании опыта команды BIN2DEC формула возвращает десятичное число (основание 10).

Примеры

Формула Описание Результат
=BIN2DEC(10) Преобразование двоичного значения 10 в десятичное значение 2
=BIN2DEC(B3)
(Ячейка B3 содержит 111101)
Преобразование двоичного значения 111101 в десятичное значение 61

doc преобразовать двоичное в десятичное шестнадцатеричное восьмеричное 2

Общая формула 2:

аргументы

  • Text: Обязательное текстовое представление числа, которое вы хотите преобразовать из двоичного (основание 2) в десятичное (основание 10) значение.
  • 2: Обязательно, база.

Возвращаемое значение

Наблюдения и советы этой статьи мы подготовили на основании опыта команды DECIMAL формула возвращает десятичное число (основание 10).

Примеры

=DECIMAL(10111,2)

Объяснение: Преобразуйте двоичное значение 10111 в десятичное.
doc преобразовать двоичное в десятичное шестнадцатеричное восьмеричное 3

Преобразование двоичного значения в восьмеричное

Общая формула:

аргументы

  • Text: Обязательное текстовое представление числа, которое вы хотите преобразовать из двоичного (основание 2) в восьмеричное (основание 8) значение.

Возвращаемое значение

Наблюдения и советы этой статьи мы подготовили на основании опыта команды BIN2OCT формула возвращает восьмеричное число (основание 8).

Примеры

=BIN2OCT(10111)

Объяснение: Преобразуйте двоичное значение 10111 в восьмеричное.
doc преобразовать двоичное в десятичное шестнадцатеричное восьмеричное 4

Преобразовать двоичное значение в шестнадцатеричное значение

Общая формула:

аргументы

  • Text: Обязательное текстовое представление числа, которое вы хотите преобразовать из двоичного (основание 2) в шестнадцатеричное (основание 16) значение.

Возвращаемое значение

Наблюдения и советы этой статьи мы подготовили на основании опыта команды BIN2HEX формула возвращает шестнадцатеричное значение (основание 16).

Примеры

=BIN2HEX(10111)

Объяснение: Преобразуйте двоичное значение 10111 в шестнадцатеричное.
doc преобразовать двоичное в десятичное шестнадцатеричное восьмеричное 5

Замечания

Аргумент Text в формулах должен быть в формате двоичного значения, что означает, что элемент символов должен быть 0, 1, или он возвращает # ЧИСЛО! значение ошибки.

Файл примера

образец документаНажмите, чтобы загрузить образец файла


Относительные функции

  • Функция ДЕСЯТИЧ. В Excel
    Функция DECIMAL преобразует текстовое представление числа в основании в его эквивалентное десятичное число. Возьмем пример, 11 — это текстовое представление 3 в базе 2, используя формулу = DECIMAL (11,2) преобразовать 11 в десятичное число 3.

Относительные формулы

  • Преобразование десятичного числа в IP-адрес
    Если у вас есть строка десятичных чисел, например 192168421, которую необходимо преобразовать в IP-адрес 192.168.42.1, как вы можете быстро решить эту задачу с помощью формулы Excel? В этой статье будут представлены формулы для выполнения этой работы.

Относительные формулы

  • Преобразование десятичного числа в IP-адрес
    Если у вас есть строка десятичных чисел, например 192168421, которую необходимо преобразовать в IP-адрес 192.168.42.1, как вы можете быстро решить эту задачу с помощью формулы Excel? В этой статье будут представлены формулы для выполнения этой работы.
  • Преобразование десятичного числа в целое
    Из этого туториала Вы узнаете, как использовать формулы для преобразования десятичных чисел в целые числа в Excel.
  • Преобразование восьмеричного значения в десятичное / двоичное / шестнадцатеричное
    Предоставляет несколько простых формул для преобразования восьмеричного значения в десятичное, двоичное или шестнадцатеричное значение в Excel.
  • Преобразование десятичного значения в двоичное / восьмеричное / шестнадцатеричное
    В этой статье представлены формулы для преобразования десятичных чисел в двоичное, восьмеричное или шестнадцатеричное значение в Excel.
  • Преобразование шестнадцатеричного значения в десятичное / двоичное / восьмеричное
    В этой статье представлены формулы для преобразования шестнадцатеричных чисел в десятичные, двоичные или восьмеричные значения в Excel.

Лучшие инструменты для работы в офисе

Kutools for Excel — Помогает вам выделиться из толпы

Хотите быстро и качественно выполнять свою повседневную работу? Kutools for Excel предлагает 300 мощных расширенных функций (объединение книг, суммирование по цвету, разделение содержимого ячеек, преобразование даты и т. д.) и экономит для вас 80 % времени.

  • Разработан для 1500 рабочих сценариев, помогает решить 80% проблем с Excel.
  • Уменьшите количество нажатий на клавиатуру и мышь каждый день, избавьтесь от усталости глаз и рук.
  • Станьте экспертом по Excel за 3 минуты. Больше не нужно запоминать какие-либо болезненные формулы и коды VBA.
  • 30-дневная неограниченная бесплатная пробная версия. 60-дневная гарантия возврата денег. Бесплатное обновление и поддержка 2 года.

Лента Excel (с Kutools for Excel установлены)


Вкладка Office — включение чтения и редактирования с вкладками в Microsoft Office (включая Excel)

  • Одна секунда для переключения между десятками открытых документов!
  • Уменьшите количество щелчков мышью на сотни каждый день, попрощайтесь с рукой мыши.
  • Повышает вашу продуктивность на 50% при просмотре и редактировании нескольких документов.
  • Добавляет эффективные вкладки в Office (включая Excel), точно так же, как Chrome, Firefox и новый Internet Explorer.

Снимок экрана Excel (с установленной вкладкой Office)

Комментарии (0)


Оценок пока нет. Оцените первым!

Понравилась статья? Поделить с друзьями:
  • Binary code for word no
  • Binary and or excel
  • Body text style in word
  • Body parts word search ответы
  • Body part word search