Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Extracting parts of a cell

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Extracting parts of a cell

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



--
Regards,
Tom Ogilvy



"Brad K." wrote in message
...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extracting parts of a cell when only certain words appear Craig860 Excel Discussion (Misc queries) 4 September 6th 08 07:35 AM
Extracting parts of names klysell Excel Worksheet Functions 6 May 3rd 07 07:17 PM
How can I split one cell into two cell parts (upper & lower)? Desert Sparkle Excel Discussion (Misc queries) 0 January 5th 06 09:22 PM
hiding parts of a cell dick Excel Discussion (Misc queries) 3 October 17th 05 02:18 AM
formating parts of a cell Chris Excel Programming 2 March 1st 05 07:35 PM


All times are GMT +1. The time now is 03:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"