+ Reply to Thread
Results 1 to 3 of 3

VBA Countif in Multiple criteria based on range

  1. #1
    Registered User
    Join Date
    11-16-2018
    Location
    Philippines
    MS-Off Ver
    MS Office 2016
    Posts
    2

    Question VBA Countif in Multiple criteria based on range

    I'm having trouble when implementing countif with a multiple criteria in range, it displays error such as incorrect forumula.
    This is my final formula with a criteria that is constant:
    =SUM(COUNTIF(H4:AK4, {"2 - Accept","3 - Accept with Comments","4 - Accept with Comments (Resubmit)"}))

    Is it Possible that the multiple criteria is based on range?

    Thanks everyone!

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: VBA Countif in Multiple criteria based on range

    Hi,

    If you change the criteria to a range, I think maybe you just need to enter the formula with Ctrl+Shift+Enter to create an array formula. However, this isn't VBA so perhaps your question ended up in the wrong forum.

    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Registered User
    Join Date
    11-16-2018
    Location
    Philippines
    MS-Off Ver
    MS Office 2016
    Posts
    2

    Re: VBA Countif in Multiple criteria based on range

    Yes, This is in the wrong tagging. This is excel formula

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] countif multiple criteria in range
    By richardturnbull in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-30-2015, 11:46 AM
  2. multiple countif conditions, but same criteria range
    By jonnyyyl in forum Excel General
    Replies: 1
    Last Post: 07-30-2014, 10:36 AM
  3. COUNTIF for multiple criteria with date range
    By pjlau in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-04-2012, 07:04 AM
  4. countif based on multiple criteria
    By fabrecass in forum Excel General
    Replies: 2
    Last Post: 09-23-2011, 08:57 AM
  5. Countif based on multiple criteria
    By dmt2 in forum Excel General
    Replies: 1
    Last Post: 10-07-2010, 03:38 PM
  6. countif with multiple criteria and with in a range
    By acefilleddreams in forum Excel General
    Replies: 4
    Last Post: 03-09-2009, 09:29 AM
  7. Using CountIf based on multiple criteria
    By lriddle in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-04-2007, 05:01 PM

Tags for this Thread

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