Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jessica G
 
Posts: n/a
Default Extra/empty records in CSV file

I have an Excel file that I convert into a CSV file. The information in this
file is usually no more than 400 records. If I view the CSV file in Notepad,
sometimes the file contains 65,000+ records, which has my 400 records and
empty lines that contain commas only. But sometimes it only contains my 400
records. I need to figure out how to eliminate the extra records because I
have to import this into my payroll software.
  #2   Report Post  
Posted to microsoft.public.excel.misc
T Kirtley
 
Posts: n/a
Default Extra/empty records in CSV file

Hi Jessica,

Sometimes there are cells that look empty to you, but which Excel thinks are
relevant to your extract due to formatting or unintended edits to cells
outside the range of data you want. To check this press Ctrl^End to see what
Excel thinks is the bottom right of the used spreadsheet range. In the sheets
that are creating 65,000+ row csv files I expect that Ctrl^End takes you to
somewhere on row 65,536 which is the bottom row that Excel supports.

To fix this, before saving the csv file select and delete all the rows below
the data range that you want. (use Shift^Ctrl^Down from the first row below
your active data range, and then select Edit / Delete / Entire Row from the
menu bar)

Note: You may also want to delete unused columns tot ht right of the active
data range.

Hope that helps,

TK

"Jessica G" wrote:

I have an Excel file that I convert into a CSV file. The information in this
file is usually no more than 400 records. If I view the CSV file in Notepad,
sometimes the file contains 65,000+ records, which has my 400 records and
empty lines that contain commas only. But sometimes it only contains my 400
records. I need to figure out how to eliminate the extra records because I
have to import this into my payroll software.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Extra/empty records in CSV file

Debra Dalgleish shows techniques to reset that last used cell:
http://contextures.com/xlfaqApp.html#Unused

Jessica G wrote:

I have an Excel file that I convert into a CSV file. The information in this
file is usually no more than 400 records. If I view the CSV file in Notepad,
sometimes the file contains 65,000+ records, which has my 400 records and
empty lines that contain commas only. But sometimes it only contains my 400
records. I need to figure out how to eliminate the extra records because I
have to import this into my payroll software.


--

Dave Peterson
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
Importing file with fixed width, multi-line records danmcgov Excel Discussion (Misc queries) 7 March 20th 06 08:05 PM
Excel file automatically opens Lost4Now Excel Discussion (Misc queries) 6 December 4th 05 09:35 PM
Links picking up values from an older version of linked file Cate Links and Linking in Excel 4 October 20th 05 01:53 PM
save an excel file in fixed length records whose fields are blank ascii save Excel Discussion (Misc queries) 1 October 13th 05 06:01 PM
cannot open excel file, please help!!! sunlite Excel Discussion (Misc queries) 0 September 5th 05 05:29 PM


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