+ Reply to Thread
Results 1 to 2 of 2

Countif in VBA

  1. #1
    Registered User
    Join Date
    03-24-2005
    Posts
    20

    Question Countif in VBA

    I have several worksheets that are set up the same. I need a sub or function that will count numbers in cells and put the count in a cell . I tried

    =countif(b8:bj19,"2")+countif(b8:bj19,"3")+countif(b8:bj19,"4")

    works fine, but I need it to look at every other row

    Example (b8:b19,d8:d19,f8:f19...bj8:bj19) 31 ranges

    The criteria would be the same. Also, is it possible to have the macro start when you double click a cell and have the macro check that cell on every worksheet for the same countif statement? If so, how?

    Thanks, In advance for the help.

  2. #2
    Registered User
    Join Date
    03-24-2005
    Posts
    20
    Is there another way to do the same thing?

+ 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