Link to home
Start Free TrialLog in
Avatar of Sanjay
SanjayFlag for United States of America

asked on

ms excel vba code to add characters from one column to second column

I have data in a sheet in column A that looks like below.  

07117547_F
07031696_G

I need help with a macro to make the data look like this in column B below: (includes parentheses, apostrophes, and a comma)

('07117547_F'),
('07031696_G'),

Thanks.
Avatar of Saurabh Singh Teotia
Saurabh Singh Teotia
Flag of India image

You can apply this formula...

="("&A1&"'),"

Open in new window


In b1 and drag this this will do what you are looking for..You don't need VBA Code for it...

Saurabh...
ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial