Array or Multi-Criteria in VBA CountIfs

arpirnat

New Member
Joined
Sep 22, 2015
Messages
34
Here is what I have that works fine:
Code:
NotMarked = Application.WorksheetFunction.CountIfs(Range("G6:G20000"), "Awaiting Approval", Range("D6:D20000"), "Routine")
Worksheets("Sheet1").TextBox1.Value = NotMarked & " Tests"

What I want is for this to count all records that not only meet these criteria, but not just 'Awaiting Approval' in column G but also 'First Call', 'Second Call'.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I ran into this a little while back... youre going to bang your head against the wall trying to get an "OR" operator to work with sumifs... soinstead you can just add three different sumifs statements together, each one looking at awaiting approval, first call, and second call respectively.
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,334
Members
449,077
Latest member
Jocksteriom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top