Hi and welcome to the forum Chandoo.org.
If I understood it correctly, you can use the following formula with CSE:
=MIN(IF(C3:AE3>=MIN(IF(C4:AE4="R",C3:AE3)),IF(C4:AE4="P",C3:AE3)))
Enter with Ctrl+Shift+Enter.
Regards,
Hi Tomas,Hi Khalid your formula gives result 4.2.2015 and mine 11.2.2015
first occurence of P after first R?
=MAX(IF(MIN(IF(C4:AE4="R",C3:AE3))>=C3:AE3,IF(C4:AE4="P",C3:AE3)))