Forum

Notifications
Clear all

Can I remove 100 characters that are duplicate and found in other cells?

2 Posts
2 Users
0 Reactions
46 Views
(@sorovincegmail-com)
Posts: 1
New Member
Topic starter
 

I apologize if this has been asked before but I couldn't find it.

I want to be able to tell excel to remove at least 100 duplicate characters that are found in other cells. I uploaded my excel here so you can see what I mean:

https://www.dropbox.com/s/e5i96f58o3pdq3i/test.xlsx?dl=0

So, these 100 characters...

.navheader { display: block; width: 120px; font-family: Georgia; font-size: 16px; font-weight: bold;

...are found in B2, B3, and B4. Is there a way to click on a button or execute a macro so that each time excel finds 100+ characters that are duplicate, to delete them, leaving only one copy of it?

Let me know in case I'm doing a bad job of explaining it.

Thank you so much,
Trajko

 
Posted : 22/11/2020 9:20 am
(@purfleet)
Posts: 412
Reputable Member
 

There is an upper limit (255 characters i think), but for 100 you could use subtitute

=SUBSTITUTE(B1,".navheader { display: block; width: 120px; font-family: Georgia; font-size: 16px; font-weight: bold;","")

btw, b2 doesnt have that string

I bet there is a much better way with power query though......

 
Posted : 22/11/2020 6:45 pm
Share: