Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am new to Excel macro and I need your help.
I have the following input data in Sheet 1:
a1 b1 (a1 in cell A1, b1 in B2)
a2 b2 (a2 in cell A2, b2 in cell B2)I need a macro to create the following output in Sheet 2
a1,b1 (combines cells A1 and B1, separate by a comma)
END (add this string after every row)
a2,b2
ENDPlease note that the number of rows in the input varies. This example shows two, but it could range from one to over 500.
Thanks.

no macro needed . On sheet 2, Use concatenate(cellA1;",";cellB1) if result to be A1,B1. Enter "End" one line / each 2. u can concatenate as many cell u want to.

![]() |
change font in right clic...
|
Excel VLOOKUP
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |