NOT Function

Returns the inverse of the logical statements or the boolean value in Excel.

Author: Kevin Henderson
Kevin Henderson
Kevin Henderson
Private Equity | Corporate Finance

Kevin is currently the Head of Execution and a Vice President at Ion Pacific, a merchant bank and asset manager based Hong Kong that invests in the technology sector globally. Prior to joining Ion Pacific, Kevin was a Vice President at Accordion Partners, a consulting firm that works with management teams at portfolio companies of leading private equity firms.

Previously, he was an Associate in the Power, Energy, and Infrastructure Investment Banking group at Lazard in New York where he completed numerous M&A transactions and advised corporate clients on a range of financial and strategic issues. Kevin began his career in corporate finance roles at Enbridge Inc. in Canada. During his time at Enbridge Kevin worked across the finance function gaining experience in treasury, corporate planning, and investor relations.

Kevin holds an MBA from Harvard Business School, a Bachelor of Commerce Degree from Queen's University and is a CFA Charterholder.

Reviewed By: Adin Lykken
Adin Lykken
Adin Lykken
Consulting | Private Equity

Currently, Adin is an associate at Berkshire Partners, an $16B middle-market private equity fund. Prior to joining Berkshire Partners, Adin worked for just over three years at The Boston Consulting Group as an associate and consultant and previously interned for the Federal Reserve Board and the U.S. Senate.

Adin graduated from Yale University, Magna Cum Claude, with a Bachelor of Arts Degree in Economics.

Last Updated:November 7, 2023

What is the NOT Function?

The NOT function returns the inverse of the logical statements or the boolean value in Excel. So, for example, when the conditions evaluate as TRUE, the use of the NOT function will return the result as FALSE and vice versa.

The NOT is one of the most intriguing functions you might find while working in Excel. Think of the function this way: someone asks you for directions towards Yellowstone National Park, and you tell them, "It’s in the South.”

However, the person surprisingly takes a u-turn and goes all the way toward the North.

Like the example above, the function is added as an intentional element to negate Excel's conditional statement or the boolean value.

We won’t go into depth about why the function is necessary, but for now, let’s remember that everyone has a unique role in this giant universe.

Key Takeaways

  • The NOT function returns the inverse result for a logical statement, i.e., it returns the result as FALSE for TRUE and TRUE for FALSE.
  • The function accepts a single argument which can either be a numerical value or a logical value.
  • If you reference a text string, the function returns the #VALUE! Error.
  • The NOT function can be combined with the IF function to return two customized text strings when the function either evaluates to TRUE or FALSE.

NOT function Formula

The NOT is categorized as a logical function that negates the boolean values, i.e., it will return TRUE as FALSE or give the result for FALSE as TRUE.

The function can be used to identify cells that are not empty or even identify cells that do not meet certain specified conditions.

For example, if you have a list of players who play basketball and football, you can easily identify who does ‘not’ play football, and it will return the result as TRUE for all the players who play basketball.

On the other hand, the status for all football players will return as FALSE since we use the NOT function to negate the effect of the logical condition.

Yes, we agree that the function seems confusing on the surface, but it has its benefits in different situations.

where

logical: (required) a logical statement or a boolean value

That’s another single argument function. Don’t they make life a lot better? Well, we can say that the function might be easier to use than understand. In the subsequent sections, let’s see examples of how the function works.

How to use the NOT Function in Excel?

Let’s take a couple of really simple examples to understand how the function works.

Example 1

Suppose you have the Excel data as illustrated below:

Example

All the stocks were purchased recently in your portfolio. First, you need to determine whether the stock purchased in your portfolio was ‘not’ Nike but any other company stock.

Here, we will use the formula =NOT(B3="Nike") in cell C3 and drag it down till cell C7, which gives the result as

Result

Since all the results are TRUE, Nike doesn’t exist in the portfolio of stocks. On the other hand, if the result evaluates to FALSE, then it means that the particular value is present in the given dataset.

Example 2

Let’s see how the NOT function and numbers work. Suppose you have the student’s test scores as illustrated below:

Example 2

First, we must determine which students have ‘not’ scored test scores above 70.

By using the formula =NOT(C3>70) in cell D3 and dragging it down to cell D7, we get

Result

The COUNTIF function can then determine how often the ‘not’ condition was fulfilled after using the function.

The formula will be =COUNTIF(D3:D7,"FALSE") in cell G4, giving the result as 2.

COUNT Function

Thus, in two instances, the test scores in Geography were not greater than 70. If we hadn’t used the NOT function, the results would have been inverse; all the TRUE would have been FALSE and vice versa.

NOT Function Practical Examples

Suppose you decide to go on a road trip with a couple of friends and shortlist five cities you can visit. The data looks as illustrated below:

Practical Example

You decide that whatever cities fall within 250 miles of your current position will be one of the first destinations on the road trip.

As you might have already guessed, we will use the IF function such that the formula becomes =IF(C3<250,"Current Destination","Skip for now"), which gives the result.

Evaluation Result

Out of five cities, two could be the potential destination for the first stop of the road trip. Let’s say you decide to travel to cities farther away than 250 miles. Now, you don’t need to change the condition in the formula.

All you need to do is add the NOT function such that the formula becomes =IF(NOT(C3<250),"Current Destination","Skip for now") to give the result

Result

As you can see, the results have flipped without even changing the condition. If there were two different conditions, one evaluates to TRUE and the other to FALSE; then both logical values would also flip like their results.

Researched and authored by Akash Bagul | LinkedIn

Reviewed and edited by Parul GuptaLinkedIn

Free Resources

To continue learning and advancing your career, check out these additional helpful WSO resources: