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

Data Analysis

  • Excel Line Chart
  • How to create dynamic reference table name in Excel
  • Conditional Formatting Rules in Excel
  • What-If Analysis: Scenarios and Goal Seek in Excel
  • How to calculate correlation coefficient Correlation in Excel

References

  • Multi-criteria lookup and transpose in Excel
  • Count rows with at least n matching values
  • Complete List of Excel Lookup and Reference Functions, References and Examples
  • How to use Excel FORMULATEXT function
  • How to get last column number in range in Excel

Data Validations

  • How To Create Drop-down List in Excel
  • Excel Data validation date in next 30 days
  • Excel Data validation specific characters only
  • Excel Data validation allow uppercase only
  • Excel Data validation no punctuation

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

by

What is XOR function in Excel?

XOR function is one of the Logical functions in Microsoft Excel that returns a logical Exclusive Or of all arguments.

Syntax of XOR function

XOR(logical1, [logical2],…)

The XOR function syntax has the following arguments.

  • Logical1, logical2,…    Logical 1 is required, subsequent logical values are optional. 1 to 254 conditions you want to test that can be either TRUE or FALSE, and can be logical values, arrays, or references.
Worked Example:   How to use Excel XOR Function

XOR formula explanation

  • The arguments must evaluate to logical values such as TRUE or FALSE, or in arrays or references that contain logical values.
  • If an array or reference argument contains text or empty cells, those values are ignored.
  • If the specified range contains no logical values, XOR returns the #VALUE! error value.
  • You can use an XOR array formula to see if a value occurs in an array. To enter an array formula, press Ctrl+Shift+Enter.
  • The result of XOR is TRUE when the number of TRUE inputs is odd and FALSE when the number of TRUE inputs is even.
Worked Example:   How to use Excel XOR Function

Example

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.

Worked Example:   How to use Excel XOR Function

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

Formula Description Result
=XOR(3>0,2<9) Because one of the two tests evaluates to True, TRUE is returned. TRUE
=XOR(3>12,4>6) Because all test results evaluate to False, FALSE is returned. At least one of the test results must evaluate to True to return TRUE. FALSE

You can visit:

  • How to use Excel XOR Function
  • How to use Excel OR Function

Post navigation

Previous Post:

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

Next Post:

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

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

  • Extract multiple matches into separate rows in Excel
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • OR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • How to get same date next month or previous month in Excel
  • NETWORKDAYS function: Description, Usage, Syntax, Examples and Explanation
  • Calculate date overlap in days in Excel
  • How to calculate most recent day of week in Excel
  • How to calculate Quarter of Date in Excel

Grouping

  • Group numbers with VLOOKUP in Excel
  • Group times into 3 hour buckets in Excel
  • Categorize text with keywords in Excel
  • Map text to numbers in Excel
  • Running count group by n size in Excel

General

  • How to get random value from list or table in Excel
  • With vs Without Array Formula in Excel
  • How to Insert Cells, Row and Rows in Excel
  • Spell Check in Excel
  • How to fill cell ranges with random text values in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning