excel - 10 values in column A, 4 in column B, 40 unique outputs? -
i have been working while trying 40 unique outputs. have taken screenshot of i'm trying at.
screenshot:
i have been using indirect
, ceiling
commands can not work. can please please , explain?
this works:
="the brown " & index(a:a,ceiling(row()/4,1)) & " jumped on "& index(b:b,(mod(row()-1,4)+1))
it uses ceiling
along division 4 repeat each item in column 4 times. uses mod
cycle through 4 numbers.
you can generalize work many values in column b using counta
:
="the brown " & index(a:a,ceiling(row()/counta(b:b),1)) & " jumped on "& index(b:b,(mod(row()-1,counta(b:b))+1))
Comments
Post a Comment