Filter with DCOUNTA and another column

ntilton

New Member
Joined
Nov 19, 2012
Messages
2
Hi,

I've been sifting through the forum and I can't find my specific situation, any help is greatly appreciated!

I want to use DCOUNTA to be able to make what I am filtering for apparent to the end user and because it seems to be less resource intensive than using countifs or sumproduct.

So I want to find data that matches:

For Example
=dcounta('November'!A2:G100, "Hostname", A1:A3)

A2:G100 contains the Data Table

Criteria:
ABCDEFGH
1HostnameObject ClassHostnameObject ClassHostnameObject Class
2TN1C1PFProcessTN1C1PFNetworkTN1C1PFApplication
3HPFProcessHPFNetworkHPFApplication

<tbody>
</tbody>


But I also want to filter by Facility
Tucson
Birmingham
Abilene
Big Spring
Oro Valley

<tbody>
</tbody>

So I want to find anything with a hostname of TN1C1PF or HPF with the respective 'Object Class' and at the respective Facility like this:

FacilityNumber of AlertsObject Class
Tucsonxx
Birminghamxx
Abilenexx
Big Springxx
Oro Valleyxx

<tbody>
</tbody>


How can I combine the DCOUNTA and narrow it down by facility on each row?

Let me know if I need to provide more explanation
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Need some more details like - how do we relate this facility to criteria data. If you don't mind.


Muz..:)
 
Upvote 0
Need some more details like - how do we relate this facility to criteria data. If you don't mind.


Muz..:)

Sure!

I want to know how many alerts happened at each Facility by hostname and object class - simple enough with a countifs or sumproduct formula BUT those are too resource intensive for the amount of data I'm dealing with.

a countifs would be something like =countifs(facilityDataTableRange, "Alpine", objectParameterRange, "Process", hostnameRange, "HPF")

which would give me a count of all alerts HPF process alerts at Alpine.

But that is too bulky and slow for the amount of data I have

So I have a column of Facilities:

FacilityNumber of Hostnames matching from dcounta filter
AlpineX
AnnaX
AugustaX

<tbody>
</tbody>

and I want to run the DCOUNTA formula from before but then filter by facility

I can't include the facility in the DCOUNTA criteria as this would be an overload of data as I have over 130 facilities that I am breaking down.

The data table includes the following:
Facility, Arrival Date, Object Class, Hostname and many others

I want to break down by Arrival Date, Object Class and Hostname in the DCOUNTA criteria and also (and this is my question part) break down by facility by some other means I suppose, but I haven't got a good idea of how to do it.

THANKS!!!!

***EDIT - here's my formula:

=dcounta('Big November Data'!$A:$AH, "Hostname", criteriaRange)
and I want it to be something like:
=dcounta('Big November Data'!$A:$AH, "Hostname", criteriaRange AND Facility)

and put the formula like this:

Facility Alert Count
Alpine formula
Anna formula
Augusta formula
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,003
Messages
6,122,655
Members
449,091
Latest member
peppernaut

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