Extracting parts of a cell

B

Brad K.

A program I use exports into Excel. All of the account information is stuck
into one cell and I want a macro to extract this information into separate
cells. This information in Excel looks like (A3, A4 and A5 shown):

ABC Inc. (105920) Denver, CO; SSP AB
Gadgets Inc (315555) New York, NY; SSP AA
Tony Junior (330266) Los Angelas, CA; SSP NA

There will be a minimun of 100 accounts each export. I want to be able to
put the company in Column B, account # in Column C, city in Column D and
discard the rest.

Any advice? Thanks in advance.
Brad K
 
T

Tom Ogilvy

Select column A and paste it into column B
select column B and do Data=>Text to Columns, select delimited and then left
paren as the delimiter. Finish up

Now select column C and do Data=>Text to Columns and select delimited and
right paren as the delimiter. finish up

Now select column D and do Data=>Text to Columns and Select comma as the
delimiter. finish up
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top