Create list of data meeting multiple criteria

vgresia

New Member
Joined
May 31, 2018
Messages
21
I have two issues that I am looking for help with.

The first, is to create a dynamic list of results for items matching "Horse" in column J on Sheet 2!, "Ball" in column I on Sheet 2!, and that do not contain the word dog in column A on Sheet 2!

The second, is that while I have calculated the number of assets meeting this criteria, using

=COUNTIFS(Sheet2!$A:$A, "<>*Dog*", Sheet2!$J:$J, "Horse", Sheet2!$I:$I, "Ball")

I would like to calculate the number of unique entries as well.

Thank you!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Yes, I had seen this but unfortunately cannot get the formulas there to give me the correct answer. I tried =SUM(--(FREQUENCY(IF((Sheet2!$A$2:$A$10000<>"*Dog*")*(Sheet2!$J$2:$J$10000="Horse"),Sheet2!$C$2:$C$10000),Sheet!$C$2:$C$10000)>0))

but is it giving me an answer that is incorrect.
 
Upvote 0
Maybe something like this:
Also, the IF function doesn't support wildcards, which is why I used the SEARCH function.

This is an array formula and must be entered with CTRL-SHIFT-ENTER.
Excel Workbook
ABCHIJ
1Header1Header4Header2Header3
2Testitem4BallHorse
3Dog Testitem1BallHorse
4Catitem2Balltest
5Samitem1BallHorse
6Test Dogitem3BallHorse
7Billitem2BallHorse
8samitem6BallBird
9
103
Sheet
 
Upvote 0
This worked perfectly, thank you! Good to know about wildcards and IF, I didn't know that. If I wanted to omit the Ball part of the formula, would I just remove IF($I$2:$I$8="Ball" or is there anything else I would need to remove as well?
 
Upvote 0
You're welcome. Yes to remove "Ball" just remove that IF statement.
Which would become:
Code:
=SUM(IF(FREQUENCY(IF(--(ISNUMBER(SEARCH("Dog",$A$2:$A$8)))=0,IF($J$2:$J$8="Horse",MATCH($C$2:$C$8,$C$2:$C$8,0))),ROW($C$2:$C$8)-ROW($C$2)+1),1))
 
Upvote 0

Forum statistics

Threads
1,223,887
Messages
6,175,199
Members
452,617
Latest member
Narendra Babu D

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