Need help with countifs please

Pat1009

Active Member
Joined
Jun 4, 2015
Messages
264
I am in need of a VBA code for a Countifs with 3 ranges and 1 criteria per range.
column U:U has "Bellaire"
column AC:AC has "US XR TONER 8-5"
column Q:Q has "CHEVRON-XEROX CAMPUS

What would the VBA code look like, if I wanted to find anything in each column that met all the criteria?
 
Using the "Case Detail" worksheet, I need it to count Bellaire in column U:U (entire column), which is 79
Using the same worksheet and column, also count hou150, which is 501.
This should return a count of 580
 
Upvote 0

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Using the "Case Detail" worksheet, I need it to count Bellaire in column U:U (entire column), which is 79
Using the same worksheet and column, also count hou150, which is 501.
This should return a count of 580

Pat1009, then use =COUNTIF('Case Detail'!U:U,"*hou150*",'Case Detail'!U:U,"*Bellaire*"); i think you should try experimenting a bit with the formula now.
As you can see, you can just copy and paste the text you want in to the formula.
 
Upvote 0

Forum statistics

Threads
1,216,057
Messages
6,128,527
Members
449,456
Latest member
SammMcCandless

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