Excel Arrange multiple Columns -


i have data in excel:

1 1 1 2 2 2 3 2 

and want result displayed this:

1 1   1 2   2   2   2 3 

its ascending sorting. if number in columna <= columnb, display first, @ same time, columnb have empty cell or blank value. have looked while no 1 has problem this. prefer formula rather vba code. please advise, thanks!

edit: hope explanation easier understand

data (a1:b2) - result (c1:d4). each number in data (a1:b2) result of complicated formula cannot change position

  b  c d 1 1 2  1 2 3 4    2 3      3 4        4 

honestly, if want avoid vba, here's manual process give results want:

  1. color each column (ie. column red , column b blue)
  2. place values of column b under column a
  3. sort & filter sort smallest largest
  4. copy contents of column column b
  5. last column find , replace all* format blue same column b format red. (see below more info on how that).

following steps isn't conventional, give results wanted without vba.

*find , replace based on font color: 1. press ctrl-h 2. click options 3. click format > font > select font color > ok 4. find what blank font color , replace with blank click replace all.


Comments

Popular posts from this blog

javascript - Replicate keyboard event with html button -

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Web audio api 5.1 surround example not working in firefox -