close

Hi.

Example: list of numeric data: 345, 123, 154, 234,.....(milimeters)
When number is between 110 and 130 then it is 120, when between 131 and 150
then it is 140, and so on.
The result should be for the same list: 340, 120, 160, 240,...(milimeters)
It means that I need to group datas in classes of 20 milimeters.

Is there some short way to get it? I tryed something with many, many IFs,
but it is not so simple.
Can anyone help me?
Thanx.

ki
Hi Ki,

gt; Example: list of numeric data: 345, 123, 154, 234,.....(milimeters)
gt; When number is between 110 and 130 then it is 120, when between 131 and 150
gt; then it is 140, and so on.
gt; The result should be for the same list: 340, 120, 160, 240,...(milimeters)
gt; It means that I need to group datas in classes of 20 milimeters.

If your number is in cell A1:

=INT(A1/20 0.5)*20

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com

全站熱搜
創作者介紹
創作者 software 的頭像
software

software

software 發表在 痞客邦 留言(0) 人氣()