excel - Sort data by two alternating categories -


i want sort data 2 categories supposed alternate, order 1,0,1,0,1,0,...

i have whole dataset , categories 1 , 0 mixed. (e.g. 1,1,1,0,1,0,0,1,...) want sort data set 1 , 0 alternate

how can this? not find out how to.

paste below formula cell d2, drag down copy. when sorted d column have binary column sorted 0,1,0,1... etc.

=countif(a2:a11,a2)+a2/10 

enter image description here

or can use below suggested @dirkreichel:

=countif(a$2:a2,a2)+a2/2 

enter image description here


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -