Mark Only First Occurrence of Duplicate values with multiple conditions

amolvijay

Board Regular
Joined
Nov 13, 2012
Messages
101
Office Version
  1. 365
Platform
  1. Windows
Hi Experts
I am working on a large data set, where in Column A and Column B have duplicate values. Rows almost flow to 35000 rows.
I wish to have a value in Column C, which will mark only first occurrence among duplicate value, rest being marked as "-".

Please help to create a formula which can get values in Column "C"

Column AColumn BColumn C
2jEAATemplate 0Unique
8YEAQTemplate 1Unique
8YEAQTemplate 1-
A9EAITemplate 2Unique
BHEAYTemplate 3Unique
FYEAYTemplate 1Unique
HeEAITemplate 1Unique
HeEAITemplate 2Unique
IwEAITemplate 3-
J1EAITemplate 4Unique
M0EAITemplate 5Unique
OuEAITemplate 6Unique
RAEAYTemplate 7Unique
rmEAATemplate 8Unique
SIEAYTemplate 10Unique
SIEAYTemplate 10-
t9EAATemplate 1Unique
uHEAQTemplate 2Unique
v5EAATemplate 3Unique
veEAATemplate 4Unique
vUEAQTemplate 15Unique
vUEAQTemplate 15-
vUEAQTemplate 15-
vUEAQTemplate 18Unique
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=IF(COUNTIFS(A$2:A2,A2,B$2:B2,B2)=1,"Unique","-")
 
Upvote 0
Solution

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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