A formula in Sheet2!C6 might be:

=IF(Sheet1!A1="tariku", "P", "")