Computing.Net > Forums > Office Software > Excel macro

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel macro

Reply to Message Icon

Name: n
Date: January 3, 2005 at 14:52:02 Pacific
OS: x
CPU/Ram: x
Comment:

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
END

Please note that the number of rows in the input varies. This example shows two, but it could range from one to over 500.

Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: chnos
Date: January 4, 2005 at 00:45:12 Pacific
Reply:

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.


0
Reply to Message Icon

Related Posts

See More


change font in right clic... Excel VLOOKUP



Post Locked

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


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Excel macro

Run Excel Macro as Automated Task on Server www.computing.net/answers/office/run-excel-macro-as-automated-task-on-server/9661.html

Excel Macro read and process CSV www.computing.net/answers/office/excel-macro-read-and-process-csv/3820.html

excel macro reads wrong value www.computing.net/answers/office/excel-macro-reads-wrong-value/2476.html