Assign numbers in block of 10 starting from lower to higher

motilulla

Well-known Member
Joined
Feb 13, 2008
Messages
2,360
Office Version
  1. 2010
Hello,</SPAN></SPAN>

In the column "D" I got the numbers disordered, they can be from 0 to 3000 max. </SPAN></SPAN>
I need to assign them in column "E" in blocks of 10 (1-10, 11-20...etc.) starting from lower to higher as per example shown below.</SPAN></SPAN>

ABCDE
1
2
3
4DataResult
5676
6988
71129
8333
9293
10424
111139
12202
1312510
14192
15816
161119
17212
18615
1917312
20484
2111
22404
2381
24464
2513010
26514
27625
2813410
29152
30928
3115711
3213511
33383
3439915
35746
3600
3761
38263
39253
40182
41656
4220012
4371
44837
4522012
46162
4740015
48101
491068
50142
5125413
5221
53534
5431
55756
56907
57243
5826113
591089
6055916
6115812
62706
6323613
641179
65867
66172
67686
68595
69847
7017412
7134014
72857
73827
7423112
751048
761169
7751
78394
79283
8032314
811028
8239414
8312310
84545
85605
86111
871109
8832614
8914411
9016912
91233
9212010
9342815
9414111
95565
9633914

<COLGROUP><COL style="BACKGROUND-COLOR: #e0e0f0 "><COL><COL><COL><COL><COL></COLGROUP><THEAD>
</THEAD><TBODY>
</TBODY>
Sheet1



Thanks In Advance </SPAN></SPAN>
Using version 2000</SPAN></SPAN>

Regards,</SPAN>
Moti</SPAN></SPAN>
 
Last edited:

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hello, may be I clear it a bit more assign block of (1 to 10, number 1), block of (11 to 20, number 2)... and so on</SPAN></SPAN>

Regards,
</SPAN>
Moti
</SPAN></SPAN>
 
Upvote 0
I cannot figure out what you are trying to do, as your results don't make any sense to me.
Are you looking for numbers 1-10 to be 1, 11-20 to be 2 etc regardless of how many numbers exist in those blocks?
Or do you want the 10 smallest numbers (ignoring 0) to be 1, the next batch of 10 numbers to be 2 etc?
 
Upvote 0
I cannot figure out what you are trying to do, as your results don't make any sense to me.
Are you looking for numbers 1-10 to be 1, 11-20 to be 2 etc regardless of how many numbers exist in those blocks?
Or do you want the 10 smallest numbers (ignoring 0) to be 1, the next batch of 10 numbers to be 2 etc?
Hello Fluff, yes it is bit confusing I got in the column "D" 0 to max 3000 number without any repetitions, so as you guess (ignoring the 0 it is correct) and looking for numbers 1-10 to be 1, 11-20 to be 2 and 21-30 to be 3... and so on this is exactly what I want the result in the column "E" </SPAN></SPAN>

Thank you</SPAN></SPAN>


Regards,</SPAN>
Moti</SPAN></SPAN>
 
Upvote 0
In E5,

=INT((D5+9)/10)
Wow shg, what a beautiful formula spot on worked as wanted query solved!</SPAN></SPAN>

Thank you for your time and help
</SPAN></SPAN>

Kind Regards,
</SPAN></SPAN>
Moti :biggrin:
</SPAN></SPAN>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top