SOLVED

[GELÖST] -- Dublikate in Telefonnummern suchen und löschen

%3CLINGO-SUB%20id%3D%22lingo-sub-3080249%22%20slang%3D%22en-US%22%3ERe%3A%20Dublikate%20in%20Telefonnummern%20suchen%20und%20l%C3%B6schen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3080249%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1290012%22%20target%3D%22_blank%22%3E%40kkoperator%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eich%20w%C3%BCrde%20zuerst%20alle%20Telefonnummern%20normalisieren.%20Das%20hei%C3%9Ft%2C%20durch%20mehrere%20Suchen%26amp%3BErsetzen-Vorg%C3%A4nge%20in%20eine%20einheitliche%20Schreibweise%20bringen.%20Also%20ohne%20irgendwelche%20Leerzeichen%2C%20Punkte%2C%20Schr%C3%A4gstriche%20etc.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESuche%20nach%20.%26nbsp%3B%20-%26gt%3B%20Ersetzen%20durch%20(nichts%3B%20also%20das%20Feld%20einfach%20leerlassen)%3C%2FP%3E%3CP%3ESuche%20nach%20%2C%26nbsp%3B%20-%26gt%3B%26nbsp%3BErsetzen%20durch%20(nichts)%3C%2FP%3E%3CP%3ESuche%20nach%20%2F%26nbsp%3B%20-%26gt%3B%20Ersetzen%20durch%20(nichts)%3C%2FP%3E%3CP%3ESuche%20nach%20Leerzeichen%20-%26gt%3B%26nbsp%3BErsetzen%20durch%20(nichts)%3C%2FP%3E%3CP%3Eusw.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnd%20danach%20nochmal%20Duplikate%20entfernen%20oder%20%C3%BCber%20die%20bedingte%20Formatierung%20kennzeichnen%20lassen.%20Das%20ist%20etwas%20m%C3%BChsam%2C%20aber%20einigerma%C3%9Fen%20zuverl%C3%A4ssig.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3081004%22%20slang%3D%22de-DE%22%3E%5BSolved%5D%20Find%20and%20delete%20duplicates%20in%20phone%20numbers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3081004%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F48469%22%20target%3D%22_blank%22%3E%40Martin_Weiss%3C%2FA%3E%26nbsp%3BWas%20a%20good%20idea%2C%20worked!%20Thank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3081744%22%20slang%3D%22en-US%22%3ERe%3A%20Dublikate%20in%20Telefonnummern%20suchen%20und%20l%C3%B6schen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3081744%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1290012%22%20target%3D%22_blank%22%3E%40kkoperator%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20purge%20all%20characters%20but%20figures%20and%20then%20compare%20the%20output%2C%20column%20B.%3C%2FP%3E%3CP%3EAllowed%20characters%20in%20B3.%3C%2FP%3E%3CP%3ESince%20you%20have%20a%20country%20prefix%2C%20it%20have%20to%20be%20omitted%20like%20column%20E.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22bosinander_0-1643392174049.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343392iD4265E040561F597%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22bosinander_0-1643392174049.png%22%20alt%3D%22bosinander_0-1643392174049.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIt's%20an%20old%20solution%20that%20may%20be%20done%20more%20pretty%20and%20easier%20to%20read%20today%20but%20it%20could%20probably%20help%20you%20as%20is.%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel-formula%22%3E%3CCODE%3E%3DTEXTJOIN(%22%22%3B0%3BIFERROR(MID(%24B%243%3BFIND(MID(%24A5%3BCOLUMN(OFFSET(%24A5%3B0%3B0%3B1%3BLEN(%24A5)))%3B1)%3B%24B%243)%3B1)%3B%22%22))%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EDuplicates%20are%20colored%20by%20Home%20tab%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22bosinander_1-1643392414765.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F343395i50AC7B204235F5A9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22bosinander_1-1643392414765.png%22%20alt%3D%22bosinander_1-1643392414765.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3373304%22%20slang%3D%22de-DE%22%3ERe%3A%20Search%20for%20and%20delete%20duplicates%20in%20telephone%20numbers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3373304%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F48469%22%20target%3D%22_blank%22%3E%40Martin_Weiss%3C%2FA%3E%26nbsp%3BI%20just%20noticed%20that%20when%20I%20remove%20the%20spaces%2C%20things%20like%2000%20and%20%2B49%20on%201.%20Place%20disappear...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3373333%22%20slang%3D%22de-DE%22%3ERe%3A%20Search%20for%20and%20delete%20duplicates%20in%20telephone%20numbers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3373333%22%20slang%3D%22de-DE%22%3EThe%20problem%20is%2C%20if%20I%20omit%20all%20characters%20except%20numbers%2C%20then%20(including%20spaces)%2C%20then%20for%20example%200049%20becomes%2049....%20and%20I%20don't%20see%20anymore%20if%20it%20was%20a%20prefix%20for%2004921%20or%20a%20country%20code%20%2B49.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3373347%22%20slang%3D%22de-DE%22%3ESubject%3A%20Find%20and%20delete%20duplicates%20in%20phone%20numbers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3373347%22%20slang%3D%22de-DE%22%3EFurthermore%2C%20under%20the%20category%20%22Custom%22%20I%20look%20for%20the%20type%20%22Phone%20number%22%20in%20the%20format%20options...%3CBR%20%2F%3E%3CBR%20%2F%3EFurthermore%2C%20under%20the%20category%20%22Custom%22%2C%20I%20am%20looking%20for%20the%20type%20%22Phone%20number%22%20in%20the%20format%20options...%3CBR%20%2F%3E%3CBR%20%2F%3ELink%3A%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fdisplay-numbers-as-phone-numbers-7feabe49-15b3-411c-a030-781b4f2c87dd%23%3A~%3Atext%3DOn%2520the%2520Home%2520tab%252C%2520click%2520the%2520Dialog%2520Box%2CCustom%2520category%252C%2520and%2520look%2520in%2520the%2520Type%2520box%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fdisplay-numbers-as-phone-numbers-7feabe49-15b3-411c-a030-781b4f2c87dd%23%3A~%3Atext%3DOn%2520the%2520Home%2520tab%252C%2520click%2520the%2520Dialog%2520Box%2CCustom%2520category%252C%2520and%2520look%2520in%2520the%2520Type%2520box%3C%2FA%3E.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3374031%22%20slang%3D%22en-US%22%3EBetreff%3A%20Dublikate%20in%20Telefonnummern%20suchen%20und%20l%C3%B6schen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3374031%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1290012%22%20target%3D%22_blank%22%3E%40kkoperator%3C%2FA%3E%26nbsp%3BThe%20article%20in%20the%20link%20is%20a%20bit%20unclear.%20The%20Phone%20Number%20type%20appears%20when%20you%20select%20Special%20and%20then%20change%20the%20Language%2Flocation%20to%20e.g.%20English%20(US).%20Several%20other%20languages%20also%20show%20this%20option%2C%20but%20not%20all.%20Select%20%22Phone%20Number%22%20and%20then%20select%20Custom.%20Now%20you%20see%20the%20custom%20format%20for%20a%20US%20phone%20number%2C%20and%20create%20your%20own%20from%20it.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202022-05-14%20at%2006.19.48.png%22%20style%3D%22width%3A%20345px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371622i60A418ACFDF86F37%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202022-05-14%20at%2006.19.48.png%22%20alt%3D%22Screenshot%202022-05-14%20at%2006.19.48.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202022-05-14%20at%2006.20.04.png%22%20style%3D%22width%3A%20435px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371623iF5F1F248F320BAA1%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202022-05-14%20at%2006.20.04.png%22%20alt%3D%22Screenshot%202022-05-14%20at%2006.20.04.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CEM%3ENote%3A%20These%20screenshots%20were%20taken%20on%20a%20Mac%20but%20it%20looks%20similar%20on%20the%20PC%20version.%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3378262%22%20slang%3D%22de-DE%22%3ESubject%3A%20Find%20and%20delete%20duplicates%20in%20phone%20numbers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3378262%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3Eas%20you%20can%20see%2C%20I%20do%20not%20have%20such%20a%20selection%20in%20Excel%20365.%3C%2FP%3E%3CP%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22benutzerdefiniert.PNG%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371784iA5C1491C33406EC1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22benutzerdefiniert.PNG%22%20alt%3D%22custom.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3378523%22%20slang%3D%22en-US%22%3EBetreff%3A%20Dublikate%20in%20Telefonnummern%20suchen%20und%20l%C3%B6schen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3378523%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1290012%22%20target%3D%22_blank%22%3E%40kkoperator%3C%2FA%3E%26nbsp%3BAs%20I%20wrote%20earlier%2C%20you%20need%20to%20switch%20to%20English%20(USA)%20first.%20Then%2C%20back%20to%20Custom%20(Benutzerdefiniert).%20Now%20you%20need%20to%20edit%20the%20format%20so%20that%20it%20fits%20German%20phone%20numbers%2C%20which%20will%20then%20be%20available%20in%20the%20current%20workbook%20under%20Custom%20(at%20the%20bottom%20of%20the%20list).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3378664%22%20slang%3D%22de-DE%22%3ESubject%3A%20Find%20and%20delete%20duplicates%20in%20phone%20numbers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3378664%22%20slang%3D%22de-DE%22%3EGreat%2C%20it%20works!%20Thank%20you%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3080034%22%20slang%3D%22de-DE%22%3E%5BSOLVED%5D%20--%20Find%20and%20delete%20duplicates%20in%20phone%20numbers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3080034%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CBR%20%2F%3EI%20have%20a%20column%20of%20phone%20numbers%20that%20I%20would%20like%20to%20check%20for%20duplicates.%20I%20have%20already%20used%20the%20Excel%20function%20%22Remove%20duplicates%22.%20Nevertheless%2C%20I%20would%20like%20to%20check%20if%20all%20duplicates%20are%20deleted.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%2C%20the%20entries%20look%20like%20this%3A%200123456789%20or%20%2B49123456789%20or%200123.45678-9%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20is%20the%20best%20way%20to%20do%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3080034%22%20slang%3D%22de-DE%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor


