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!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

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")))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,785
Messages
5,833,690
Members
430,222
Latest member
Nickkarl

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