excel - Dynamic formula or vba to offset a vertical list by one, and move the bottom of the list to the top? -


here trying do, have sheet has list of names no duplicates varies in length. have either formula or vba sub, have next row copy original list of names , offset one, top name on original last name of second list. need have @ end 10 list none of same names in same row.

here sample of i'd like.

columnb   columnc   columnd   columne name1     name2     name3     name4 name2     name3     name4     name1 name3     name4     name1     name2 name4     name1     name2     name3 

like game of sudoku, none of names in each row or column can have duplicate.

i not sure how best achieve since mentioned above length of list variable. ideally i'd create first list, have other 9 list auto populate. suggestions?

edit___________________ @paul drye, following results formula

columnb   columnc   columnd   columne name1     name2     name3     name4 name2     name3     name4     name1 name3     name4     name1     name1 name4     name1     name1     name1 

as can see, last 2 columns start showing issue.

if want formula works regardless of surrounds data, can same result using rows, columns, , mod along absolute/relative ranges.

formula in cell c2 copied down , over. looks little better named range. if want see how generates numbers, remove index , counter.

=index($b$2:$b$11,mod(rows($c$2:c2)+columns($c$2:c2)-1,counta($b$2:$b$11))+1) 

picture shows same result other answer

results , formula


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -