The sum result of Excel's Sumif and Sumifs is wrong

When I used excel's sumif function to sum up recently, I found that the result is greater than the true result. The analysis found the reason: the judgment condition of sumifs is numeric, but the length is greater than 15 digits, and excel will default to 0 after the number with a length greater than 15 digits.

For example, in the following example, if account number 1 is used for aggregation and summation, since the account number is 16 digits in length, it is larger than the maximum number of 15 digits in excel. Excel will default to 9919000000041035 and 9919000000041039 as 9919000000041030. In order to solve this problem, we need to encode the aggregation condition as text. For example, add a letter before the account number. In this way, this problem will not occur during aggregation.

Guess you like

Origin blog.csdn.net/lz_peter/article/details/102551974