Count unique text entries with multiple criteria

meowerson

New Member
Joined
Nov 14, 2014
Messages
5
I am trying to count unique text 'Species' entires in column 'C' on a separate Worksheet (within the same workbook) with multiple criteria. The data are organized as follows (in 'Worksheet'):

Row#ABC
1SurveySiteSpecies
2
1
ax
31by
41by
52ax
62ax
72bz
83az
93bx

<tbody>
</tbody>

I have attempted to calculate the number of unique 'Species' during survey '1' at site 'a' using the following formula:
=SUM(IF('Worksheet'!$B$2:$B$9="a")*('Worksheet'!$A$2:$A$9="1", 1/(COUNTIFS('Worksheet'!$B$2:$B$9, "a", 'Worksheet'!$C$2:$C$9, 'Worksheet'!$C$2:$C$9, 'Worksheet'!$C$2:$C$9, "1"))), 0)

but it says there is an error in my formula. Please help!

Thanks,
meowerson

<colgroup><col width="75" style="width:75pt"></colgroup><tbody>
<!--EndFragment-->
</tbody>
 
Hi Aladin,

Thanks again, but it's still not working. I get a #VALUE! message. Note that I am referencing cells on a different worksheet and am putting the reference to that worksheet (written as: 'PC Breeders'!) before every range in the formula. Would this affect your suggested formula in any way?

Sheet name should not cause a problem. Just add them ot therelevant ranges.

Here is the set up: https://dl.dropboxusercontent.com/u/65698317/meowerson%20multiconditional%20unique%20count.xlsx
 
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Thanks, István. I will try your method if the others don't work.

Thank again, Aladin. I am on a Mac and ^+shift+return does not work. If you have any other thoughts please let me know.
 
Upvote 0
Thanks, István. I will try your method if the others don't work.

Thank again, Aladin. I am on a Mac and ^+shift+return does not work. If you have any other thoughts please let me know.

Control+shift+enter (Windows Excel) === Command + Return (Mac Excel)
 
Upvote 0

Forum statistics

Threads
1,216,446
Messages
6,130,699
Members
449,586
Latest member
spg5150

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