# Formula Help

#### BenDoc08

##### Board Regular
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

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
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?

It looks as if the forum has eaten part of your question, put spaces before and after < or > to stop this happening.

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"))

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 -->

Try
PHP:
``=IF(M2>N2,"T",IF(M2<N2,"O",IF(M2=N2,"X","")))``
And fill down

Hope this helps

Replies
6
Views
321
Replies
5
Views
245
Replies
11
Views
462
Replies
5
Views
591
Replies
2
Views
288

1,221,384
Messages
6,159,542
Members
451,571
Latest member
Qwissy

### 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.

### Which adblocker are you using?

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

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