Saisie et manipulation des données dans les tableaux

From Apache OpenOffice Wiki
< FR‎ | Documentation‎ | Writer Guide
Revision as of 15:17, 4 May 2009 by Sgauti (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



Se déplacer entre les cellules

A l'intérieur d'un tableau, vous pouvez utiliser la souris, les touches fléchées ou la touche Tab pour vous déplacer entre les cellules.

Les touches fléchées déplacent le curseur à la cellule suivante seulement s'il n'y pas de texte sur le chemin. Par exemple, appuyer sur la flèche de droite déplacera le curseur à droite à l'intérieur du texte dans la cellule active, puis à la cellule suivante.

La touche Tab déplace le curseur directement à la cellule suivante et, si le curseur est dans la dernière cellule du tableau, crée une nouvelle ligne. Presser Maj+Tab déplace le curseur d'une cellule en arrière.

Template:Documentation/Tip

Trier les données dans un tableau

Comme pour les feuilles de calcul, Writer permet de trier les données dans un tableau. Jusqu'à trois niveaux de tris peuvent être spécifiés (par exemple, trier d'abord numériquement par l'âge, puis alphabétiquement par nom à travers l'âge).

Pour trier les données dans un tableau :

Sélectionnez le tableau (ou une partie du tableau) à trier.

À partir de la barre de menu, sélectionnez Tableau > Trier. Dans la boîte de dialogue Trier :

  1. Décidez si vous souhaitez trier dans la direction des lignes ou des colonnes. La direction de tri par défaut est par lignes, ce qui consister à trier les données en colonnes.
  2. Sélectionnez jusqu'à trois critères de tri, dans l'ordre correct.
  3. Pour chaque critère, sélectionnez quelle colonne ou ligne à trier, si le tri est Numérique ou Alphanumérique et si c'est un tri Croissant ou Décroissant.
  4. Cliquez sur OK pour exécuter le tri.

Template:Documentation/Note

Using spreadsheet functions in a table

In a table in a Writer document, you can use some of the mathematical functions that are normally implemented by OpenOffice.org Calc. For many simple functions, Writer tables can be used as basic spreadsheets.

Just as in a spreadsheet, each table cell is identified by a letter (for the column) and a number (for the row). For example, cell C4 is the cell in the third column from the left and fourth row from the top. When the cursor is in a cell, this cell reference is displayed on the status bar.

Template:Documentation/Tip

For example, suppose you had two numbers in cells <B1> and <C2> and wanted to display the sum of the two in cell <A1>, as shown below.

Using spreadsheet functions in a table,

Do the following:

  1. Click in cell <A1> and press the = key. The Formula bar appears automatically, near the top of the screen. In the leftmost side of the bar, you can see the coordinates of the selected cell.
  2. Click in cell <B1>. The identifiers of this cell are automatically displayed in the Formula bar and inserted into cell <A1>.
  3. Press the + key.
  4. Click on cell <C2>. You can see the final formula = <B1>+<C2> displayed both in the selected cell and in the Object bar.
  5. Press the Enter key or click the green tick (checkmark) on the Formula Bar.

In our example, this gives the result 9 in the top left cell. For contiguous cells, you can simply select the cells in the row, column, or the rectangle of rows and columns. Thus, for example, to add a column of numbers, do this:

  1. Type an equals sign = in an empty cell.
  2. Select the cells to be added together—in this case the cells from A2 to A5. The formula should be something like =<A2:A5>.
  3. Press the Enter key or click the green tick (checkmark) on the Formula Bar.
  4. The answer appears in the cell you have selected.

When using a function, you can enter the cells manually or by selecting them. Thus, to add up the four numbers that we added above (A2, A3, A4, A5), do this:

  1. Type an equals sign = in an empty cell.
  2. Type sum or select it from the function list f(x).
  3. Select the cells to be added together. The formula should be something like =sum<A2:A5>.
  4. Press the Enter key or click the green tick (checkmark) on the Formula Bar.
  5. The answer appears in the cell you have selected.
Documentation caution.png Unlike Calc, when inserting or deleting rows or columns of the table, formulas are not updated automatically. If you plan to use complex formulas you should consider embedding a Calc spreadsheet in your Writer document.


Content on this page is licensed under the Creative Common Attribution 3.0 license (CC-BY).
Personal tools