Results 1 to 2 of 2

Thread: USING COUNTIF IN VBA

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Aug 2013
    Posts
    2
    Rep Power
    0

    USING COUNTIF IN VBA

    HI ,

    I inserted countif to calculate the count according to two criteria . but however I was thinking if it is possible to do it vba. someone please guide me (:

    formula inserted in each cell of column B:E
    =COUNTIFS(Sheet1!D:D,"B",Sheet1!E:E,"AIM1")

  2. #2
    Member
    Join Date
    Jun 2013
    Posts
    93
    Rep Power
    12
    Code:
    count=WorksheetFunction.CountIf(Worksheets(1).Range("D:D"), "B")

Similar Threads

  1. SUMIF COUNTIF To Look For More Than One Keyword
    By william516 in forum Excel Help
    Replies: 1
    Last Post: 08-06-2013, 12:03 AM
  2. Replies: 3
    Last Post: 03-12-2013, 12:54 PM
  3. Lookup & countif
    By mbabu in forum Excel Help
    Replies: 3
    Last Post: 03-26-2012, 11:29 AM
  4. COUNTIF on Non-contiguous Range
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 04-23-2011, 04:05 PM

Posting Permissions

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