MS Excel Tipps/en: Unterschied zwischen den Versionen

Aus Wiki csv4you
Wechseln zu:Navigation, Suche
(Die Seite wurde neu angelegt: „In this dialog, set the delimiter to a semicolon instead of tab stop and proceed again with the button 'Continue'.“)
 
(10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 
<languages/>
 
<languages/>
= Edit UTF-8 encoded CSV files with MS Excel and PSPad =
+
= Edit UTF-8 encoded *csv files with MS Excel and PSPad =
  
 
Since UTF-8 has a key role as a global character encoding in the Internet (free according to Wikipedia), will the data from our system, when exporting to a CSV file, correspondingly likewise be UTF-8 encoded. To open such files with the appropriate character set, must be proceeded as follows:
 
Since UTF-8 has a key role as a global character encoding in the Internet (free according to Wikipedia), will the data from our system, when exporting to a CSV file, correspondingly likewise be UTF-8 encoded. To open such files with the appropriate character set, must be proceeded as follows:
Zeile 35: Zeile 35:
 
=== Text Import Wizard - Step 3 of 3 ===
 
=== Text Import Wizard - Step 3 of 3 ===
  
Um alle Spalten korrekt zu importieren und eine automatische Umformatierung durch Excel zu verhindern, wird im folgenden der gesamte Datenbereich als Text formatiert:
+
To import all columns correctly and to prevent automated reformatting by Excel, the entire data area shall be formatted as text:
Dazu wählen Sie die erste Spalte aus, drücken und halten nun die Umschalttaste solange gedrückt, bis Sie auch die restlichen Spalten zur Auswahl hinzugefügt haben. Dadurch sollte der gesamte Datenbereich wie im Bild zu sehen von links bis rechts markiert und entsprechend schwarz hervorgehoben werden. Anschließend wählen sie als Datenformat der Spalten die Option Text aus und beenden den Assistenten mit der Schaltfläch Fertig stellen.
+
To do this, select the first column, press and hold the Shift key now pressed until you have added the remaining columns to the selection. As a result should the entire data area - as seen in the image - now be marked from left to right and appropriately highlighted black. Afterwards you choose as the data format of the columns the 'Text' option and quit the wizard with the 'Finish' button.
  
 
[[File:excel2003_csv_impo_5.png]]
 
[[File:excel2003_csv_impo_5.png]]
Zeile 42: Zeile 42:
 
=== Import Data ===
 
=== Import Data ===
  
Im letzten Schritt gibt es die Möglichkeit auszuwählen, wohin die Daten eingefügt werden sollen. Es empfiehlt sich hier, die Option Neues Arbeitsblatt zu wählen. Mit der Schaltfläche OK beenden Sie die Prozedur und die Daten werden UTF-8 codiert in Microsoft Excel angezeigt.
+
In the last step, there is the option of selecting where the data should be inserted. It is advisable here, to select a new worksheet. With the 'OK' button you terminate the procedure and the data appears UTF-8 encoded in Microsoft Excel.
  
 
[[File:excel2003_csv_impo_6.png]]
 
[[File:excel2003_csv_impo_6.png]]
Zeile 48: Zeile 48:
 
=== Allow Calculations ===
 
=== Allow Calculations ===
  
Die Daten werden jetzt als Text angezeigt, es können zunächst keine Berechnungen durchgeführt werden. Ersetzen Sie anschließend alle Punkte (.) durch Komma (,) mit
+
The data will now be displayed as text - at first no calculations can be done. Now replace all Dots (.) by Comma (,) - or vice versa - with the 'Search and Replace' button. Then select all columns that contain numbers, and format the cells. You do this in the 'Numbers' category where you select 'Standard'.
der Schaltfläche Suchen und Auswählen. Dann markieren Sie alle Spalten, die Zahlen enthalten, und formatieren die Zellen. Wählen Sie dazu im Bereich „Zahlen“
 
die Kategorie Standard aus.
 
  
 
=== Save File ===
 
=== Save File ===
  
*"Speichern unter" -> "CSV (Trennzeichen getrennt) *.csv" auswählen
+
* Select "Save As" -> "CSV (comma delimited) * .csv"
*Verzeichnis wählen, evtl. Dateinamen vergeben
+
* Select directory, assign a filename
*Speichern
+
* Save
*Sicherheitsfragen mit "Ja" bzw. "OK" beantworten
+
* Answer security questions with "Yes" or "OK"
  
 
=== Convert back in UTF-8 with PSPad ===
 
=== Convert back in UTF-8 with PSPad ===
Zeile 78: Zeile 76:
 
=== Menu Selection in Excel ===
 
=== Menu Selection in Excel ===
  
Wählen Sie über die Karteikarte Daten im Abschnitt Externe Daten abrufen die Option Aus Text aus.
+
In the 'Retrieve External Data' section, on the tab 'Data', use the option 'From Text'.
  
 
[[File:excel2010_csv_impo_1.png]]
 
[[File:excel2010_csv_impo_1.png]]
Zeile 84: Zeile 82:
 
=== Import Text File ===
 
=== Import Text File ===
  
Es öffnet sich der Dialog Textdatei importieren. Wählen Sie hier die zu öffnende Datei aus und betätigen Sie die Öffnen Schaltfläche.
+
It opens the 'Import Text File' dialog. Select the file to open and click the 'Open' button.
  
 
[[File:excel2010_csv_impo_2.png]]
 
[[File:excel2010_csv_impo_2.png]]
Zeile 102: Zeile 100:
 
=== Text Import Wizard - Step 3 of 3 ===
 
=== Text Import Wizard - Step 3 of 3 ===
  
Um alle Spalten korrekt zu importieren und eine automatische Umformatierung durch Excel zu verhindern, wird im folgenden der gesamte Datenbereich als Text formatiert:
+
To import all columns correctly and to prevent automated reformatting by Excel, the entire data area shall be formatted as text:
Dazu wählen Sie die erste Spalte aus, drücken und halten nun die Umschalttaste solange gedrückt, bis Sie auch die restlichen Spalten zur Auswahl hinzugefügt haben. Dadurch sollte der gesamte Datenbereich wie im Bild zu sehen von links bis rechts markiert und entsprechend schwarz hervorgehoben werden. Anschließend wählen sie als Datenformat der Spalten die Option Text aus und beenden den Assistenten mit der Schaltfläch Fertig stellen.
+
To do this, select the first column, press and hold the Shift key now pressed until you have added the remaining columns to the selection. As a result should the entire data area - as seen in the image - now be marked from left to right and appropriately highlighted black. Afterwards you choose as the data format of the columns the 'Text' option and quit the wizard with the 'Finish' button.
  
 
[[File:excel2010_csv_impo_5.png]]
 
[[File:excel2010_csv_impo_5.png]]
Zeile 109: Zeile 107:
 
=== Import Data ===
 
=== Import Data ===
  
In diesem Schritt gibt es die Möglichkeit auszuwählen, wohin die Daten eingefügt werden sollen. Es empfiehlt sich hier, die Option Neues Arbeitsblatt zu wählen. Mit der Schaltfläche OK beenden Sie die Prozedur und die Daten werden UTF-8 codiert in Microsoft Excel angezeigt.
+
In the last step, there is the option of selecting where the data should be inserted. It is advisable here, to select a new worksheet. With the 'OK' button you terminate the procedure and the data appears UTF-8 encoded in Microsoft Excel.
  
 
[[File:excel2010_csv_impo_6.png]]
 
[[File:excel2010_csv_impo_6.png]]
Zeile 115: Zeile 113:
 
=== Allow Calculations ===
 
=== Allow Calculations ===
  
Die Daten werden jetzt als Text angezeigt, es können zunächst keine Berechnungen
+
The data will now be displayed as text - at first no calculations can be done. Now replace all Dots (.) by Comma (,) - or vice versa - with the 'Search and Replace' button. Then select all columns that contain numbers, and format the cells. You do this in the 'Numbers' category where you select 'Standard'.
durchgeführt werden. Ersetzen Sie anschließend alle Punkte (.) durch Komma (,) mit
 
der Schaltfläche Suchen und Auswählen im Bereich Bearbeiten. Dann markieren
 
Sie alle Spalten, die Zahlen enthalten, und formatieren die Zellen. Wählen Sie dazu
 
im Bereich „Zahlen“ die Kategorie Standard aus.
 
  
 
=== Save File ===
 
=== Save File ===
  
*"Speichern unter" -> "CSV (Trennzeichen getrennt) *.csv" auswählen
+
* Select "Save As" -> "CSV (comma delimited) * .csv"
*Verzeichnis wählen, evtl. Dateinamen vergeben
+
* Select directory, assign a filename
*Speichern
+
* Save
*Sicherheitsfragen mit "Ja" bzw. "OK" beantworten
+
* Answer security questions with "Yes" or "OK"
  
 
=== Convert back in UTF-8 with PSPad ===
 
=== Convert back in UTF-8 with PSPad ===

Aktuelle Version vom 31. August 2016, 16:43 Uhr

Sprachen:
Deutsch • ‎English

Edit UTF-8 encoded *csv files with MS Excel and PSPad

Since UTF-8 has a key role as a global character encoding in the Internet (free according to Wikipedia), will the data from our system, when exporting to a CSV file, correspondingly likewise be UTF-8 encoded. To open such files with the appropriate character set, must be proceeded as follows:

Excel 2003

Menu Selection in Excel

Select on the menu "Data -> Import External Data" the menu item "Import Data".

Excel2003 csv impo 1.png

Select Data Source

It opens the dialog "Select Data Source". Select the file to open and click the "Open" button.

Excel2003 csv impo 2.png

Text Import Wizard - Step 1 of 3

Next set the file origin (character encoding) to UTF-8 (almost at the bottom of the list) and proceed with the button 'Continue'.

Excel2003 csv impo 3.png

Text Import Wizard - Step 2 of 3

In this dialog, set the delimiter to a semicolon instead of tab stop and proceed again with the button 'Continue'.

Excel2003 csv impo 4.png

Text Import Wizard - Step 3 of 3

To import all columns correctly and to prevent automated reformatting by Excel, the entire data area shall be formatted as text: To do this, select the first column, press and hold the Shift key now pressed until you have added the remaining columns to the selection. As a result should the entire data area - as seen in the image - now be marked from left to right and appropriately highlighted black. Afterwards you choose as the data format of the columns the 'Text' option and quit the wizard with the 'Finish' button.

Excel2003 csv impo 5.png

Import Data

In the last step, there is the option of selecting where the data should be inserted. It is advisable here, to select a new worksheet. With the 'OK' button you terminate the procedure and the data appears UTF-8 encoded in Microsoft Excel.

Excel2003 csv impo 6.png

Allow Calculations

The data will now be displayed as text - at first no calculations can be done. Now replace all Dots (.) by Comma (,) - or vice versa - with the 'Search and Replace' button. Then select all columns that contain numbers, and format the cells. You do this in the 'Numbers' category where you select 'Standard'.

Save File

  • Select "Save As" -> "CSV (comma delimited) * .csv"
  • Select directory, assign a filename
  • Save
  • Answer security questions with "Yes" or "OK"

Convert back in UTF-8 with PSPad

Since MS Excel saves CSV-files only in Windows ANSI format, we need to convert the file back in the UTF-8 format. Here we use the freely available software PSPad. Other text editors should but also be able to accomplish this.

  • File -> Open
  • Format -> Select UTF-8
  • Save

Excel 2007/2010

Menu Selection in Excel

In the 'Retrieve External Data' section, on the tab 'Data', use the option 'From Text'.

Excel2010 csv impo 1.png

Import Text File

It opens the 'Import Text File' dialog. Select the file to open and click the 'Open' button.

Excel2010 csv impo 2.png

Text Import Wizard - Step 1 of 3

Next set the file origin (character encoding) to UTF-8 (almost at the bottom of the list) and proceed with the button 'Continue'.

Excel2010 csv impo 3.png

Text Import Wizard - Step 2 of 3

In this dialog, set the delimiter to a semicolon instead of tab stop and proceed again with the button 'Continue'.

Excel2010 csv impo 4.png

Text Import Wizard - Step 3 of 3

To import all columns correctly and to prevent automated reformatting by Excel, the entire data area shall be formatted as text: To do this, select the first column, press and hold the Shift key now pressed until you have added the remaining columns to the selection. As a result should the entire data area - as seen in the image - now be marked from left to right and appropriately highlighted black. Afterwards you choose as the data format of the columns the 'Text' option and quit the wizard with the 'Finish' button.

Excel2010 csv impo 5.png

Import Data

In the last step, there is the option of selecting where the data should be inserted. It is advisable here, to select a new worksheet. With the 'OK' button you terminate the procedure and the data appears UTF-8 encoded in Microsoft Excel.

Excel2010 csv impo 6.png

Allow Calculations

The data will now be displayed as text - at first no calculations can be done. Now replace all Dots (.) by Comma (,) - or vice versa - with the 'Search and Replace' button. Then select all columns that contain numbers, and format the cells. You do this in the 'Numbers' category where you select 'Standard'.

Save File

  • Select "Save As" -> "CSV (comma delimited) * .csv"
  • Select directory, assign a filename
  • Save
  • Answer security questions with "Yes" or "OK"

Convert back in UTF-8 with PSPad

Since MS Excel saves CSV-files only in Windows ANSI format, we need to convert the file back in the UTF-8 format. Here we use the freely available software PSPad. Other text editors should but also be able to accomplish this.

  • File -> Open
  • Format -> Select UTF-8
  • Save