Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel Formula to paste A x B pattern

I have two columns A and B like below

column A contains 1,2,3,4,5 and B contains a,b,c,d,e

I want in column C like 1a,1b,1c,1d,1e,2a,2b,2c,2d,2e,3a,3b and so on.

like image 933
Rajeshkumar Avatar asked Dec 19 '25 16:12

Rajeshkumar


1 Answers

Try this formula.

=CONCATENATE((INDIRECT("A"&ROUNDUP(ROW()/5,0))),(INDIRECT("B"& IF((ROW()-(ROUNDDOWN(ROW()/5,0)*5))=0,5,(ROW()-(ROUNDDOWN(ROW()/5,0)*5))))))

Output

enter image description here

like image 181
Santosh Avatar answered Dec 22 '25 09:12

Santosh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!