issue94:libreoffice
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue94:libreoffice [2015/02/28 15:55] – créée andre_domenech | issue94:libreoffice [2015/04/08 14:44] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | In past articles, I have discussed and used functions to illustrate other functionality in Calc, but today, I am going to show you three different ways to enter functions. I'll show you the structure of a function; we will create data for a spreadsheet; | + | **In past articles, I have discussed and used functions to illustrate other functionality in Calc, but today, I am going to show you three different ways to enter functions. I'll show you the structure of a function; we will create data for a spreadsheet; |
Structure of a Function | Structure of a Function | ||
Ligne 11: | Ligne 11: | ||
The start of a function is the function name. By tradition, function names are entered in all upper-case letters, but Calc will recognize them in lower or mixed case letters. Keeping with the tradition, I usually enter function names in all capitals. The name of our function in the example is PRODUCT. PRODUCT is to multiplication what SUM is to addition, it multiplies all its arguments into a final total. | The start of a function is the function name. By tradition, function names are entered in all upper-case letters, but Calc will recognize them in lower or mixed case letters. Keeping with the tradition, I usually enter function names in all capitals. The name of our function in the example is PRODUCT. PRODUCT is to multiplication what SUM is to addition, it multiplies all its arguments into a final total. | ||
- | After the function name is the argument list, separated by commas, and surrounded by parenthesis. This is the (B5, A1:A6, 0.25) part of our sample function. Arguments can come in several forms, and the function will usually expect a certain type in each position of the arguments. Arguments can take the form of numbers (9), “Quoted text”, cell reference (C3), cell range (C3:C10), comparisons (C3 > C1), or another function. Note that quotes around a number, “9”, defines the argument as text – and not a number. | + | After the function name is the argument list, separated by commas, and surrounded by parenthesis. This is the (B5, A1:A6, 0.25) part of our sample function. Arguments can come in several forms, and the function will usually expect a certain type in each position of the arguments. Arguments can take the form of numbers (9), “Quoted text”, cell reference (C3), cell range (C3:C10), comparisons (C3 > C1), or another function. Note that quotes around a number, “9”, defines the argument as text – and not a number.** |
- | Setting Up the Sheet | + | Dans le passé, j'ai présenté et utilisé des fonctions pour illustrer d' |
+ | |||
+ | Structure d'une fonction | ||
+ | |||
+ | Comprendre la structure des fonctions aide si vous prévoyez de vous en servir. Je vais utiliser la fonction suivante pour présenter la structure des fonctions : | ||
+ | |||
+ | =PRODUIT(B5; | ||
+ | |||
+ | Les fonctions font toujours partie d'une formule. Quand vous utilisez n' | ||
+ | |||
+ | Le début de la fonction est le nom de la fonction. Traditionnellement, | ||
+ | |||
+ | La liste des arguments, séparés par des points-virgules et encadrés par des parenthèses, | ||
+ | |||
+ | **Setting Up the Sheet | ||
I work with installers of controlled access systems. When setting up a new system, it is necessary to calculate how many power supplies are needed in order to power the equipment for the site. We use a formula for calculating the voltage drop at each device. The calculation involves the input voltage, the current draw of the device plus the current draw of any devices after it, multiplied by the resistance of the length of wire to the device. The basic formula is | I work with installers of controlled access systems. When setting up a new system, it is necessary to calculate how many power supplies are needed in order to power the equipment for the site. We use a formula for calculating the voltage drop at each device. The calculation involves the input voltage, the current draw of the device plus the current draw of any devices after it, multiplied by the resistance of the length of wire to the device. The basic formula is | ||
Ligne 21: | Ligne 35: | ||
where Vin is the input voltage, I is the current draw of the device and any devices after it, D is the length of wire (in feet), and R is the resistance of the wire per foot. Let's set up a sheet to help us calculate the voltage at each device. | where Vin is the input voltage, I is the current draw of the device and any devices after it, D is the length of wire (in feet), and R is the resistance of the wire per foot. Let's set up a sheet to help us calculate the voltage at each device. | ||
- | Start with the label “Start Volts” in cell A1. In cells A2:E2 put the following column headings: Device, Amps, Distance, Ohms/Foot, and Voltage. In cell B1 put 13.2 for your starting voltage. In A3:A5 put 1, 2, 3 for the devices. B3:B5 are the current draw for each device. Use 0.3, 0.25, and 0.5. The three distances for the wire are 75, 110, and 120. For the Ohms/Foot, use 0.00639 for all three. This is the approximate Ohms per foot for 16 AWG (US). Leave the Voltage column blank. This is where we will enter our formulas. | + | Start with the label “Start Volts” in cell A1. In cells A2:E2 put the following column headings: Device, Amps, Distance, Ohms/Foot, and Voltage. In cell B1 put 13.2 for your starting voltage. In A3:A5 put 1, 2, 3 for the devices. B3:B5 are the current draw for each device. Use 0.3, 0.25, and 0.5. The three distances for the wire are 75, 110, and 120. For the Ohms/Foot, use 0.00639 for all three. This is the approximate Ohms per foot for 16 AWG (US). Leave the Voltage column blank. This is where we will enter our formulas.** |
- | Function Wizard | + | Préparer la feuille |
+ | |||
+ | Je travaille avec des installateurs de systèmes de contrôle d' | ||
+ | |||
+ | Vout = Vin - I(DR) | ||
+ | |||
+ | Où Vin est la tension d' | ||
+ | |||
+ | Commencez avec un titre « Tension initiale » dans la cellule A1. Dans les cellules A2:E2, placez les titres de colonne suivants : Appareil, Courant, Distance, Résistance/ | ||
+ | |||
+ | **Function Wizard | ||
The function wizard is the most complete method for entering formulas with functions. It is also the slowest because of the many options. The wizard is a great way to work through the set up of a complicated formula by allowing you to deal with individual pieces of information one at a time. We will use the wizard to create the voltage formula for the first device. | The function wizard is the most complete method for entering formulas with functions. It is also the slowest because of the many options. The wizard is a great way to work through the set up of a complicated formula by allowing you to deal with individual pieces of information one at a time. We will use the wizard to create the voltage formula for the first device. | ||
Ligne 34: | Ligne 58: | ||
The Function Wizard displays a function list box to the left. The Category drop-down list allows you to narrow the functions in the list to the selected category. There is also a Last Used category for selecting recently used functions. If you single-click on a function name, it displays a short description of the function to the right. When you double-click on a function, it inserts the function into the formula text box on the bottom right. Notice that the wizard has already inserted the equals sign for you. The right center displays text boxes for entering the arguments for the function. Above the argument boxes, it displays the short description and a list of the arguments and their type. The top right shows the results of the current formula and the formula result is displayed above the formula edit box. | The Function Wizard displays a function list box to the left. The Category drop-down list allows you to narrow the functions in the list to the selected category. There is also a Last Used category for selecting recently used functions. If you single-click on a function name, it displays a short description of the function to the right. When you double-click on a function, it inserts the function into the formula text box on the bottom right. Notice that the wizard has already inserted the equals sign for you. The right center displays text boxes for entering the arguments for the function. Above the argument boxes, it displays the short description and a list of the arguments and their type. The top right shows the results of the current formula and the formula result is displayed above the formula edit box. | ||
- | Our formula starts with the voltage coming into the device. For the first device this is 13.2 from cell B1, so click into the formula text box at the bottom and type “B1-”. From the category drop down list select Mathematical. Scroll down the list and double-click PRODUCT. The PRODUCT function is added to the formula. | + | Our formula starts with the voltage coming into the device. For the first device this is 13.2 from cell B1, so click into the formula text box at the bottom and type “B1-”. From the category drop down list select Mathematical. Scroll down the list and double-click PRODUCT. The PRODUCT function is added to the formula.** |
- | Click into the Number 1 text box. The first argument is the sum of all the amps for all the devices. Click on the Function Wizard button to the left of the Number 1 text box. This gives you a blank function wizard screen. Note that you now have Back and Next buttons at the bottom. Select Mathematical from the category list, but this time double-click the SUM function. Click into the Number 1 text box. Use your mouse to select cells B3:B5. The range is added to the Number 1 text box for SUM. | + | L' |
+ | |||
+ | L' | ||
+ | |||
+ | Il y a trois façons d' | ||
+ | • Cliquez sur le bouton Assistant Fonction de la barre de formule. | ||
+ | • Insertion > Fonction... | ||
+ | • CTRL + F2 | ||
+ | |||
+ | L' | ||
+ | |||
+ | Notre formule commence par la tension initiale. Pour le premier appareil, elle est de 13,2 en cellule B1 ; aussi, cliquez en bas dans la zone de texte des formules et saisissez « B1- ». Dans la liste déroulante des catégories, | ||
+ | |||
+ | |||
+ | **Click into the Number 1 text box. The first argument is the sum of all the amps for all the devices. Click on the Function Wizard button to the left of the Number 1 text box. This gives you a blank function wizard screen. Note that you now have Back and Next buttons at the bottom. Select Mathematical from the category list, but this time double-click the SUM function. Click into the Number 1 text box. Use your mouse to select cells B3:B5. The range is added to the Number 1 text box for SUM. | ||
Click Back twice to return to the PRODUCT function we started with. Notice that the SUM function is now in the Number 1 text box. Select the Number 2 text box. Double-click on PRODUCT again. In the Number 1 text box for the second PRODUCT function, enter or select the range C3:D3. | Click Back twice to return to the PRODUCT function we started with. Notice that the SUM function is now in the Number 1 text box. Select the Number 2 text box. Double-click on PRODUCT again. In the Number 1 text box for the second PRODUCT function, enter or select the range C3:D3. | ||
Ligne 46: | Ligne 84: | ||
Click OK to finish the wizard. | Click OK to finish the wizard. | ||
- | NOTE: I could have used the multiplication operator (*) to accomplish the same thing in the PRODUCT function, but I used the function in order to illustrate the ability to use functions as arguments to other functions. | + | NOTE: I could have used the multiplication operator (*) to accomplish the same thing in the PRODUCT function, but I used the function in order to illustrate the ability to use functions as arguments to other functions.** |
- | Function List | + | Cliquez dans la zone de texte Nombre 1. Le premier argument est la somme de tous les courants pour tous les appareils. Cliquez sur la bouton assistant Fonction à gauche de la zone de texte Nombre 1. Ceci vous ouvre une fenêtre d' |
+ | |||
+ | Cliquez deux fois sur Précédent pour revenir à la fonction PRODUIT que nous avons commencé. Notez que la fonction SOMME est maintenant dans la zone de texte Nombre 1. Sélectionnez la zone de texte Nombre 2. A nouveau, double-cliquez sur PRODUIT. Dans la zone de texte Nombre 1 de cette deuxième fonction PRODUIT, entrez ou sélectionnez le groupe C3:D3. | ||
+ | |||
+ | Nous avons maintenant fini notre formule. La formule finale devrait ressembler à : | ||
+ | |||
+ | =B1-PRODUIT(SOMME(B3: | ||
+ | |||
+ | Cliquez sur OK pour fermer l' | ||
+ | |||
+ | NOTE : J' | ||
+ | |||
+ | **Function List | ||
The Function List is the wizard without the bells and whistles. In fact, it is just the function list portion of the wizard. The idea behind it is to help you in adding functions directly into the cells. You can bring up the Function List by using the menus, Insert > Function List, or by clicking the Functions icon in the sidebar. When you select a function name in the list, a short description appears at the bottom of the list. The Function List also has a category item called Last Used, containing a list of the functions you have used recently. | The Function List is the wizard without the bells and whistles. In fact, it is just the function list portion of the wizard. The idea behind it is to help you in adding functions directly into the cells. You can bring up the Function List by using the menus, Insert > Function List, or by clicking the Functions icon in the sidebar. When you select a function name in the list, a short description appears at the bottom of the list. The Function List also has a category item called Last Used, containing a list of the functions you have used recently. | ||
Ligne 55: | Ligne 105: | ||
The final result should look like | The final result should look like | ||
- | =E3-PRODUCT(SUM(B4: | + | =E3-PRODUCT(SUM(B4: |
- | Manual Entry | + | Liste de fonctions |
+ | |||
+ | La liste de fonctions est l' | ||
+ | |||
+ | Utilisons-la pour créer la formule du second appareil. Sélectionnez la cellule E4. Sélectionnez la zone de saisie de texte dans la barre de formule. C'est le meilleur endroit pour entrer une fonction en utilisant la liste de fonctions. Pour cet appareil, nous avons besoin de la tension disponible à l' | ||
+ | |||
+ | Le résultat final devrait être : | ||
+ | |||
+ | =E3-PRODUIT(SOMME(B4: | ||
+ | |||
+ | **Manual Entry | ||
Manual entry is just that, typing the formula directly into the cell from memory. The formula for the last device is the easiest because you no longer need the sum of device currents because it is the only one left. Select cell E5 and type in | Manual entry is just that, typing the formula directly into the cell from memory. The formula for the last device is the easiest because you no longer need the sum of device currents because it is the only one left. Select cell E5 and type in | ||
Ligne 65: | Ligne 125: | ||
and press Enter. While you are typing in the functions, Calc will show you a hint balloon of the function and its arguments. | and press Enter. While you are typing in the functions, Calc will show you a hint balloon of the function and its arguments. | ||
- | Calc gives you three different methods for entering functions into a cell. Use the Function Wizard when you need as much guidance as possible, or when entering a complicated formula for the first time. The Function List gives you a list and short descriptions to aid you in using the correct arguments and functions in your formula. The manual method is great for entering short formulas, using functions you are familiar with, or repeating a formula you have used before. | + | Calc gives you three different methods for entering functions into a cell. Use the Function Wizard when you need as much guidance as possible, or when entering a complicated formula for the first time. The Function List gives you a list and short descriptions to aid you in using the correct arguments and functions in your formula. The manual method is great for entering short formulas, using functions you are familiar with, or repeating a formula you have used before.** |
+ | |||
+ | Entrée manuelle | ||
+ | |||
+ | L' | ||
+ | |||
+ | =E4-PRODUIT(B5; | ||
+ | |||
+ | et appuyez sur Entrée. Pendant que vous tapez la fonction, Calc vous affiche une info-bulle de la fonction et de ses arguments. | ||
+ | |||
+ | Calc vous offre trois méthodes pour entrer des fonctions dans une cellule. Utilisez l' |
issue94/libreoffice.1425135347.txt.gz · Dernière modification : 2015/02/28 15:55 de andre_domenech