+ Reply to Thread
Results 1 to 2 of 2

count within a range

  1. #1
    mike allen
    Guest

    count within a range

    I think this is simple, but I am stuck. I have a named range with 6 rows
    and 4 columns. Not all cells in this range are occupied. I want to count
    the number of entries on the 5th row of this range, for instance. There are
    many named ranges I want to use the same code on, so I do not want to just
    hard reference that section of that range. I am wanting to use the
    'application.counta' function vs. a loop. Thanks, Mike Allen



  2. #2
    Tom Ogilvy
    Guest

    Re: count within a range

    application.CountA(Range("MyRange").Rows(5))

    --
    Regards,
    Tom Ogilvy

    "mike allen" <[email protected]> wrote in message
    news:[email protected]...
    > I think this is simple, but I am stuck. I have a named range with 6 rows
    > and 4 columns. Not all cells in this range are occupied. I want to count
    > the number of entries on the 5th row of this range, for instance. There

    are
    > many named ranges I want to use the same code on, so I do not want to just
    > hard reference that section of that range. I am wanting to use the
    > 'application.counta' function vs. a loop. Thanks, Mike Allen
    >
    >




+ 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