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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hello,

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

Forum statistics

Threads
1,214,981
Messages
6,122,565
Members
449,089
Latest member
Motoracer88

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