Further enhancement a formula counting full or partial matches

freeb1893

Board Regular
Joined
Jul 30, 2012
Messages
234
Office Version
  1. 365
Platform
  1. Windows
I have this formula currently

COUNTIFS('RAW Data 2'!$R$2:$R$10000,"*"&$BG3&"*",'RAW Data 2'!$O$2:$O$10000,">="&(TODAY()-$BI$1))

Range R2:R10000 contains a list of values where my value in BG3 may be an exact text string match, or a partial text string match

Range O2:O10000 contains a list of dates/times where among my criteria is I'm also counting if the date/time date in that range is more recent than today's date minus however many days I want to look back defined in cell BI1

I want to add a 3rd criteria where I look at range 'RAW Data 2'!$B$2:$B$10000 as well, and only count IF BG3 is a full or partial match in range R2:R100000, and the date/time in range O2:O10000, is more recent than today's date minus however many days I define in BI1, AND ensure we only count unique values in range B2:B10000 when the rest of the criteria matches.

Basically I might have cases where I have multiple matches where the date/time is in my date/time range I'm looking for, and there is a partial or full match in range R2:R10000, but there are multiple matches / dupes of what's found in B2:B10000. I don't want to count dupes of what's found in B2:B10000 when the rest of the criteria matches. Only count once per unique value found in B2:B10000

Anyone know how to add that into my formula?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
How about
Excel Formula:
=IFERROR(ROWS(UNIQUE(FILTER('RAW Data 2'!$B$2:$B$10000,(ISNUMBER(FIND($BG3,'RAW Data 2'!$R$2:$R$10000)))*('RAW Data 2'!$O$2:$O$10000>=TODAY()-$BI$1)))),0)
 
Upvote 0
How about
Excel Formula:
=IFERROR(ROWS(UNIQUE(FILTER('RAW Data 2'!$B$2:$B$10000,(ISNUMBER(FIND($BG3,'RAW Data 2'!$R$2:$R$10000)))*('RAW Data 2'!$O$2:$O$10000>=TODAY()-$BI$1)))),0)
You got it! 😎 thank you so much!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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