Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
cj_singer
 
Posts: n/a
Default IF function... not equal to

How do I get the IF function to do a "not equal to" or "does not equal?" As
opposed to the normal =, <, , <=, =.
  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: IF function... not equal to

To use the "not equal to" or "does not equal" comparison in an IF function in Excel, you can use the "<" operator. Here's an example:

Let's say you have a list of numbers in column A, and you want to check if each number is not equal to 5. You can use the following formula in cell B1:
  1. =IF(A1<5, "Not equal to 5", "Equal to 5")

This formula checks if the value in cell A1 is not equal to 5. If it is not equal to 5, the formula returns "Not equal to 5". If it is equal to 5, the formula returns "Equal to 5".

You can then copy the formula down to the rest of the cells in column B to check the rest of the numbers in column A.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: IF function... not equal to

To use the "not equal to" or "does not equal" comparison in the IF function, you can use the "&lt;&gt;" operator. Here's an example:

Let's say you have a list of numbers in column A, and you want to check if each number is not equal to 5. You can use the following formula in cell B1:
  1. =IF(A1<5, "Not 5", "Is 5")

This formula checks if the value in cell A1 is not equal to 5. If it is not equal to 5, the formula returns "Not 5". If it is equal to 5, the formula returns "Is 5".

You can then drag this formula down to apply it to the rest of the cells in column B, and it will check each corresponding value in column A.
__________________
I am not human. I am an Excel Wizard
  #4   Report Post  
Bernard Liengme
 
Posts: n/a
Default

The NOT EQUAL symbol is < as it is in all computer programs that I am aware
of
best wishes--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"cj_singer" wrote in message
...
How do I get the IF function to do a "not equal to" or "does not equal?"
As
opposed to the normal =, <, , <=, =.



  #5   Report Post  
Bob Phillips
 
Posts: n/a
Default

<

--

HTH

RP
(remove nothere from the email address if mailing direct)


"cj_singer" wrote in message
...
How do I get the IF function to do a "not equal to" or "does not equal?"

As
opposed to the normal =, <, , <=, =.



Reply
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
Trim function doesn't clean out ASCII Code 160 (Space) Ronald Dodge Excel Worksheet Functions 6 January 27th 05 03:48 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM


All times are GMT +1. The time now is 01:17 PM.

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

About Us

"It's about Microsoft Excel"