Replace duplicates

YvesT

New Member
Joined
Nov 9, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello everybody

Sorry this has being a question before. But I couldn't get any of the answer to work for me.
Haven't really used excel formulas in a while.

I have a file with a bunch of SKU's which are not all unique. Every once in a while it will repeat.
In this case column F has the SKU's.
For example
SSXAU283
SSXAU457
SSXAU283
SSXAU458
SSXAU458
SSXVW155

I would need the duplicate SKU's to be changed slightly add -1, -2, -3 behind it.
Counting up for each time its being found with the original staying the same.

Is there a way to get this done?

Thanks
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hello Fluff and thank you.
Could it be i have a setting that gives me problems?
error.JPG


Sorry wasn't able to check your response yesterday.
 
Upvote 0
Could it be i have a setting that gives me problems?
Quite possibly your Windows regional/language settings. What happens if you replace commas with semicolons in Fluff's formula?

Excel Formula:
=F2&IF(COUNTIF(F$2:F2;F2)>1;"-"&COUNTIF(F$2:F2;F2)-1;"")
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,731
Messages
6,126,532
Members
449,316
Latest member
sravya

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