EXCEL n'ouvre pas bien mon document CSV

Copper Contributor

Bonjour, 

J'ai déjà tenté de résoudre le problème avec des personnes de Microsoft. Après 3h de travail de leur part sur mon ordinateur (sans succès) on m'a conseillé de venir ici pour résoudre mon problème. 

 

Je tente d'ouvrir un document provenant d'OpenSI (reprenant des informations clients) en format CSV, sur Excel. D'habitude cela fonctionne très bien (sur d'autres ordinateurs) mais sur mon ordinateur (neuf), cela ne veut pas s'ouvrir correctement. Au lieu que les différentes catégories : nom, prénom, adresse, produit acheté etc soient d'être rangées par colonne, elles sont dans une seule et même colonne. 

J'ai besoin de pouvoir le faire pour pouvoir travailler. Comment puis-je résoudre ce problème ?? 


Merci par avance. 

Yola



15 Replies
I'm not sure if this will help, but something tells me that you may be useful in your plans. Take a look there ... think it's worth the time :)

http://www.rondebruin.nl/win/section1.htm
I can only recommend this page.

Nikolino

Merci pour votre réponse. Mais malheureusement ce n'est pas utile :( 

You might check to ensure a comma is being used for the list separator under your windows regional settings.

https://resrequest.helpspot.com/index.php?pg=kb.page&id=279
CSV in Excel richtig importieren, so geht’s
Anleitung:
https://blogs54.de/blog/2015/05/csv-in-excel-richtig-importieren-so-gehts/

Ist in Deutsch...vieleicht hilft dir das ja :)

@Yola14 

You may try to open the file in any text editor (e.g. Notepad) and add very first line as

sep=;

if fields are separated by semicolons, or change on proper character.

Bonjour @NikolinoDE 

Merci pour votre réponse. J'ai tenté le faire mais ça ne fonctionne pas. Ce qui sépare mes données est : ";" et non pas "," (voir capture d'écran) 

Bonjour @JMB17 

Merci pour votre réponse. J'ai fais la modification mais cela n'a rien changé malheureusement :( 

 

Voici  à quoi ressemble mon excel (voir capture d'écran). 

@Yola14 

Perhaps you may submit sample file keeping only 2-3 rows and removing sensitive information?

This data can be interpreted by an interface or a program such as Excel. However, problems can arise here: the separator used, in the example above a semicolon, is not the same everywhere.

A semicolon is used by default in Europe. In the USA, however, the country in which Office is developed, a comma is used by default. Why is that?

The answer is as simple as it is complex. In the USA, the period is used as a decimal separator, so the comma is still free there and was thus defined as a separator. In Europa, however, the comma is used as the decimal separator. It is therefore no longer available as a separator. That is why the semicolon is used in Europa (specialy Germany) as a separator.
CSV file with comma instead of semicolon

If you now want to create many user accounts in Office 365, for example, this only works with a comma-separated .CSV file, but not with a semicolon-separated .csv file.

If you want to save a file as .csv in Excel, there is no option to choose between commas or a semicolon as a separator. The region settings in Windows can help here. Simply enter "Region" in the search (in Windows 7 in the start bar, in Windows 10 in the task bar) or open the region settings via the control panel. At the top of the Format window that opens, select “English (United States)” and click Apply.

Region Settings in Windows (10)

Then save your Excel file as a delimited .csv file. This file is now comma separated. Then simply change the region settings back to "French :-)."

If that doesn't work then I can't help.

Oui je vous joints un aperçu 

@Yola14 

Screenshot shows how it looks after you open it in Excel.  More informative will be the source, how it looks if to open in Notepad.

@Yola14 

Thank you. Comma is used as separator in your case. Could you please do small test if it works

1) download TestWithSep file and double click on it

and

2) Enable import from text connector if it's not enabled

image.png

open it

image.png

connect to downloaded TestNoSep file selecting delimiter and UTF-8, plus My data has headers

 

and semicolon on second step

image.png

Bonjour, 

Il semblerait que ça fonctionne :D 
Comment est-ce que je peux faire maintenant pour cela s'ouvre automatiquement comme cela ? Pour m'éviter de faire ça à chaque fois. 

Merci bcp! 

Yola 

@Yola14 

For that you shall to change Windows settings

Win+R control international Additional settings and here change list separator on semicolon

image.png

But that could take side effect on your other applications.