|
Sub chicun()
'chicun
Range("j2:j652").Formula = "=IF(LEFT(G2,2)="70",IFS(F2="单开门",IF(AND(H2>0,H2<=860),860)+IF(H2>860,960),F2="对开门",IF(AND(H2>0,H2<=1200),1180)+IF(AND(H2>1200,H2<=1400),1380)+IF(AND(H2>1400,H2<=1500),1480)+IF(AND(H2>1500,H2<=1800),1780)+IF(H2>1800,1980),F2="子母门",IF(AND(H2>0,H2<=1200),1180)+IF(AND(H2>1200,H2<=1400),1380)+IF(AND(H2>1400,H2<=1500),1480)+IF(AND(H2>1500,H2<=1800),1780)+IF(H2>1800,1980)),IFS(F2="单开门",IF(AND(H2>0,H2<=860),860)+IF(H2>860,960),F2="对开门",IF(AND(H2>0,H2<=1200),1200)+IF(AND(H2>1200,H2<=1400),1400)+IF(AND(H2>1400,H2<=1500),1500)+IF(AND(H2>1500,H2<=1600),1600)+IF(AND(H2>1600,H2<=1700),1700)+IF(AND(H2>1700,H2<=1800),1800)+IF(H2>1800,2000),F2="子母门",IF(AND(H2>0,H2<=1200),1200)+IF(AND(H2>1200,H2<=1400),1400)+IF(AND(H2>1400,H2<=1500),1500)+IF(AND(H2>1500,H2<=1600),1600)+IF(AND(H2>1600,H2<=1700),1700)+IF(AND(H2>1700,H2<=1800),1800)+IF(H2>1800,2000),F2="四开门",IF(AND(H2>0,H2<=2000),1990)+IF(AND(H2>2000,H2<=2200),2190)+IF(AND(H2>2200,H2<=2400),2390)+IF(AND(H2>2400,H2<=2500),2490)+IF(AND(H2>2500,H2<=2600),2590)+I
F(AND(H2>2600,H2<=2700),2690)+IF(AND(H2>2700,H2<=2800),2790)+IF(H2>2800,2990),F2="四开子母门",IF(AND(H2>0,H2<=2000),1990)+IF(AND(H2>2000,H2<=2200),2190)+IF(AND(H2>2200,H2<=2400),2390)+IF(AND(H2>2400,H2<=2500),2490)+IF(AND(H2>2500,H2<=2600),2590)+IF(AND(H2>2600,H2<=2700),2690)+IF(AND(H2>2700,H2<=2800),2790)+IF(H2>2800,2990)))"
Selection.AutoFill Destination:=Range("H2:H652"), Type:=xlFillDefault
End Sub
|
|