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

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -