Find & replace duplicate digits with in a cell

Sultan786

New Member
Joined
Jul 13, 2019
Messages
1
I would like to find specific digits in a cell and replace it with a symbol or some text like "duplicate", not the whole cell only the duplicate characters in the cell.
I have one column with more then 2500 rows which contains contact numbers. Every cell contains more then one number. then i have a another column in which i have the numbers that i want to be deleted from the first column.
I am placing the example so everybody can get an idea of what i want.


Column 1 looking for duplicates in this one Column 2 Numbers to find from first column and replace with symbol

<tbody>
</tbody>

051-5506664,051-5518677,0331-5689456

<tbody>
</tbody>
0331-5689456

<tbody>
</tbody>
,0301-6278688, 0300-6245388,0331-5689457

<tbody>
</tbody>
0331-5689457

<tbody>
</tbody>
0537610640,0333-8564866,0331-5689451

<tbody>
</tbody>
0331-5689458

<tbody>
</tbody>
,0344-5329610 / 0044-7864922101,0331-5689458

<tbody>
</tbody>
0331-5689459

<tbody>
</tbody>
544-646789/345-5624363,0331-5689459

<tbody>
</tbody>
0331-5689450

<tbody>
</tbody>
,051-5826034,0331-5689450

<tbody>
</tbody>
0331-5689451

<tbody>
</tbody>

<tbody>
</tbody>

I am new to fourms, Could not find the attachment button to attach excel file, so made a table in the post. Help in this regard is highly appreciated. Thanks
icon_smile.gif
 
Last edited by a moderator:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Is what you're looking for (column B) always the string after the last comma in column A?
And, what happens when the string in column B is not found in column A?
 
Last edited:
Upvote 0
Is it something like this?


Excel 2010
ABCDE
1ORIGINAL STRINGFINDWHEREREPL WITHNEW STRING
2051-5506664,051-5518677,0331-56894560331-568945624AAA051-5506664,051-5518677,AAA
3,0301-6278688, 0300-6245388,0331-56894570331-568945728BBB,0301-6278688, 0300-6245388,BBB
40537610640,0333-8564866,0331-56894510331-5689458#VALUE!CCC0537610640,0333-8564866,0331-5689451
5,0344-5329610 / 0044-7864922101,0331-56894580331-5689459#VALUE!DDD,0344-5329610 / 0044-7864922101,0331-5689458
60537610640,0333-8564866,0331-56894510333-856486611EEE0537610640,EEE,0331-5689451
Sheet4
Cell Formulas
RangeFormula
C2=FIND(B2,A2)-1
E2=IF(ISERROR(C2),A2,LEFT(A2,C2)&D2&RIGHT(A2,LEN(A2)-(C2+LEN(B2))))
 
Upvote 0
Post a link to shared excel file with your representative example of source and expected result. Use GoogleDrive, OneDrive, DropBox or any similar service.
 
Upvote 0

Forum statistics

Threads
1,213,558
Messages
6,114,296
Members
448,564
Latest member
ED38

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