我有一系列我已经排名的数字,所以也有重复的值。我想根据最高值/ 4将它们分为四个桶。
例如:
A 1
B 2
C 3............
XYZ 3329
YZB 3329
当我除以3329/4 = 832.25时。我需要输出为:
Values between 1 and 832.25 as P1
Values between 832.25 and 1664.5 as P2
Values between 1664.5 and 2496.75 as P3 and anything beyond that as P4.
我需要在下一栏中输出这些内容。有人可以帮我解决这个问题吗?
由于
答案 0 :(得分:0)
你可以试试这个:
=IF(A1<MAX($A$1:$A$10)*0.25,"P1",IF(A1<MAX($A$1:$A$10)*0.5,"P2",IF(A1<MAX($A$1:$A$10)*0.55,"P3","""P4")))
$A$1:$A$10
是表格中的数字范围