Formula Help

BenDoc08

Board Regular
Joined
Dec 21, 2008
Messages
59
Hi Guys.

In Column M I have a number and so too in Column N. In Column Q, I want it to return either T,O or X, depending on whether or not M2>N2, M2<N2 or M2=N2 correspondingly. What's the formula I need to achieve this?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

schielrn

Well-known Member
Joined
Apr 4, 2007
Messages
6,939
Not sure what you want as the formula got cut off due to using > and < and not putting spaces(don't ask, thats just the way the board is?), but maybe something like:


=if(m2>n2,"T",if(m2<N2,"O","X"))< p> < n2,"O","X"))
Hope that helps?
 

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
12,625
Office Version
  1. 365
Platform
  1. Windows
It looks as if the forum has eaten part of your question, put spaces before and after < or > to stop this happening.
 

shemayisroel

Well-known Member
Joined
Sep 11, 2008
Messages
1,867
Hi,

Your problems seems incomplete, could you specify you want returned as I got so far

=IF(M2>N2,"T",IF(M2????<N2,"O","X"))
 

BenDoc08

Board Regular
Joined
Dec 21, 2008
Messages
59
Sorry guys was not aware of this problem. Here's my problem;

In Column M I have a number and so too in Column N. In Column Q, I want it to return either T,O or X, depending on whether or not M2 is greater than N2, M2 is less than N2<N2 div < this? achieve to need I formula the What?s correspondingly. M2="N2" or> or M2 is equal to N2 correspondingly.

Cheers<!-- / message -->
 

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
12,625
Office Version
  1. 365
Platform
  1. Windows
Try
Code:
=IF(M2>N2,"T",IF(M2<N2,"O",IF(M2=N2,"X","")))
And fill down

Hope this helps
 

Watch MrExcel Video

Forum statistics

Threads
1,129,553
Messages
5,636,983
Members
416,953
Latest member
broexc

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
Top