Countifs - Multiple Unique Values

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi barry, thanks for replying.

Excel please :)

I do have another request, if anyone could help.

In column D, could I ask some sort of statement to ask if Box X has MORE than one unique item.

So for instance, cell D5 would return YES (as there is 3 different items in box 1), D21 would return NO, (as there is only 1 item in box 2) etc.

Many Thanks
 
Upvote 0
You can post such a sample directly here for perusal...

ItemBoxContainerHow many different fruits in each box
Box 13
Box 21
Box 36
OrangeBox 1
OrangeBox 1
OrangeBox 1
BananaBox 1
BananaBox 1
BananaBox 1
BananaBox 1
BananaBox 1
BananaBox 1
StrawberryBox 1
StrawberryBox 1
StrawberryBox 1
StrawberryBox 1
StrawberryBox 1
StrawberryBox 1
OrangeBox 2
OrangeBox 2
OrangeBox 2
OrangeBox 2
OrangeBox 2
OrangeBox 3
BananaBox 3
StrawberryBox 3
AppleBox 3
GrapeBox 3
PearBox 3

<colgroup><col><col><col span="3"><col><col></colgroup><tbody>
</tbody>


Google Sheets:

In G1 just enter and copy down:

=ARRAYFORMULA(sum(if(frequency(IF(1-($A$5:$A$32=""),if($C$5:$C$32=F2,match($A$5:$A$32,$A$5:$A$32,0))),row($A$5:$A$32)-row($A$5)+1),1)))

In Excel:

Control+shift+enter, not just enter, and copy down:

=SUM(IF(FREQUENCY(IF(1-($A$5:$A$32=""),IF($C$5:$C$32=F2,MATCH($A$5:$A$32,$A$5:$A$32,0))),ROW($A$5:$A$32)-ROW($A$5)+1),1))
 
Upvote 0
Thank you very very much Aladin Akyurek, very much appreciated sir. Sincere thanks.

Could anyone help with my additional request in post 3 (as below).

Thank you.

In column D, could I ask some sort of statement to ask if Box X has MORE than one unique item.

So for instance, cell D5 would return YES (as there is 3 different items in box 1), D21 would return NO, (as there is only 1 item in box 2) etc.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,450
Messages
6,124,912
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