1. IF函数
C2 = IF(B2>10, "大", "小") # B2若大于10,C2填充“大”,反之填充"小"
D2 = IF(B2>10, 1, 0) # B2若大于10,D2填充1,反之填充0
2. COUNTIF函数
C1 = COUNTIF(A1:A22, 4) # A1到A22区间内,数据为4的个数填入C1
1. IF函数
C2 = IF(B2>10, "大", "小") # B2若大于10,C2填充“大”,反之填充"小"
D2 = IF(B2>10, 1, 0) # B2若大于10,D2填充1,反之填充0
2. COUNTIF函数
C1 = COUNTIF(A1:A22, 4) # A1到A22区间内,数据为4的个数填入C1