#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default Extracting data

I have some data that came in a text files. It is hard to split the fields
because there is no even breaking point, not comma delimited or anything.
The text contains company names and bid number. The bid number always start
with B0?-???. I would like separate the company name and the bid number in
two columns.

Sample : A & F INDUSTRIES B06-171 AW
Breakdown: A & F INDUSTRIES (company name ) B06-171 AW
is the bid number.

Sample: ADMIRALITE MARINE & STRUCTURE B07-118 SL
Breakdown: ADMIRALITE MARINE & STRUCTURE (company name) B07-118 SL (bid
number). How can I extract or separte the data is in one column. I need it
in 2 columns. Right now the file is in .txt.

Thanks for any Help

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Extracting data

On Sat, 26 May 2007 05:00:02 -0700, klafert
wrote:

I have some data that came in a text files. It is hard to split the fields
because there is no even breaking point, not comma delimited or anything.
The text contains company names and bid number. The bid number always start
with B0?-???. I would like separate the company name and the bid number in
two columns.

Sample : A & F INDUSTRIES B06-171 AW
Breakdown: A & F INDUSTRIES (company name ) B06-171 AW
is the bid number.

Sample: ADMIRALITE MARINE & STRUCTURE B07-118 SL
Breakdown: ADMIRALITE MARINE & STRUCTURE (company name) B07-118 SL (bid
number). How can I extract or separte the data is in one column. I need it
in 2 columns. Right now the file is in .txt.

Thanks for any Help




B1: =LEFT(A1,SEARCH("B0?-??? ",A1)-2)
C1: =MID(A1,SEARCH("B0?-???",A1),255)

Results of above formulas:

A1: A & F INDUSTRIES B06-171 AW
B1: A & F INDUSTRIES
C1: B06-171 AW

--------------------------------

A1: ADMIRALITE MARINE & STRUCTURE B07-118 SL
B1: ADMIRALITE MARINE & STRUCTURE
C1: B07-118 SL

--ron
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default Extracting data

This worked for the most part, but for some reason there are some that it
gave me a error on the company name but gave me the bid # or some didnt give
me anything. The error is #VALUE!. I tried to look up the command but I
don't know what the function is called. Can you explain what the formula
means or ... I know while some didnt because they only had company names and
not the bid number but that is fine I can copy those over to the next
column!! But for the most part this worked great!!

Thanks Mary


"Ron Rosenfeld" wrote:

On Sat, 26 May 2007 05:00:02 -0700, klafert
wrote:

I have some data that came in a text files. It is hard to split the fields
because there is no even breaking point, not comma delimited or anything.
The text contains company names and bid number. The bid number always start
with B0?-???. I would like separate the company name and the bid number in
two columns.

Sample : A & F INDUSTRIES B06-171 AW
Breakdown: A & F INDUSTRIES (company name ) B06-171 AW
is the bid number.

Sample: ADMIRALITE MARINE & STRUCTURE B07-118 SL
Breakdown: ADMIRALITE MARINE & STRUCTURE (company name) B07-118 SL (bid
number). How can I extract or separte the data is in one column. I need it
in 2 columns. Right now the file is in .txt.

Thanks for any Help




B1: =LEFT(A1,SEARCH("B0?-??? ",A1)-2)
C1: =MID(A1,SEARCH("B0?-???",A1),255)

Results of above formulas:

A1: A & F INDUSTRIES B06-171 AW
B1: A & F INDUSTRIES
C1: B06-171 AW

--------------------------------

A1: ADMIRALITE MARINE & STRUCTURE B07-118 SL
B1: ADMIRALITE MARINE & STRUCTURE
C1: B07-118 SL

--ron

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Extracting data

On Wed, 30 May 2007 08:35:02 -0700, klafert
wrote:

This worked for the most part, but for some reason there are some that it
gave me a error on the company name but gave me the bid # or some didnt give
me anything. The error is #VALUE!. I tried to look up the command but I
don't know what the function is called. Can you explain what the formula
means or ... I know while some didnt because they only had company names and
not the bid number but that is fine I can copy those over to the next
column!! But for the most part this worked great!!

Thanks Mary


The functions used are MID, LEFT and SEARCH. Their explanation can be found
under Excel HELP.

One cause for a VALUE error is if the input does not match the specifications
you gave in your original post.
--ron
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 Data for .Txt Files By Unique Field Data La Excel Discussion (Misc queries) 3 July 17th 06 01:30 PM
Extracting Data Aoife101 Excel Discussion (Misc queries) 2 June 30th 06 11:39 AM
Extracting data Gingit Excel Discussion (Misc queries) 2 June 14th 06 05:42 PM
Extracting data edmacd Excel Discussion (Misc queries) 2 September 30th 05 04:15 PM
Extracting data Al Excel Worksheet Functions 7 April 19th 05 04:38 PM


All times are GMT +1. The time now is 02:27 AM.

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"