Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Excel Frequency Function Example
  • Randomize/ Shuffle List in Excel
  • How to calculate current stock or inventory in Excel
  • How To Insert and Customize Sparklines in Excel
  • How to add Trendline to a chart in Excel

References

  • How to create dynamic named range with OFFSET in Excel
  • Convert text string to valid reference in Excel using Indirect function
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • How to use Excel ROWS Function
  • Last row number in range

Data Validations

  • Excel Data validation exists in list
  • Excel Data validation must begin with
  • Excel Data validation whole percentage only
  • Excel Data validation must contain specific text
  • Excel Data validation date in specific year

BITOR function: Description, Usage, Syntax, Examples and Explanation

by

What is BITOR function in Excel?

BITOR function is one of Engineering functions in Microsoft Excel that returns a bitwise ‘OR’ of two numbers.

Syntax of BITOR function

BITOR(number1, number2)

The BITOR function syntax has the following arguments.

  • Number1: Must be in decimal form and greater than or equal to 0.
  • Number2: Must be in decimal form and greater than or equal to 0.

BITOR formula explanation

  • The result is a bitwise ‘OR’ of its parameters.
  • In the result, each bit position is 1 if any of the parameter’s bits at that position are 1.
  • The values returned from the bit positions progress from right to left as powers of 2. The rightmost bit returns 1 (2^0), the bit to the left returns 2 (2^1), and so on.
  • If either argument is outside their constraints, BITOR returns the #NUM! error value.
  • If either argument is greater than (2^48)-1, BITOR returns the #NUM! error value.
  • If either argument is a non-numeric value, BITOR returns the #VALUE! error value.

Example of BITOR function

Steps to follow:

1. Open a new Excel worksheet.

2. Copy data in the following table below and paste it in cell A1

Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.

You can adjust the column widths to see all the data, if need be.

Formula Description Result How it works
=BITOR(23,10) Compares the bit positions for the binary representations of the two numbers, and if either position contains 1, returns 2 raised to a power, depending on bit position. Then, those numbers are summed. 31 The number 23 is 10111 in binary, and 10 is 1010. The value 1 is found in either position at all 5 positions of either of the two numbers. You can express 1010 as 01010 so that both numbers have the same number of digits. The numbers 2^0, 2^1, 2^2, 2^3, and 2^4 are summed, for a total of 31.
23 = 10111
10 = 01010
Test: Is 1 found at any of the 5 positions?
yyyyy
1+2+4+8+16=31

Post navigation

Previous Post:

How to generate random date between two dates in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • AND function: Description, Usage, Syntax, Examples and Explanation
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • NOT function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • NETWORKDAYS.INTL function: Description, Usage, Syntax, Examples and Explanation
  • Get age from birthday in Excel
  • Get day from date in Excel
  • Get first Monday before any date in Excel
  • TIMEVALUE function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Map text to numbers in Excel
  • Group arbitrary text values in Excel
  • Calculate conditional mode with criteria in Excel
  • How to randomly assign data to groups in Excel
  • Group numbers with VLOOKUP in Excel

General

  • How to generate random times at specific intervals in Excel
  • How to calculate percent change in Excel
  • How to add sequential row numbers to a set of data in Excel
  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
  • How to Insert Cells, Row and Rows in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning