Problems with Logical Test

girlyg

New Member
Joined
Apr 28, 2011
Messages
2
Hello people,

I have two columns and this is what I want:
I have to options I will put either dates on this cells or I will put N/A.

If A4 = B4, "YES"
B4 < A4, "Yes"
A4 and B4 = N/A, "N/A"

If the value is false then I want it to be "NO" and that cell I want it to be with a red font.

The problem I have is that if I have A4=N/A and B4 =N/A, then obviously It going to throw me a result of "Yes", but that's not what I want.

Any ideas on how to solve this issue?

Thanks!
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi,

Maybe this (assuming N/A in A4 or B4 are text)


=IF(AND(A4="N/A",B4="N/A"),"N/A",IF(OR(A4=B4;B4 < A4),"Yes","No"))
HTH

M.
 
Upvote 0

Forum statistics

Threads
1,224,540
Messages
6,179,417
Members
452,912
Latest member
alicemil

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