If information is in a electronic format, as information on Websites is, their is usually no need to key it into a spreadsheet. You should be able to import the information or simply copy from the web page and paste it to anywhere in your spreadsheet.
Because spreadsheets have information in cells when you paste multiple lines of information into a call the spreadsheet assumes you want each line to be on a different row in the spreadsheet. However often the spreadsheet will not know how you want to split the row up into columns. Fortunately a specific standard files format called CSV (Comma Separated Values) can tell what part of imported lines go into which columns and so cells. That is the information within rows are separated by a comma “,”. Sometimes information on web pages can be supplied in a CSV format. Even when it is not, their are other methods for breaking up row information into columns.
Bureau of Meteorology data
The data from the Bureau of Meteorology used in a number of the exercises was obtained using the following method.
NOTE: Is the Bureau of Meteorology changes its web site this procedure may not work as it is described.
-
Under the heading of latest Weather Click on Brisbane
In the Station Name column click on Brisbane
Click on Recent Months at Brisbane
Scroll down the page and under formats click on Plain Text Version.
-
Click on any part of the data
Whilst holding down the CTRL Key press the A key.
That is the shortcut for Select All. All the text should be highlighted.
Whilst holding down the CTRL Key presss the C key
That is the shortcut for Copying
If you have not already done so start Open Office Calc and make sure you have a empty spreadsheet.
Click on Cell A1
Whilst holding down the CTRL Key press the V key
That is the shortcut for Pasting
You will most likely find that the information has been placed all in column A, which is not what we want.
Undo the last step with the undo function (CTRL + Z)
From the Edit Menu select Paste Special. It should give you two options.
HTML Format and Unformatted text.
Click on Unformatted text and then click on Ok
You should be presented with the Text Import window. Carefully look at all the options.
Most likely the “Separated by” will set to “Tab”.
Click on the “Comma” tick box so that it is ticked
Click on Ok
This time the information is presented in columns
You have learnt how to take CSV data form a web page and have it be presented in columns in Open Office Calc
Election 2010 Results Data
Sometimes it is not necessary to do as much work to get this information into columns as can be seen in the Australian Electrical Commission date example below
-
Click on the Members Elected [CSV 8KB)
Depending on which Internet Browser you are using and how it is set up you may be asked if you want to open or save the file.
If you can select the option to open the file with Open Office Calc and then click on Ok
Open Office Calc should start and you will be presented with a Text Import window
Click Ok
In may appear that all the information is in Column A. However if you move across to column B you will see that the information is in from column B onwards
NOTE: If you have imported this electoral results data this way it will be in Read Only format meaning that you will not be able to change it. To be able to change it you will have to save the spreadsheet and re-open it again.
Fixed width Data
If the data you want to get in to a spreadsheet is not delimited in some way it if usually known as fixed width. That is there is a fixed amount of space been allocated for each piece of data. Calc has a easy way of specifying that space.
-
Go to where you saved the fixedwidth.txt file and double click on it to open it. It should open in Notepad
Click on any part of the information in Notepad
Whilst holding down the CTRL Key press the C key. (Copy)
In an empty spreadsheet click on A1
Paste the copied data (CTRL + V)
The information went all in to one column. This is not what we wanted to happen
Undo the Paste (CTRL +Z)
From the Edit Menu click on Paste Special
Select unformatted Text and click on Ok
Click on the Fixed Text Radio Button
Notice how the data at the bottom of the window changed? If you did not click on the Separated by radio button and repeat the above step
Point at the ruler (0 ….|….10..) and notice what happens. A vertical line appears on the data.
With the vertical line to the right of the last digit in the date click. What happened. Calc put a line in the data with a red dot at the top of it. This is the method you use to specify how the fixed width data will be broken up into columns
Use the same procedure to separate the numbers. If you make a mistake place the line you can click on it again to remove it.
Click on the ok. What happened? Their should be three columns of data
You have learnt how to import fix width data into columns in a spreadsheet
Hints on importing data into spreadsheets
Information can delimited with characters other then a comma “,” as you may have noticed on the Text Import window in Calc. Additionally a text delimiter character can sometimes be used to distinguish between text and non text information. Calc also allows for this.
If you have trouble getting the information correctly into columns try using different separated by characters or text delimiters. If you can still not get the result you want you could try saving the data in Notepad first and them copy it and Paste Special into Calc.