Count by date range with a filter to exclude by a list

The_Tick

New Member
Joined
Feb 25, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi, I searched and didn't find much on this. If I missed something my apologies.

I have a working method to count by a column within a date range like so:

Excel Formula:
=COUNTIFS(Q:Q,"<"&TODAY()-30,Q:Q,">"&TODAY()-89,AO:AO,"*STRING*")

However, I'm trying to add a filter to exclude by a few things. So I tried this:

Excel Formula:
=COUNTIFS(A:A"<>*"&OtherSheet!A:A&"*",Q:Q,"<"&TODAY()-30,Q:Q,">"&TODAY()-89,AO:AO,"*STRING*")

The data in both a:a and othersheet!a:a are both ip address strings. I tried variants by removing the * after the > and the &*

Q:Q is a field with dates in it. AO:AO is the field filtering by a string for inclusion. I tried putting the A:A and OtherSheet filter at the end as well as the beginning just to see if it was an ordering issue.

Ideally I could filter by a combination of two fields. So if a:a is in othersheet!a:a and b:b is in othersheet!b:b then don't count, and if othersheet!a:a has an ip in it but othersheet!b:b has an asterisk it simply ignores everything for that ip, or vice versa with b:b and othersheet!b:b.

I hope I explained this well. This is with o365.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,215,454
Messages
6,124,933
Members
449,195
Latest member
Stevenciu

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