Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Convert text to columns

I need to convert a .txt file which has data without a commas.
00120* ROASTED RED PEPPER SPREAD RETAIL 44.590 CS
02951*GORDAL OLIVES UNPITTED 2/5 LB 59.910 CS

The first 5 characters represent the product number and the text followed by
until the space is the Product description, then Pack size, Price and Unit
of Measure.

Seeking from the experts the best way to convert this data to columns
without much hassle.

Thanks.

Krish


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 108
Default Convert text to columns

Seems to me you might have to do this in two bites. The first import would
by column-dependant - "fixed width", that is - dividing the text into two
columns, ie the first five bytes and the rest. Then import the rest
space-delimited, marking multiple places as one. Would that work for you?

--- "Krish" wrote:
I need to convert a .txt file which has data without a commas.
00120* ROASTED RED PEPPER SPREAD RETAIL 44.590 CS
02951*GORDAL OLIVES UNPITTED 2/5 LB 59.910 CS

The first 5 characters represent the product number and the text followed by
until the space is the Product description, then Pack size, Price and Unit
of Measure.

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
Convert text to columns NWI Excel Discussion (Misc queries) 3 September 2nd 07 11:57 PM
convert text to columns Cindi Excel Discussion (Misc queries) 6 November 6th 06 09:14 PM
How do I convert from text to columns automatically on import? byosko Excel Discussion (Misc queries) 1 November 16th 05 11:21 PM
How do I convert text to columns when there is a carriage return? Stumped Excel Worksheet Functions 1 March 11th 05 05:20 PM
convert text labels to excel columns RSF New Users to Excel 2 February 9th 05 01:16 AM


All times are GMT +1. The time now is 05:19 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"