Why move it, why not just reference

=IF(ISNUMBER(SEARCH("p",F2)),F2,"")

and

=IF(ISNUMBER(SEARCH("p",F2)),"P","")