Unique Records Search

Jon Johny

Board Regular
Joined
Sep 15, 2008
Messages
162
I have a formula for counting unique text records. However, is it possible to count unioque records based on certain conditions. For example, I have a stats sheet for a sports league and I want to count all the unique teams for dsivision 'North'. Coloumn A has the division, coloumn B has the team they played on that day.

I want to count all the unique records in column B, but based on those teams being in the 'North Division' (column A)

I want to do this with Excel, and not in VBA.

My formula for finding unique records is:
 
I'm working on this formula with dynamic ranges and its not accepting. Named ranges yes, but not dynamic. If you want I can send you my example spreadsheet. Shoot me a private message with your email...

Lets assume that the formula you invoke is:

=SUM(IF(FREQUENCY(IF(A$1:A$15=C1,IF(B$1:B$15<>"",MATCH(B$1:B$15,B$1:B$15,0))),ROW(B$1:B$15)-ROW(B$1)+1),1))

Lets assume the following dynamic named ranges: Arange and Brange.

The formula becomes:

=SUM(IF(FREQUENCY(IF(Arange=C1,IF(Brange<>"",MATCH(Brange,Brange,0))),ROW(Brange)-ROW(INDEX(Brange,1,1))+1),1))
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I'm working on this formula with dynamic ranges and its not accepting. Named ranges yes, but not dynamic. If you want I can send you my example spreadsheet. Shoot me a private message with your email...
How you define the dynamic range(s) depends on several factors.

Just sent you an email.
 
Upvote 0

Forum statistics

Threads
1,223,264
Messages
6,171,081
Members
452,377
Latest member
bradfordsam

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