Ich habe eine Spalte mit Telefonnummern, die ich gern auf Duplikate prüfen möchte. Ich habe bereits die Excel-Funktion "Duplikate entfernen" genutzt. Ich möchte dennoch prüfen ob auch alle Duplikate gelöscht sind.

 

Die Einträge sehen zum Beispiel so aus: 0123456789 oder +49123456789 oder 0123.45678-9

 

Wie mache ich das am besten?

 

10 Replies

Hi @kkoperator 

 

ich würde zuerst alle Telefonnummern normalisieren. Das heißt, durch mehrere Suchen&Ersetzen-Vorgänge in eine einheitliche Schreibweise bringen. Also ohne irgendwelche Leerzeichen, Punkte, Schrägstriche etc.

 

Suche nach .  -> Ersetzen durch (nichts; also das Feld einfach leerlassen)

Suche nach ,  -> Ersetzen durch (nichts)

Suche nach /  -> Ersetzen durch (nichts)

Suche nach Leerzeichen -> Ersetzen durch (nichts)

usw.

 

Und danach nochmal Duplikate entfernen oder über die bedingte Formatierung kennzeichnen lassen. Das ist etwas mühsam, aber einigermaßen zuverlässig.

 

@Martin_Weiss War ne gute Idee, hat funktioniert! Danke

Hi @kkoperator 

I would purge all characters but figures and then compare the output, column B.

Allowed characters in B3.

Since you have a country prefix, it have to be omitted like column E.

bosinander_0-1643392174049.png

It's an old solution that may be done more pretty and easier to read today but it could probably help you as is.

=TEXTJOIN("";0;IFERROR(MID($B$3;FIND(MID($A5;COLUMN(OFFSET($A5;0;0;1;LEN($A5)));1);$B$3);1);""))

Duplicates are colored by Home tab:

bosinander_1-1643392414765.png

 


@Martin_Weiss Ich stelle soeben fest, dass wenn ich die Leerzeichen entferne, Sachen wie 00 und +49 an 1. Stelle verschwinden...

The problem is, if I omit all characters except numbers, then (including spaces), then for example 0049 becomes 49.... and I don't see anymore if it was a prefix for 04921 or a country code +49.
Des Weiteren suche ich unter der Kategorie "Benutzerdefiniert" den Typ "Telefonnummer" in den Formatoptionen...

Furthermore, under the category "Custom", I am looking for the type "Phone number" in the format options...

Link: https://support.microsoft.com/en-us/office/display-numbers-as-phone-numbers-7feabe49-15b3-411c-a030-....
best response confirmed by Hans Vogelaar (MVP)
Solution

@kkoperator The article in the link is a bit unclear. The Phone Number type appears when you select Special and then change the Language/location to e.g. English (US). Several other languages also show this option, but not all. Select "Phone Number" and then select Custom. Now you see the custom format for a US phone number, and create your own from it.

Screenshot 2022-05-14 at 06.19.48.pngScreenshot 2022-05-14 at 06.20.04.png

Note: These screenshots were taken on a Mac but it looks similar on the PC version.

@Riny_van_Eekelenas you can see, I do not have such a selection in Excel 365.

 benutzerdefiniert.PNG

@kkoperator As I wrote earlier, you need to switch to English (USA) first. Then, back to Custom (Benutzerdefiniert). Now you need to edit the format so that it fits German phone numbers, which will then be available in the current workbook under Custom (at the bottom of the list).

 

Super, klappt! Danke