COUNTIF - combination of colomns

beman

New Member
Joined
Jan 25, 2017
Messages
8
Hi,

I checked the forum but couldn't find anything that worked for me.

The problem I have is getting excel to count only the unique combination Part and Location, in the example below it should return the number 2 (colomn D) as there are 2 unique locations for the combination.

COLOMN ACOLOMN BCOLOMN CCOLOMN D
PARTSERIALLOCATIONRESULT
123456BS12345Z.2.J22
123456BS12346Z.2.J22
123456BS12347Z.2.J22
123456BS12348Z.2.J22
123456BS12349Z.2.J42
123456BS12350Z.2.J42
123456BS12351Z.2.J42
123456BS12352Z.2.J42

<tbody>
</tbody>


Hope someones knows how to get this done with light/simple formula.

Thanks in advance for the help!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try this in D3:

=SUM(SIGN(FREQUENCY(IF($A$3:$A$10=A3,MATCH($C$3:$C$10,$C$3:$C$10,0)),ROW($C$3:$C$10)-ROW($C$3)+1)))

confirm with Control+Shift+Enter after putting the formula in the formula bar.
 
Upvote 0

Forum statistics

Threads
1,215,461
Messages
6,124,953
Members
449,198
Latest member
MhammadishaqKhan

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