Count Instances of a Difference

ExcelMacLean

New Member
Joined
Dec 1, 2015
Messages
11
Hey - I'm not sure how to accurately describe this question in the title, but here it goes.

I have two columns with data, and one review column. I am looking for help creating a worksheet formula which will count how many unique values in column 2 are associated with the value in column 1.

In the example below, Bob has only 1 unique value associated with his name in column 2, "A," so the expected result is "1." Dave has two unique values associated with this his name, both "B" and "C," so the expected result is "2."

I am looking for a regular old worksheet function, no VBA this time. I greatly appreciate any help you can provide - thanks in advance! :)

Column 1Column 2Review
BobA1
BobA1
BobA1
DaveB2
DaveC2
DaveC2

<tbody>
</tbody>
 
Last edited:

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
You can use this array formula in C2

=SUM(IF(FREQUENCY(IF(A$2:A$6=A2,MATCH(B$2:B$6,B$2:B$6,0)),ROW(B$2:B$6)-ROW(B$2)+1),1))

confirm with CTRL+SHIFT+ENTER and copy down column
 
Last edited:
Upvote 0
Hey, thank you for the reply. I forgot to mention my actual file is about 670,000 rows.

- Do you think an Array Formula would crash my Excel?
- Is it possible to get the same functionality out of a non-Array function?

Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,676
Messages
6,126,171
Members
449,296
Latest member
tinneytwin

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