Eliminating Duplicates and Correlating them to another Value

KDR11

New Member
Joined
Sep 8, 2014
Messages
1
I'm trying to create a table that will provide values based on duplicates being counted as 1.

For the totals I've achieved this by using the following formula and pressing ctrl+shift+enter:

=SUM(IF(FREQUENCY(IF(LEN(Table!A:A)>0,MATCH(Table!A:A,Table!A:A,0),""), IF(LEN(Table!A:A)>0,MATCH(Table!D:D,Table!A:A,0),""))>0,1))

Where Table is the worksheet that contains the data, and row A is the company name. The above formula allows me to have blank cells and will also allow the amount of data to vary.

I'm having a problem, however, assigning a different argument.

For instance if:


AB
RedY
RedY
BlueY
RedY
GreenY
RedY
GreenY
BlueY
YellowZ
GreenY
PurpleZ
OrangeZ
BlackX
WhiteX
BlackX
PurpleZ

<tbody>
</tbody><colgroup><col><col></colgroup>

My total will correctly arrive at "8" because that's the total number of, in this case, colors involved.

Now I want to know how many colors there are that are associated with "X", "Y", or "Z"

X = 2
Y = 3
Z = 3

How can I accomplish this while still being allowed to have an infinite area within the column that does not count blanks and allows for text?

Thank you!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,214,605
Messages
6,120,473
Members
448,967
Latest member
visheshkotha

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