When a CSV file is opened in Excel, the format of all of the columns therein is automatically set to General. This format automatically converts what it thinks are numbers to numbers, anything that looks like a date, to a date, etc.
Therefore, if you have leading zeros on your codes, they will will be dropped off when you open the file. For example, student code 091111 will automatically become 91111.
Some of the problems with fields becoming dates occur with codes and subject levels. For example, code APR04 become 4 April, and a subject level of 8-10, ie it covers levels 8 to 10, becomes 8 October.
In order to combat these problems, there are two slightly different set of steps you can take, depending on whether you open the file from within Excel or double click it and launch Excel at the same time.
• | Create the file as a .txt file or even change the extension of the file to .txt. |
• | Run Excel and then open the .txt file via the Open option in Excel. |
➢ | In the first of three Wizard windows that will appear, make sure the Delimited option button is selected and then click Next. |
➢ | In the second Wizard window: |
® | Remove the tick from the Tab delimiter box. |
® | Tick the Comma checkbox. |
➢ | In the last of the three windows: |
® | Check the Text column data format option. |
® | Highlight all of the columns appearing in the Data preview section. |
OR
• | From Windows Explorer right click the file and select Open with Excel. |
The file will open with each row being comma separated, but all in the one cell.
➢ | Select all of the data in the file. |
➢ | In the Data ribbon click the Text to Columns icon. |
➢ | The same Wizard windows as described above will come up and you should follow the same steps in this case also. |
• | Make the changes you require in Excel. |
• | Save the file as a CSV file. |
|
If you need to open the CSV file again to make further changes, you must follow the same set of steps. Otherwise, the data will be changed back again.
Alternatively, if only minor changes are required, open the CSV file in a text editor such as Notepad.
|
|