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
or can use below suggested @dirkreichel:
=countif(a$2:a2,a2)+a2/2
Comments
Post a Comment