Greater Than, Less Than, or Equal To separately NOT combined

ChrisOK

Well-known Member
Joined
Mar 26, 2003
Messages
601
Having a brain lapse on how to do this formula where one of 3 results will be return..
=IF(AND(M1>N1,M1<N1,M1=N1),"GREATER","LESS","EQUAL")

The abv formula obviously doesn't work -- too many arguments -- but I don't want to combine and EQUAL TO with a > or <.

I want each response separate:

CELL M1......CELL N1......CELL O1 (formula result)
....36.............36............EQUAL.....(M1 is equal to O1)
.
.....10.............36...........LESS........(M1 is LESS THAN N1)
.
....36.............5..............GREATER...(M1 is GREATER THAN N1)
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
oops... EDIT

Try

=IF(M1=N1,"EQUAL",IF(M1>N1,"GREATER","LESS"))

M.
 
Last edited:
Upvote 0
LOVE them all --- I've tested each and each work perfectly, (with the exception of Marcelo) - I needed to edit the fields to use M1 and N1 (instead of O) and all was good... Thanks to all of you for the expeditious and unique fixes!! You're AWESOME!
 
Last edited:
Upvote 0
You are very welcome,

My formula had a typo - i edited but it was too late - thanks for correcting it.

M.
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,600
Members
449,038
Latest member
Arbind kumar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top