Ordering values from random list in Excel -


is there possibility how order values cca 100 rows table according 2 criteria? compare name , compare category, or bad approach?

lets have list of people:

   name     category   value     carl                  10     carl         b          17     john                  11     jane                   7     john         b          22 

name of person can in row no. 3 or no. 30 or no.10. there 3 categories a,b,c how can order them table according categories?

name      b   c carl    10  17   john    11  22   jane    7 

thanks in advance

starting with:

enter image description here

running small macro:

sub twodee()     dim s1 worksheet, s2 worksheet     dim n long, long, v1 string, v2 string, v3 long     dim irow long, icol long     set s1 = sheets("sheet1")     set s2 = sheets("sheet2")     s2.cells.clear      n = s1.cells(rows.count, "a").end(xlup).row     s1.range("a1:b" & n).copy s2.range("a2")     s2.range("a:a").removeduplicates columns:=1, header:=xlno     s2.range("b:b").removeduplicates columns:=1, header:=xlno     s2.range("b2:b" & n).copy     s2.range("b1").pastespecial transpose:=true     s2.range("b2:b" & n).clear      = 1 n         v1 = s1.cells(i, 1).value         v2 = s1.cells(i, 2).value         v3 = s1.cells(i, 3).value         irow = s2.range("a:a").find(what:=v1, after:=s2.range("a1")).row         icol = s2.range("1:1").find(what:=v2, after:=s2.range("a1")).column         s2.cells(irow, icol) = v3     next end sub 

will produce:

enter image description here

in second worksheet.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -