Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
RichardOKeefe
 
Posts: n/a
Default CSV export from Excel always recognise null values in the last col

Hi ,

I'm using Excel 2003 to read csv files that have been exported from an
Oracle database. The data is modified in Excel, saved back to csv and then
loaded back into Oracle. The first row of data is always a header that
defines the columns of data. The last column of data is often null or empty
when viewed in Excel. When saving data back to CSV and then viewing it in a
text editor I would expect to see lines of data ending with a value where the
last column is populated or ending with a comma when the last column is empty.

Sometimes the row with an empty last column will end in a comma, sometimes
not. It displays ok when read back into Excel but the program that
manipulates data back into Oracle fails because of the missing trailing comma
when the last column is empty. For example the text file might look like:

head1, head2, head3
a,b,c
a,b,
a,b

The last row is the one that wouls casue a problem. I can change the data
loading program but I was wondering if there was some setup or format item
that I've missed that would fix the problem.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Wayne
 
Posts: n/a
Default CSV export from Excel always recognise null values in the last col

Richard, your gonna love this answer. I had the same issue, found this on MS KB

http://support.microsoft.com/default...kb;en-us;77295

"RichardOKeefe" wrote:

Hi ,

I'm using Excel 2003 to read csv files that have been exported from an
Oracle database. The data is modified in Excel, saved back to csv and then
loaded back into Oracle. The first row of data is always a header that
defines the columns of data. The last column of data is often null or empty
when viewed in Excel. When saving data back to CSV and then viewing it in a
text editor I would expect to see lines of data ending with a value where the
last column is populated or ending with a comma when the last column is empty.

Sometimes the row with an empty last column will end in a comma, sometimes
not. It displays ok when read back into Excel but the program that
manipulates data back into Oracle fails because of the missing trailing comma
when the last column is empty. For example the text file might look like:

head1, head2, head3
a,b,c
a,b,
a,b

The last row is the one that wouls casue a problem. I can change the data
loading program but I was wondering if there was some setup or format item
that I've missed that would fix the problem.

Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
RichardOKeefe
 
Posts: n/a
Default CSV export from Excel always recognise null values in the last

Thanks Wayne, I had a feeling it would be something stupid like that

"Wayne" wrote:

Richard, your gonna love this answer. I had the same issue, found this on MS KB

http://support.microsoft.com/default...kb;en-us;77295

"RichardOKeefe" wrote:

Hi ,

I'm using Excel 2003 to read csv files that have been exported from an
Oracle database. The data is modified in Excel, saved back to csv and then
loaded back into Oracle. The first row of data is always a header that
defines the columns of data. The last column of data is often null or empty
when viewed in Excel. When saving data back to CSV and then viewing it in a
text editor I would expect to see lines of data ending with a value where the
last column is populated or ending with a comma when the last column is empty.

Sometimes the row with an empty last column will end in a comma, sometimes
not. It displays ok when read back into Excel but the program that
manipulates data back into Oracle fails because of the missing trailing comma
when the last column is empty. For example the text file might look like:

head1, head2, head3
a,b,c
a,b,
a,b

The last row is the one that wouls casue a problem. I can change the data
loading program but I was wondering if there was some setup or format item
that I've missed that would fix the problem.

Thanks in advance.

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
Hyperion Essbase Excel Add-in - returning text ("0") for null valu bill_morgan Excel Discussion (Misc queries) 7 February 28th 12 06:10 AM
Is there a way for excel to recognise that €0.00 = 0 for the purposes IF function ? CmTaz Excel Discussion (Misc queries) 4 March 6th 06 04:45 AM
Multipying columns that contail null values ChuckW Excel Discussion (Misc queries) 1 September 7th 05 02:13 AM
How to assign character (text) values to y-axis in a Excel chart? cy Charts and Charting in Excel 1 July 16th 05 11:39 PM
Missing values in Excel Line Chart mw55309 Charts and Charting in Excel 1 January 19th 05 01:10 PM


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