Opening A CSV File: Figure 95: Text Import Dialog
Opening A CSV File: Figure 95: Text Import Dialog
Opening A CSV File: Figure 95: Text Import Dialog
Comma-separated-values (CSV) files are spreadsheet files in a text format where cell contents are
separated by a character, for example a comma or semicolon. Each line in a CSV text file
represents a row in a spreadsheet. Text is entered between quotation marks; numbers are entered
without quotation marks.
Tip
Most CSV files come from databases tables, queries, or reports, where further
calculations and charting are required. On Microsoft Windows, CSV files often have the
XLS file name extension to look like an Excel file, but they are still CSV files internally.
If Language is set to Default for CSV import, Calc will use the globally set language. If
Language is set to a specific language, that language will be used when importing
numbers.
– From Row – specifies the row where you want to start the import. The rows are visible
in the preview window at the bottom of the dialog.
• Separator Options – specifies whether the data uses separators or fixed widths as
delimiters.
– Fixed width – separates fixed-width data (equal number of characters) into columns.
Click on the ruler in the preview window to set the width.
– Separated by – select the separator used in the data to delimit the data into columns. If
you select Other, specify the character used to separate data into columns. This custom
separator must also be contained in the data.
– Merge delimiters – combines consecutive delimiters and removes blank data fields.
– Text delimiter – select a character to delimit text data.
• Other options
– Quoted fields as text – when this option is enabled, fields or cells whose values are
quoted in their entirety (the first and last characters of the value equal the text delimiter)
are imported as text.
– Detect special numbers – when this option is enabled, Calc will automatically detect all
number formats, including special number formats such as dates, time, and scientific
notation. The selected language also influences how such special numbers are
detected, since different languages and regions many have different conventions for
such special numbers.
When this option is disabled, Calc will detect and convert only decimal numbers. The
rest, including numbers formatted in scientific notation, will be imported as text. A
decimal number string can have digits 0-9, thousands separators, and a decimal
separator. Thousands separators and decimal separators may vary with the selected
language and region.
• Fields – shows how the data will look when it is separated into columns.
– Column type – select a column in the preview window and select the data type to be
applied the imported data.
– Standard – Calc determines the type of data.
– Text – imported data are treated as text.
– US English – numbers formatted in US English are searched for and included
regardless of the system language. A number format is not applied. If there are no US
English entries, the Standard format is applied.
– Hide – the data in the column are not imported.
3) In File name, you can enter a new file name for the spreadsheet.
4) In File type drop-down menu, select the type of spreadsheet format you want to use.
5) If Automatic file name extension is selected, the correct file extension for the
spreadsheet format you have selected will be added to the file name.
6) Click Save.
7) Each time you click Save, the Confirm File Format dialog opens (Figure 97). Click Use
[xxx] Format to continue saving in your selected spreadsheet format or click Use ODF
Format to save the spreadsheet in Calc ODS format.
8) If you select Text CSV format (*.csv) for your spreadsheet, the Export Text File dialog
(Figure 98) opens. Here you can select the character set, field delimiter, text delimiter, and
so on to be used for the CSV file.
Tip
To have Calc save documents by default in a file format other than the default ODF
format, go to Tools > Options > Load/Save > General. In Default file format and
ODF settings > Document type, select Spreadsheet, then in Always save as, select
your preferred file format.
Cell navigation
When a cell is selected or in focus, the cell borders are emphasized. When a group of cells is
selected, the cell area is colored. The color of the cell border emphasis and the color of a group of
selected cells depends on the operating system being used and how you have set up LibreOffice.
• Using the mouse – place the mouse pointer over the cell and click the left mouse button.
To move the focus to another cell using the mouse, simply move the mouse pointer to the
cell where you want the focus to be and click the left mouse button.
• Using a cell reference – highlight or delete the existing cell reference in the Name Box on
the Formula Bar (Figure 92 on page 118). Type the new cell reference of the cell you want
to move to and press Enter key. Cell references are case-insensitive: for example, typing
either a3 or A3 will move the focus to cell A3.
Sheet navigation
Each sheet in a spreadsheet is independent of the other sheets, though references can be linked
from one sheet to another. There are three ways to navigate between sheets in a spreadsheet:
• Using the Navigator – when the Navigator is open (Figure 99), double-click on any of the
listed sheets to select the sheet.
• Using the keyboard – use key combinations Ctrl+Page Down to move one sheet to the
right and Ctrl+Page Up to move one sheet to the left.
• Using the mouse – click on one of the sheet tabs at the bottom of the spreadsheet to
select that sheet.
If your spreadsheet contains a lot of sheets, then some of the sheet tabs may be hidden behind the
horizontal scroll bar at the bottom of the screen. If this is the case:
• Using the four buttons to the left of the sheet tabs can move the tabs into view (Figure 100).
• Dragging the scroll bar edge to the right may reveal all the tabs.
Note
When you insert a new sheet into a spreadsheet, Calc automatically uses the next
number in the numeric sequence as a name. Depending on which sheet is open when
you insert a new sheet, and the method you use to insert a new sheet, the new sheet
may not be in numerical order. It is recommended to rename sheets in a spreadsheet
to make them more recognizable.
Sheet tabs
Keyboard navigation
To navigate a spreadsheet using the keyboard, pressing a key or a combination of keys. For a key
combination, press more than one key at the same time. Table 4 lists the keys and key
combinations you can use for spreadsheet navigation in Calc.
Table 4. Keyboard cell navigation
Keyboard
Cell navigation
shortcut
→ Moves cell focus right one cell.
← Moves cell focus left one cell.
↑ Moves cell focus up one cell..
↓ Moves cell focus down one cell
Ctrl+→ Moves cell focus to the first column on the right containing data in that row if cell
focus is on a blank cell.
Moves cell focus to the last column on the right in the same range of occupied
cells in that row if cell focus is on a cell containing data.
Moves cell focus to the last column on the right in the spreadsheet if there are no
more cells containing data.
Tip
You can also select a contiguous range of cells by first clicking in the Selection mode
field on the Status Bar (Figure 94 on page 120) and selecting Extending selection
before clicking in the opposite corner of the range of cells. Make sure to change back
to Standard selection or you may find yourself extending a cell selection
unintentionally.
Entire sheet
To select the entire sheet, click on the small box between the column headers and the row headers
(Figure 103), or use the key combination Ctrl+A to select the entire sheet, or go to Edit on the
Menu bar and select Select All.
Single sheet
Click on the sheet tab for the sheet you want to select. The tab for the selected sheet becomes
white (default Calc setup).
All sheets
Right-click a sheet tab and choose Select All Sheets from the context menu.
Note
When you insert columns or rows, the cells take the formatting of the corresponding
cells in the next column to left or the row above.