top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Remove new line charecter from cell value in a CSV file

+2 votes
337 views

In excel_sheet.xls some cell contains newline character.
I created cvs (excel_sheet.cvs) form xls. In this cvs same row is divided in two row because of new line character in cell value. I want to extract values from CVS.

posted Oct 14, 2013 by Vikas Upadhyay

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
CVS file or CSV file???

Similar Questions
+2 votes

I'm using Office 2010 and now I cannot edit existing query and Parameter both buttons are grayed out. Below are the steps I followed.

My requirement is to fetch the data from oracle database from Excel. by passing the three parameters.
1. string
2 and 3 are Date parameters.

steps followed to archive:

  1. setup-ed the ODBC connection in Control panel.
  2. Now back to Excel, open any excel workbook and select Data > From Other Sources > From Data Connection Wizard
  3. selected --> Other Advanced and then “Microsoft OLE DB Provider for Oracle”
  4. updated the connection string
  5. and Command text as
    SELECT * FROM xx_salinfo a, xx_ivcinfo b
    WHERE a.num = b.cd
    AND a.status = NVL(Upper(''''||?||'''',a.status ) -- parameter1
    AND so_wr_dt BETWEEN NVL(''''||?'||''', 01-JAN-05) AND NVL(''''||?||'''', 01-JAN-15) -- parameter2 and 3

But from here I have problem "Edit Query" and "Parameters.." both were grayed out. so im not able to pass/tag the cells values into the parameters.

please help me , how to fix it.

Note: This works fine without parameters. So, nothing wrong in steps.

Thankx,
Arun

+2 votes

I have csv file , all the values of column is separated by "," .
Some column have embedded comma "," . How can i Remove these embedded commas
These embedded commas creating problems to extract value from csv file.
I am using shell script.

+2 votes

I want to genarate a csv report from the data of a table, can i do this without creating a directory.

...