用excel如何设置某个数值区间结果如0~0.25之间取0.1,0.25~0.5之间取0.4...
发布网友
发布时间:2023-12-09 05:18
我来回答
共2个回答
热心网友
时间:2024-07-23 03:01
假设你要判断A1中的值在哪个区间,并返回相应结果,可以在B1输入
=if(A1<0.25,0.1,if(A1<0.5,0.4,if(A1<0.75,0.65,"")))
就行了
还可以
=vlookup(A1,{0,0.1;0.25,0.4;0.5,0.65;0.75,0.9},2)
多看看{0,0.1;0.25,0.4;0.5,0.65;0.75,0.9}你就懂了
还可以
=choose(int(A1/0.25)+1,0.1,0.4,0.65,0.9,1.00)
这样子
热心网友
时间:2024-07-23 03:06
假设数据在A1,B1输入=LOOKUP(A1,{0,0.25,0.5},{0.1,0.4,0.65})