Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
dk dk is offline
external usenet poster
 
Posts: 129
Default Removig Duplicates

Is there anyway to remove duplicates when the first 3 words in cell are the
same even though the last few words are not the same
ex:
O:\01-English\01-ETnc\01-R7046-1\02-PrevLessons\04-chas
O:\01-English\01-ETnc\01-R7046-1\02-PrevLessons\09-Matot
O:\01-English\01-ETnc\01-R7046-1\02-PrevLessons\05-Dvar
O:\01-English\01-ETnc\01-R7046-1\02-PrevLessons\05-arimftim
O:\01-English\01-ETnc\01-R7046-1\02-PrevLessons\05-Dvaze
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5,441
Default Removig Duplicates

Try entering this formula into cell B1: assumes that your first string is in cell A1. This is an
array formula, so enter it using Ctrl-Shift-Enter

=SUBSTITUTE(A1,RIGHT(A1,LEN(A1)-MAX((MID(A1,ROW(INDIRECT("1:" & LEN(A1))),1)="\")*ROW(INDIRECT("1:"
& LEN(A1))))),"")

Watch the line wrapping.

Then copy it down, and use those results to look for duplicates.

HTH,
Bernie
MS Excel MVP


"dk" wrote in message
...
Is there anyway to remove duplicates when the first 3 words in cell are the
same even though the last few words are not the same
ex:
O:\01-English\01-ETnc\01-R7046-1\02-PrevLessons\04-chas
O:\01-English\01-ETnc\01-R7046-1\02-PrevLessons\09-Matot
O:\01-English\01-ETnc\01-R7046-1\02-PrevLessons\05-Dvar
O:\01-English\01-ETnc\01-R7046-1\02-PrevLessons\05-arimftim
O:\01-English\01-ETnc\01-R7046-1\02-PrevLessons\05-Dvaze



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicates mmcstech Excel Worksheet Functions 1 January 16th 07 02:48 PM
Help with Duplicates rlee1999 Excel Worksheet Functions 3 September 19th 06 09:16 AM
Duplicates flow23 Excel Discussion (Misc queries) 6 April 11th 06 12:15 AM
duplicates Danbmarine Excel Discussion (Misc queries) 1 December 5th 05 04:58 PM
Duplicates browie Excel Discussion (Misc queries) 0 August 22nd 05 12:48 AM


All times are GMT +1. The time now is 05:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"