How to only count duplicates once without removing duplicate data

Demona26

New Member
Joined
Feb 22, 2018
Messages
40
Office Version
  1. 365
Platform
  1. Windows
Hi All. I'm hoping someone can help.
I have a column of data that has duplicates. I do not want to remove duplicates as I still need the information in those rows for a sum count of the price, but I do need to identify 1 of each duplicate value in another column. So, I need the end result to look like this:

[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]Opportunity Number
[/TD]
[TD]Unique Count
[/TD]
[/TR]
[TR]
[TD]O-015752
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]O-015752
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]O-015752
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]O-15555
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]O-15555
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]O-98587
[/TD]
[TD]1
[/TD]
[/TR]
</tbody>[/TABLE]

I have tried Conditional Formatting, with a =a1=a2 formula, but it doesn't seem to pick up all the values as some of the opportunity numbers can have up to 10 rows, and then manually enter the unique count based on color, but it doesn't sort it properly (some Opportunities are highlighted multiple times, or not at all.

Please note that I do not know VBA at all. (Some of you may recognize this is out of Salesforce - I know I can run a different type of report to only count opportunities, but I need it to do this from Excel)

Any Suggestions?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
OMG that worked! Thank you so much. This has been bugging me all day!
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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