This question seems to come up quite a bit on the forums, but I cant seem to get my specicic scenario addressed. Col M contains the values I want to group, Col N is the group they fall into , see example here:
value (col M) Range (col N)
0.439 0.7
0.619 0.7
0.619 0.7
1.929 2.1
1.929 2.1
2.482 2.5
1.001 1.1
0.560 0.7
0.818 0.9
0.818 0.9
0.818 0.9
1.162 1.3
my ranges are as follows,
0 to .7 = .7
>.7 to <=.9 = .9
>.9 to <=1.1 = 1.1
>1.1 to <=1.3 = 1.3
so on and so on increasing by .2 each time.
Now is there a better way to do this then a big ugly repeating IF statement?
Like this:
=IF(M2<0.7,0.7,IF(M2<=0.9,0.9,IF(M2<=1.1,1.1,IF(M2<=1.3,1.3,IF(M2<=1.5,1.5,IF(M2<=1.7,1.7,IF(M2<=1.9,1.9,IF(M2<=2.1,2.1,IF(M2<=2.3,2.3,IF(M2<=2.5,2.5,">2.5"))))))))))
I would also like to keep the range in a list on my spreadsheet so I can change it if required.
Thanks
Dave
value (col M) Range (col N)
0.439 0.7
0.619 0.7
0.619 0.7
1.929 2.1
1.929 2.1
2.482 2.5
1.001 1.1
0.560 0.7
0.818 0.9
0.818 0.9
0.818 0.9
1.162 1.3
my ranges are as follows,
0 to .7 = .7
>.7 to <=.9 = .9
>.9 to <=1.1 = 1.1
>1.1 to <=1.3 = 1.3
so on and so on increasing by .2 each time.
Now is there a better way to do this then a big ugly repeating IF statement?
Like this:
=IF(M2<0.7,0.7,IF(M2<=0.9,0.9,IF(M2<=1.1,1.1,IF(M2<=1.3,1.3,IF(M2<=1.5,1.5,IF(M2<=1.7,1.7,IF(M2<=1.9,1.9,IF(M2<=2.1,2.1,IF(M2<=2.3,2.3,IF(M2<=2.5,2.5,">2.5"))))))))))
I would also like to keep the range in a list on my spreadsheet so I can change it if required.
Thanks
Dave