General Discussions

Discuss any topics that are not product-specific here.

Compare 2 rows and insert a new column

Soraju
7 - Meteor

Hello! 

could someone please help me with the below scenario?

 

Scenario : I have a data set with duplicate SKU numbers in a column. I want to check the whole column and if the SKU shows up multiple times then I want a new column to say -Duplicate, else It should say Unique.

 

Example :

SKUDescription
1234Toy
3456Beverage
1234Toy
8657Paper
9058Soda
3456Beverage
7685Wrap
9846Flower

 

And I would like a new column to find out unique/duplicate:

SKUDescriptionNew column 
1234ToyDuplicate
3456BeverageDuplicate
1234ToyDuplicate
8657PaperUnique
9058SodaUnique
3456BeverageDuplicate
7685WrapUnique
9846FlowerUnique

 

2 REPLIES 2
atcodedog05
22 - Nova
22 - Nova

Hi @Soraju 

 

Here is one way of doing it.

 

atcodedog05_0-1647455709408.png

 

Hope this helps : )

 

Soraju
7 - Meteor

Thank you for your prompt response. I will try that.

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels