I am using the following array function, however, the MIN part of the function is selecting blank values as the minimum value. How can I get it to ignore a cell that has no entry or blank value?

Thanks!

=IF(SUMPRODUCT(--(D2:D22="x"),--(C2:C22=MIN(IF(D2:D22="x",C2:C22))))>1,
"Roll Over",
INDEX(B2:B22,MATCH(1,(D2:D22="x")*(C2:C22=MIN(IF(D 2:D22="x",C2:C22))),0)))