漏用绝对引用羡拍符了将悔派困COUNTIF(B2:B500,XXX)改成COUNTIF(B$2:B$500,XXX)或者直接碧念COUNTIF(B:B,XXX)
用绝对引用就行了,比如B2:B5改成B$2:B$5
把B2:B500,写成:$B$2:$B$500也就是绝对引用。
将B2:B500绝对引用,$B$2:$B$500,就不会变了
B$2:B$500像这样用美元固定不就好了?