parsing csv

Azar

New Member
Joined
Jun 28, 2011
Messages
28
Hi all,
I am converting a text file to a csv file.
after converting, i run a text to columns to place the data in different cells.
somewhere along the way, i seem to loose numbers that are in thousands.
anyone have an idea why this might happen, or how i can avoid it?

thanks,
Az
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Are there commas separating the thousands in the CSV file?
 
Upvote 0
Is the number of fields otherwise constant, i.e. if parsed correctly would each line in the CSV file always have the same number of fields?
 
Upvote 0
i dont fully understand the question.
can you please elaborate?
if i understand correctly, you are asking if each line of data, or each row, has the same number of fields, or are broken down into the same number of columns?
each row has the same information and is 'text to columned' into the same number of columns....
example, the text has 5 separate information fields separated by a space, i move these 5 values into 5 different columns.
 
Upvote 0
<HR style="BACKGROUND-COLOR: #ffffff; COLOR: #ffffff" SIZE=1>
Are there commas separating the thousands in the CSV file?
Comma-separated values means just that -- fields are delimited by commas. 100,000 is two values, 100 and 0.

You can change the extension to txt and import using the wizard, or eliminate the commas in numeric values in the CSV file.
 
Upvote 0
i dont fully understand the question.
can you please elaborate?
if i understand correctly, you are asking if each line of data, or each row, has the same number of fields, or are broken down into the same number of columns?
each row has the same information and is 'text to columned' into the same number of columns....
example, the text has 5 separate information fields separated by a space, i move these 5 values into 5 different columns.

If the fields are separated by a SPACE and not by commas, then do as shg has already suggested and just change the extension to TXT and import as space-delimited.

Otherwise, the nature of my question was to map out a solution that would recombine the numbers.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,695
Members
448,979
Latest member
DET4492

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top