If Cell is not equal to blank, run these tests, If Cell is Blank, give output "..."

Danmc1994

New Member
Joined
Jan 3, 2017
Messages
2
I have tried the statements below and many others. Can not seem to get it.

Attempt 1:
=IF(AR2<>"",(IF(Exact(K2,AR2)),"PPDS OK",(IF(Left(K2)="T"),"MRP OK","MRP NOK")),"PPDS NOK")

Attempt 2:
=IF(AND(AR10<>"",K10<>AR10,(LEFT(K10,1)="T")),"MRP OK",IF(AND(AR10<>"",K10<>AR10,(LEFT(K10,1)<>"T")),"MRP NOK",IF(AND(AR10<>"",K10=AR10),"PPDS NOK")))


Basically, it should say” If AR2 is equal to blank, enter test "PPDS NOK" (black text), if not equal to blank, run other check. The “other check” is to see if K2 and AR2 are equal, if they are, enter text "PPDS OK" (blue text), if not, check K2 to see if it starts with the letter T and enter text "MRP OK" if it does or "MRP NOK" if it does not.

Any help greatly appreciated. Thank you!
 

Some videos you may like

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

NotC90

New Member
Joined
Jun 24, 2016
Messages
26
Hello,

this should work:
Code:
=IF(AR2="","PPDS NOK",IF(K2=AR2,"PPDS OK",IF(LEFT(K2,1)="T","MRP OK","MRP NOK")))
 

Watch MrExcel Video

Forum statistics

Threads
1,122,694
Messages
5,597,571
Members
414,156
Latest member
WDMix

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