LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default CSV file, but not regular commas


Hi everyone,
Got a problem.
I have 100 text files that i combine into 1 csv file. Text files ar
single quote separated and comma seperated, it looks like this

'105139.002','3','PANEL LAYOUT & WIRING','

This is fine, as soon as it becomes a CSV file i remove all the singl
quotes and it's all good. But i get a problem when i encounter
regular comma inside the text, like this:

'105139.002','3','PANEL LAYOUT, WIRING','

Notice after Layout there is a comma, but I don't want that to be in
separate cell.
So I'm trying to figure out something along the lines of this logic.
Look in cell D1
if last character is ' then skip to next one
if last character is not, then name that cell A
Go to the right one cell
if that cell has a ' at the end, then call it a B, and combine A
B
if that cell does not have a ' then name it b and go to next cell t
the right
then i need to delete all the left overs after i combine.
Please help me with coding.
Thanks,
Viktor

--
Vikxce
-----------------------------------------------------------------------
Vikxcel's Profile: http://www.excelforum.com/member.php...fo&userid=1860
View this thread: http://www.excelforum.com/showthread.php?threadid=49564

 
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 email address file in Excel 2000 to Word file with commas Mike A. Excel Discussion (Misc queries) 8 October 14th 08 02:48 PM
File Convert With commas to txt format jayceejay Excel Discussion (Misc queries) 3 December 14th 06 07:06 PM
Convert Regular Excel file into csv file crazymfr Excel Discussion (Misc queries) 1 November 16th 06 02:16 PM
How to remove commas from a downloaded .dat file? arvind Excel Worksheet Functions 3 September 5th 06 01:09 PM
When converting an .xls file to .csv I get too many commas at the. One-eyed-Ian Excel Discussion (Misc queries) 3 December 7th 04 12:03 AM


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