+ Reply to Thread
Results 1 to 4 of 4

Counting items in other worksheets and placing those results in a single worksheet

  1. #1
    Registered User
    Join Date
    05-02-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Counting items in other worksheets and placing those results in a single worksheet

    Hi,

    I am new to Excel VBA and I am currently experiencing some difficulties in producing a VBA code that will do the following:

    I have about on average 50-60 worksheets in each workbook and what I want to do is create a new worksheet and count the number of dates in the other worksheets in the workbook and place that value into the new worksheet.

    So for example:

    In a particular worksheet, in cells A10:A16, I've got the following dates:
    20/10/2007
    21/10/2007
    23/10/2007
    25/10/2007
    29/10/2007
    31/10/2007
    01/11/2007

    There are 7 dates in this particular worksheet and I want this number to be displayed in the new worksheet that was created in the beginning. This value can be displayed in cell A2 in the new worksheet.

    Then I want the macro to move onto the next worksheet and count the number of dates and place that value in the cell below (cell A3) the previous value that was inserted. All dates will start from cell A10 in each worksheet - so it will always be in a standard form.

    Is it possible to do that?

    I'd be grateful if someone could help me on this.

    Thanks!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Counting items in other worksheets and placing those results in a single workshee

    Give this a try:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-02-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Counting items in other worksheets and placing those results in a single workshee

    Thank you very much! That works perfectly!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Counting items in other worksheets and placing those results in a single workshee

    Great.

    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED].

+ 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