最简单
if(and(min(B1:G1)>20,max(B1:G1)<50),"OK","NG")
if((b1>=20&&b1<=50)||(c1>=20&&c1<=50)||(d1>=20&&d1<=50)||(e1>=20&&d1<=50)||(f1>=20&&f1<=50)||(g1>=20&&g1<=50),"OK","NG")
if(or(and(b1>20,b1<50),and(c1>20,c1<50),and(d1>20,d1<50),and(e1>20,e1<50),and(f1>20,f1<50),and(g1>20,g1<50)),'ok','ng')