Formula to count multiple criteria and less than 90 days

philalethes

New Member
Joined
Aug 10, 2018
Messages
6
I am trying to count the items in one column that may include any words from a list of a few key words. Example includes nice, good, great, or excellent. I am looking for a sum total of any occurrences of these words.

In addition to these criteria, I only want to count these words if an associated date from the same row in another column is less than 90 days.

=COUNTIFS($F$2:$F$50000,"*nice*",$F$2:$F$50000,"*good*",$F$2:$F$50000,"*great*",$F$2:$F$50000,"*excelent*",$C$2:$C$50000,"<"&TODAY()-90)

I cannot figure out how to accomplish this. Any help would be greatly appreciated!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I have also been trying a SUMPRODUCT variation without success.

=SUMPRODUCT(--ISNUMBER(FIND("Nice",$F$2:$F$50000)),--ISNUMBER(FIND("good",$F$2:$F$50000)),--ISNUMBER(FIND("great",$F$2:$F$50000)),--ISNUMBER(FIND("excellent",$F$2:$F$50000)),--(($C$2:$C$50000)>(NOW()-90)))
 
Upvote 0
I found a solution. I needed to use a plus sign between the text “wildcards”.

=SUMPRODUCT(--($C$2:$C$50000>TODAY()-90),ISNUMBER(FIND("nice",$F$2:$F$50000))+ISNUMBER(FIND("good",$F$2:$F$50000))+ISNUMBER(FIND("great",$F$2:$F$50000))+ISNUMBER(FIND("excellent",$F$2:$F$50000)))
 
Upvote 0

Forum statistics

Threads
1,215,771
Messages
6,126,799
Members
449,337
Latest member
BBV123

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