+ Reply to Thread
Results 1 to 5 of 5

Looking for a way to count specific rows on this sample file

  1. #1
    Forum Contributor
    Join Date
    09-12-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    127

    Looking for a way to count specific rows on this sample file

    I am looking for a way to get the row count for the invoices for each vendor in this sample file. My intent is to create a macro to build a database on another tab and the original data needs to stay unchanged. Due to the way the file is formatted there is no easy way to get a row count on the invoices by vendor. appreciate any suggestions, s4

  2. #2
    Registered User
    Join Date
    09-22-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2003 & Excel 2007
    Posts
    36

    Re: Looking for a way to count specific rows on this sample file

    If you can post a .xls version I'll be willing to look into it.
    'Ignoramus et ignorabimus'

  3. #3
    Forum Contributor
    Join Date
    09-12-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    127

    Re: Looking for a way to count specific rows on this sample file

    here you go, thanks for looking at it.

  4. #4
    Registered User
    Join Date
    09-22-2012
    Location
    The Netherlands
    MS-Off Ver
    Excel 2003 & Excel 2007
    Posts
    36

    Re: Looking for a way to count specific rows on this sample file

    Please Login or Register  to view this content.
    This will find some of the invoices, but because of the changing number of spaces between the invoice and date it does work on the entire file.
    My idea would be to create a for-loop to check the number of spaces untill a date (or other data) is found, but I am sure there has to be a better method for doing that, I'm just a bit too much a noob to help you there (mostly since I dont have a load of time to spend on this).

    My first thought was to export it as a csv file and import it again though, you can even record that.

    Edit: My bad, the macro doesnt find all the invoices cause the 'isdate' check falls over dates as 09-MAY-13 (doesnt like the 0).
    If nobody can help you before I have more time I'll look into this later. As it is I want to learn more about VBA/excel and its potential anyway
    Last edited by Red Spot; 05-13-2013 at 02:10 PM.

  5. #5
    Forum Contributor
    Join Date
    09-12-2012
    Location
    Michigan
    MS-Off Ver
    Excel 2007
    Posts
    127

    Re: Looking for a way to count specific rows on this sample file

    That was my idea also, creating a loop looking for the date. when i test it on the larger file it takes quite a while to run. thanks for your input.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1