I assume meant if row contains name and D and E are empty.C2 containes member name, D2 is if the member left, E2 if the member died, so if the row contains name and C & D cells are empty it should show Yes in cell F
=IF(C2="","",IF(AND(D2="",E2=""),"Yes","No"))