Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 553
Default Count Number of Records and Number of Fields in CSV File

I have a CSV File. I want to be able to - via VBA in Excel - count the
number of rows of data (i.e. records) and the number of Columns (i.e Fields).


Assuming you can create a count variable and loop through records. I am
using a "~" as a delimiter for my fields. Assuming I can use a count
function to count the number of ~ per record to get my # of columns. Unless
there is a better way to do this.

Any ideas?

Thanks

EM
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
What formula should I use to count a number of records? Princesshera1 New Users to Excel 12 April 2nd 09 06:05 PM
How do I count the number of records within a date range Mike New Users to Excel 6 May 29th 08 05:45 PM
Count the number of AutoFiltered records DZ Excel Worksheet Functions 6 January 17th 08 12:31 PM
Count the number of unique records [email protected] Excel Worksheet Functions 7 March 8th 06 07:33 AM
conducting a count on unknown number of records Giz Excel Programming 4 February 24th 05 07:45 PM


All times are GMT +1. The time now is 06:52 AM.

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"