issue92:libreoffice
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue92:libreoffice [2015/01/07 16:06] – créée andre_domenech | issue92:libreoffice [2015/03/08 17:34] (Version actuelle) – [10] auntiee | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | When you begin to create formulas in Calc, you soon realize that the wrong kind of data in a cell referenced by your formula can throw the results off. Calc does its best to interpret the data entered according to the formatting style of the cell. If you format the cell as a date type, Calc does its best to translate the input in that cell as a date. At times it is successful and other times not. Fortunately, | + | ====== 1 ====== |
+ | |||
+ | **When you begin to create formulas in Calc, you soon realize that the wrong kind of data in a cell referenced by your formula can throw the results off. Calc does its best to interpret the data entered according to the formatting style of the cell. If you format the cell as a date type, Calc does its best to translate the input in that cell as a date. At times it is successful and other times not. Fortunately, | ||
Sheet Setup | Sheet Setup | ||
- | Before we get to the validity options of Calc, we need to set up a spreadsheet where we will use the options. The spreadsheet is a time sheet for showing the hours worked during a week. The time sheet works well for our example because on a given day, the next time input must have a greater value than the previous entry. | + | Before we get to the validity options of Calc, we need to set up a spreadsheet where we will use the options. The spreadsheet is a time sheet for showing the hours worked during a week. The time sheet works well for our example because on a given day, the next time input must have a greater value than the previous entry.** |
+ | |||
+ | Lorsque vous commencez à créer des formules dans Calc, vous réalisez vite qu'un mauvais type de données dans une cellule référencée par votre formule peut invalider les résultats. Calc fait de son mieux pour interpréter les données saisies selon le style de mise en forme de la cellule. Si vous formatez la cellule comme une date, Calc fait de son mieux pour traduire le contenu de cette cellule en date. Parfois, il réussit, parfois non. Heureusement, | ||
+ | |||
+ | Configuration de la feuille | ||
+ | |||
+ | Avant de passer aux options de validité de Calc, nous avons besoin de mettre en place une feuille de calcul où nous allons utiliser ces options. La feuille de calcul est une feuille de temps pour montrer les heures travaillées au cours d'une semaine. Cette feuille fonctionne bien pour notre exemple, car pour un jour donné, l' | ||
+ | |||
+ | ====== 2 ====== | ||
- | We will start by creating our title and column headers. In cell A1, enter “Time Sheet”. On row 2, fill in columns A-F with the following titles: DAY, IN, OUT, IN, OUT, TOTALS. Now for the row headers. In cell A3, type in “Sunday”. Making sure that cell A3 is highlighted, | + | **We will start by creating our title and column headers. In cell A1, enter “Time Sheet”. On row 2, fill in columns A-F with the following titles: DAY, IN, OUT, IN, OUT, TOTALS. Now for the row headers. In cell A3, type in “Sunday”. Making sure that cell A3 is highlighted, |
Now let's format the cells. Select B3:E9, right-click, | Now let's format the cells. Select B3:E9, right-click, | ||
- | If you haven' | + | If you haven' |
- | Setup Validation | + | Nous allons commencer par créer le titre et les en-têtes de colonne. Dans la cellule A1, indiquez « Feuille de temps ». Sur la ligne 2, remplissez les colonnes A à F avec les titres suivants : JOUR, DÉBUT, FIN, DÉBUT, FIN, TOTAL. Maintenant, les en-têtes de ligne. Dans la cellule A3, indiquez « lundi ». Sélectionnez la cellule A3 et cliquez sur le petit carré dans le coin inférieur droit de la cellule en surbrillance. Le curseur devient une croix. Faites glisser vers le bas jusqu' |
+ | |||
+ | Maintenant, formatons les cellules. Sélectionnez B3:E9, faites un clic droit et sélectionnez Formater les cellules. Cliquez sur l' | ||
+ | |||
+ | Si vous ne l'avez pas encore fait, vous pouvez enregistrer votre feuille de calcul. | ||
+ | |||
+ | ====== 3 ====== | ||
+ | |||
+ | **Setup Validation | ||
We will need to check the validity of the time inputs. We will want them in a Calc-acceptable time format. This is the only requirement for valid data in the B column. For the other columns (C-E), we will need to also make sure the input is greater than the input before it. | We will need to check the validity of the time inputs. We will want them in a Calc-acceptable time format. This is the only requirement for valid data in the B column. For the other columns (C-E), we will need to also make sure the input is greater than the input before it. | ||
Ligne 17: | Ligne 35: | ||
Select cell B3, then Data > Validity. The Validity dialog will appear. | Select cell B3, then Data > Validity. The Validity dialog will appear. | ||
- | The Criteria tab (above) is where we control what constitutes valid data. The Allow drop-down list defines the type of data that is acceptable. The default is All Values. The other types are Whole Numbers, Decimal, Date, Time, Cell Range, List, and Text Length. The choices for the different types are basically the same except for Cell Range and List. With the cell Range, you define a cell range and the cell must contain a value that is in one of those cells. The defined range must consist of only one column or one row. With the List option, you define a list of acceptable values. With both the List and Cell Range options, you get a drop-down list box with the acceptable values. For our purposes, we need Allow set to Time. | + | The Criteria tab (above) is where we control what constitutes valid data. The Allow drop-down list defines the type of data that is acceptable. The default is All Values. The other types are Whole Numbers, Decimal, Date, Time, Cell Range, List, and Text Length. The choices for the different types are basically the same except for Cell Range and List. With the cell Range, you define a cell range and the cell must contain a value that is in one of those cells. The defined range must consist of only one column or one row. With the List option, you define a list of acceptable values. With both the List and Cell Range options, you get a drop-down list box with the acceptable values. For our purposes, we need Allow set to Time.** |
- | Check the box for “Allow empty cells” to allow cells to remain empty. This will allow us to start with a blank time sheet. | + | Validation de la configuration |
+ | |||
+ | Nous aurons besoin de vérifier la validité des saisies d' | ||
+ | |||
+ | Sélectionnez la cellule B3, puis Données > Validité. La boîte de dialogue de validité apparaît. | ||
+ | |||
+ | L' | ||
+ | |||
+ | ====== 4 ====== | ||
+ | |||
+ | **Check the box for “Allow empty cells” to allow cells to remain empty. This will allow us to start with a blank time sheet. | ||
The Data drop-down list allows you to select the comparative operator to use for this validation. The choices are equal, less than, greater than, less than or equal to, greater than or equal to, not equal, valid range, and invalid range. Each one asks for a minimum, maximum, or value to compare, except for the two range choices. The range choices require a minimum and maximum. For our purpose, we need the greater than operator. In the minimum text box, enter 12:00 AM or 00:00. | The Data drop-down list allows you to select the comparative operator to use for this validation. The choices are equal, less than, greater than, less than or equal to, greater than or equal to, not equal, valid range, and invalid range. Each one asks for a minimum, maximum, or value to compare, except for the two range choices. The range choices require a minimum and maximum. For our purpose, we need the greater than operator. In the minimum text box, enter 12:00 AM or 00:00. | ||
- | Click on the Input Help tab (below). The settings on this tab are optional. The idea is to provide the user with information about what to enter into the cell as a tip box that pops up when the cell is selected. To activate, click the checkbox for “Show input help when cell is selected.” Create a title for the tip box by typing it in the Title text box. For us, we could use the title “Start Time”. The Input Help text box is where you put the actual help tip like “Enter the start time: ex. 1:00 PM or 13:00”. | + | Click on the Input Help tab (below). The settings on this tab are optional. The idea is to provide the user with information about what to enter into the cell as a tip box that pops up when the cell is selected. To activate, click the checkbox for “Show input help when cell is selected.” Create a title for the tip box by typing it in the Title text box. For us, we could use the title “Start Time”. The Input Help text box is where you put the actual help tip like “Enter the start time: ex. 1:00 PM or 13:00”.** |
- | Switch to the Error Alert tab (above). Here we can set the validation to display a message when invalid data is entered. To activate the setting, check the checkbox for “Show error message when invalid values are entered”. There are four choices for the Action drop-down list, Stop, Information, | + | Cochez la case « Autoriser les cellules vides » pour permettre aux cellules de rester vides. Cela nous permettra de commencer avec une feuille de temps vide. |
- | Once you have everything set, click OK to save the Validity dialog settings. | + | La liste déroulante Données vous permet de sélectionner l' |
- | We will copy cell B3 to cells B4:B9. Right-click cell B3 and select Copy. Select cells B4:B9, right-click, | + | Cliquez sur l' |
+ | |||
+ | ====== 5 ====== | ||
+ | |||
+ | **Switch to the Error Alert tab (above). Here we can set the validation to display a message when invalid data is entered. To activate the setting, check the checkbox for “Show error message when invalid values are entered”. There are four choices for the Action drop-down list, Stop, Information, | ||
+ | |||
+ | Once you have everything set, click OK to save the Validity dialog settings.** | ||
+ | |||
+ | Passez à l' | ||
+ | |||
+ | Une fois que vous avez tout rempli, cliquez sur OK pour enregistrer les paramètres du dialogue de validité. | ||
+ | |||
+ | ====== 6 ====== | ||
+ | |||
+ | **We will copy cell B3 to cells B4:B9. Right-click cell B3 and select Copy. Select cells B4:B9, right-click, | ||
For columns C, D, and E, we will do almost the same thing. We will go through the steps on C, and you can repeat for D and E. Select cell C3, Data > Validity. On the Criteria tab of the Validity dialog, select Time from the Allow drop-down list. Check to allow empty cells. Set Data to greater than, and set the minimum value to B3. Notice that we use a relative cell reference here. This will allow us to copy it to the other cells and have the reference translate. These criteria tell Calc that the cell requires a value greater than the value in cell B3. Do what you want with the help and error tabs. I do recommend using at least Information or Warning messages for invalid data. The messages could mention needing a greater value (or a later time). Right-click cell C3 and copy the cell, then paste it into cells C4:C9. | For columns C, D, and E, we will do almost the same thing. We will go through the steps on C, and you can repeat for D and E. Select cell C3, Data > Validity. On the Criteria tab of the Validity dialog, select Time from the Allow drop-down list. Check to allow empty cells. Set Data to greater than, and set the minimum value to B3. Notice that we use a relative cell reference here. This will allow us to copy it to the other cells and have the reference translate. These criteria tell Calc that the cell requires a value greater than the value in cell B3. Do what you want with the help and error tabs. I do recommend using at least Information or Warning messages for invalid data. The messages could mention needing a greater value (or a later time). Right-click cell C3 and copy the cell, then paste it into cells C4:C9. | ||
- | You can repeat for columns D and E. You can also just copy C3 to D3:D9 and E3:E9, but you will need to adjust the text in the dialogs for help and error. | + | You can repeat for columns D and E. You can also just copy C3 to D3:D9 and E3:E9, but you will need to adjust the text in the dialogs for help and error.** |
+ | |||
+ | Nous allons recopier la cellule B3 dans les cellules B4:B9. Un clic droit sur la cellule B3 et sélectionnez Copier. Sélectionnez les cellules B4:B9, faites un clic droit et sélectionnez Coller. Cela va copier les paramètres de validité dans les cellules. La colonne entière aura les mêmes exigences pour la saisie. | ||
+ | |||
+ | Pour les colonnes C, D et E, nous allons faire presque la même chose. Nous allons dérouler les étapes pour C, et vous pourrez les répéter pour D et E. Sélectionnez la cellule C3, Données > Validité. Dans l' | ||
+ | Vous pouvez répéter pour les colonnes D et E. Vous pouvez aussi recopier C3 sur D3:D9 et E3:E9, mais vous aurez besoin d' | ||
+ | |||
+ | ====== 7 ====== | ||
- | Total Formulas | + | **Total Formulas |
Now that we have our validation set up, we need to create the formulas to give us our totals. We will start with the daily totals. Select cell F3. Enter the formula | Now that we have our validation set up, we need to create the formulas to give us our totals. We will start with the daily totals. Select cell F3. Enter the formula | ||
Ligne 43: | Ligne 92: | ||
For the weekly total in F10, we will just sum the daily totals. Here is the formula: | For the weekly total in F10, we will just sum the daily totals. Here is the formula: | ||
- | =SUM(F3:F9) | + | =SUM(F3:F9)** |
- | Protect Cells | + | Formules pour les totaux |
+ | |||
+ | Maintenant que notre validation est en place, nous devons créer les formules pour obtenir les totaux. Nous allons commencer avec les totaux quotidiens. Sélectionnez la cellule F3. Saisissez la formule : | ||
+ | |||
+ | =(C3-B3)+(E3-D3) | ||
+ | |||
+ | ce qui nous donnera le total des heures du lundi. Faites un clic droit sur F3 et Copier. Sélectionnez les cellules F4:F9, clic droit, et Coller. | ||
+ | Pour le total hebdomadaire en F10, nous allons simplement additionner les totaux quotidiens. Voici la formule : | ||
+ | |||
+ | =SOMME(F3: | ||
+ | |||
+ | ====== 8 ====== | ||
+ | |||
+ | **Protect Cells | ||
Once you have a sheet set up the way you like, you may want to protect the parts of the sheet you don't want changed like the labels and formulas. First, you need to tell Calc whether the cell is protected or not. Then you add protection to the sheet or document once everything is finished. In the case of our time sheet, we need to protect everything except for the cells where the user enters their times, B3:E9. | Once you have a sheet set up the way you like, you may want to protect the parts of the sheet you don't want changed like the labels and formulas. First, you need to tell Calc whether the cell is protected or not. Then you add protection to the sheet or document once everything is finished. In the case of our time sheet, we need to protect everything except for the cells where the user enters their times, B3:E9. | ||
- | By default, the Protect option is turned on for all cells. To change the protection setting for the input cells, select B3:B9, Format > Cells, and the Format Cells dialog appears. Click on the Cell Protection tab and uncheck Protected. | + | By default, the Protect option is turned on for all cells. To change the protection setting for the input cells, select B3:B9, Format > Cells, and the Format Cells dialog appears. Click on the Cell Protection tab and uncheck Protected.** |
- | At this point, you can still edit any cell because the sheet or document is not protected. To turn on protection for the sheet or document, Tools > Protect Document > Sheet (or Document). The Protect Sheet or Protect Document dialog will appear depending on which option you selected. Enter and confirm a password in the dialog. The options will allow you to check whether the user can select protected or unprotected cells. If you do not enter a password, then no password is required to remove protection from the sheet or document. | + | Protection des cellules |
- | To remove protection from a sheet or document, Tools > Protect Document > Sheet (or Document). If a password was used when protection was set, enter the password used to protect the sheet or document. | + | Une fois que vous avez mis en place une feuille comme vous le souhaitez, vous pouvez protéger les parties de la feuille que vous voulez rendre non modifiables, |
- | Mark Invalid Data with Detective | + | Par défaut, l' |
+ | |||
+ | ====== 9 ====== | ||
+ | |||
+ | **At this point, you can still edit any cell because the sheet or document is not protected. To turn on protection for the sheet or document, Tools > Protect Document > Sheet (or Document). The Protect Sheet or Protect Document dialog will appear depending on which option you selected. Enter and confirm a password in the dialog. The options will allow you to check whether the user can select protected or unprotected cells. If you do not enter a password, then no password is required to remove protection from the sheet or document. | ||
+ | |||
+ | To remove protection from a sheet or document, Tools > Protect Document > Sheet (or Document). If a password was used when protection was set, enter the password used to protect the sheet or document.** | ||
+ | |||
+ | À ce stade, vous pouvez toujours modifier n' | ||
+ | |||
+ | Pour supprimer la protection d'une feuille ou d'un document, Outils > Protéger le document > Feuille (ou Document). Si un mot de passe a été utilisé lorsque la protection a été mise, saisissez le mot de passe utilisé pour protéger la feuille ou le document. | ||
+ | |||
+ | ====== 10 ====== | ||
+ | |||
+ | **Mark Invalid Data with Detective | ||
If you selected Warning or Information from the Action drop-down list in the Validity dialog, a user could enter invalid data and click OK to keep the invalid input. This may generate strange results in your totals or an error. Tools > Detective > Mark Invalid Data will mark the invalid data. Once the user corrects the data, Tools > Detective > Mark Invalid Data should clear the marks, unless the data is still invalid. Notice from my sample that invalid data can cause other cells data to show as invalid. | If you selected Warning or Information from the Action drop-down list in the Validity dialog, a user could enter invalid data and click OK to keep the invalid input. This may generate strange results in your totals or an error. Tools > Detective > Mark Invalid Data will mark the invalid data. Once the user corrects the data, Tools > Detective > Mark Invalid Data should clear the marks, unless the data is still invalid. Notice from my sample that invalid data can cause other cells data to show as invalid. | ||
- | The Calc Validity options are a great way to set up sheets for use by other people, or to keep you from entering invalid data on a complicated sheet. You can set it up to reject the invalid data outright, or for the user to make a choice about keeping the input. Once you have the sheet set the way you want it, you can protect the sheet from unwanted changes. This is a good way to protect formulas and labels. Finally, the Detective tool allows the user to mark invalid data they entered. | + | The Calc Validity options are a great way to set up sheets for use by other people, or to keep you from entering invalid data on a complicated sheet. You can set it up to reject the invalid data outright, or for the user to make a choice about keeping the input. Once you have the sheet set the way you want it, you can protect the sheet from unwanted changes. This is a good way to protect formulas and labels. Finally, the Detective tool allows the user to mark invalid data they entered.** |
+ | |||
+ | Marquer les données incorrectes avec Audit | ||
+ | |||
+ | Si vous avez sélectionné Avertissement ou Information dans la liste déroulante d' | ||
+ | |||
+ | Les options de validité de Calc sont un excellent moyen de mettre en place des feuilles pour une utilisation par d' |
issue92/libreoffice.1420643171.txt.gz · Dernière modification : 2015/01/07 16:06 de andre_domenech