Count without duplicates

shakaz

New Member
Joined
Oct 27, 2010
Messages
21
Let's say I have three columns of data.

In Column A, is name: Bob, Jon, Mary, Bob etc
In Column B, is Billed or Un-billed: Billed, Bench, unbilled etc.

In column A, there will be instances where a name might appear more than once. I want count How many are Billed in Column B but for 1 instance not for duplicates. Is there a way to do this?

Bob Billed
Jon Bench
Bob Bench
Bob Billed
Mary Billed

Here Billed count is 2 (Bob is repeated). Can you help????????
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi

One way would be to use a helper column.
In cell C1 enter
=IF(COUNTIF($A$1:A1,A1)>1,0,1)
and copy down

Then in cell D1 enter
=SUMIF(B1:B5,"Billed",C1:C5)

You can hide column C if you wish.
 
Upvote 0
Select all your data, use ADVANCED FILTER for unique values only and then you can use the COUNTIF function to count the number of unique items in column B
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,795
Members
452,943
Latest member
Newbie4296

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