Ordering a list SQL or Excel -


i have simple task @ work daily , think can done help. there table single column "pc name". have divide list of pc's waves.

wave 1 : 2%   wave 2:  3%   wave 3: 25%   wave 4: 45%   wave 5: 25%

so copy list of pc's excel , add column named "wave assign". example if list 100 pc's first 2 pc's assign wave 1, 3 pcs towave 2, 25 pcs wave 3 , on.

i need way automate since takes me long manually. doesn't matter if there small change in % in order round number of pcs in each wave.

assuming list in columna starting in row1:

=vlookup(rows(a$1:a1)/counta(a:a),warray,2)   

in row1 , copied down should work, provided lookup array of following kind created:

so18596249 example

and named warray.

in case list shorter 100 have added .002 'logical' breakpoints (cumulative proportions) not minority waves rounded down such that, @ 50 items, wave 1 not feature (and hence stand out rather more approximation in larger group).


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -