Jan 28 2022 06:09 AM - edited May 16 2022 01:07 AM
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?
Jan 28 2022 06:40 AM
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.
Jan 28 2022 08:24 AM
@Martin_Weiss War ne gute Idee, hat funktioniert! Danke
Jan 28 2022 09:55 AM
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.
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:
May 13 2022 01:51 PM
@Martin_Weiss Ich stelle soeben fest, dass wenn ich die Leerzeichen entferne, Sachen wie 00 und +49 an 1. Stelle verschwinden...
May 13 2022 01:57 PM
May 13 2022 02:01 PM
May 13 2022 09:32 PM
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.
Note: These screenshots were taken on a Mac but it looks similar on the PC version.
May 15 2022 11:24 PM
@Riny_van_Eekelenas you can see, I do not have such a selection in Excel 365.
May 16 2022 12:23 AM
@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).
May 13 2022 09:32 PM
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.
Note: These screenshots were taken on a Mac but it looks similar on the PC version.