Otherwise I'd think this would work for you... =IF(AND(table!G2=2,LEFT(table!C2,11)="701-000021-"),"X","")