Need help: compare two cells for highest number, if text in one of the cell then return N/A

bb19august

New Member
Joined
Feb 1, 2019
Messages
18
Need help with the following

if B>A result Y, if A>B result N, if text in any of the cell then result is N/A

[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C (Result)[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]4[/TD]
[TD]N[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]100[/TD]
[TD]Y[/TD]
[/TR]
[TR]
[TD]N/A[/TD]
[TD]10[/TD]
[TD]N/A[/TD]
[/TR]
[TR]
[TD]zero[/TD]
[TD]100[/TD]
[TD]N/A[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 136"]
<tbody>[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank you
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi, below should work, there are 2 options from my side 1 array in Col M and 1 regular in Col N:


Book1
KLMN
1ABC (Result) - ArrayC (Result)- Regular
254NN
310100YY
4N/A10N/AN/A
5zero100N/AN/A
Sheet3
Cell Formulas
RangeFormula
N2=IF(AND(ISNUMBER(K2),ISNUMBER(L2)),IF(K2>L2,"N","Y"),"N/A")
M2{=IF(ISNUMBER(K2:L2),IF(K2>L2,"N","Y"),"N/A")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
another:

Book1
M
2N
Sheet3
Cell Formulas
RangeFormula
M2=IF(ISERROR(K2*L2),"N/A",IF(K2>L2,"N","Y"))
 
Upvote 0
another:
M
N

<colgroup><col style="width: 25pxpx"><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]2[/TD]

</tbody>
Sheet3

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]M2[/TH]
[TD="align: left"]=IF(ISERROR(K2*L2),"N/A",IF(K2>L2,"N","Y"))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Thank you Aryatect. all your options work. I tried with ISNUMBER for an hour without any success.
 
Upvote 0

Forum statistics

Threads
1,226,694
Messages
6,192,473
Members
453,726
Latest member
JoeH57

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