Put your initial data in row A1 to A5
Enter below formula in B1 and copy it into B1 through II5. There are 3^5 = 243 combinations/columns, so with the maximum of 256 columns it is a narrow escape!
NSV
Well I had to edit this one. Someone has a tag stating "Remember to wrap code" and I did so obediently, but it makes it impossible to copy.
Here it follows in plain writing:
=IF(ROUNDDOWN(3*((COLUMN()-1)/(3^ROW())-INT((COLUMN()-1)/(3^ROW()))),0)=0,$A1,IF(ROUNDDOWN(3*((COLUMN()-1)/(3^ROW())-INT((COLUMN()-1)/(3^ROW()))),0)=2,$A1+1,$A1-1))
I cannot re-check it, as my Excel is not in english so I must go via VBA to get the english version
Bookmarks