Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Excel2007.doc
Скачиваний:
0
Добавлен:
01.04.2025
Размер:
5.48 Mб
Скачать

Using Simple Functions

Functions are used to simplify and shorten formulas. Functions are predefined formulas that perform calculations with specific input (arguments) in a particular structure.

For example:

=A1+A2+A3+B1+B2+B3+C7

could be replaced using functions as below:

Arguments

=SUM(A1:B3,C7)

Function name

A function begins with the function name, followed by an opening parenthesis, the arguments (multiple arguments are separated using commas), and ends with a closing parenthesis.

An Equal sign = is used if the function is at the beginning of a formula.

Arguments can also be constants, formulas, or functions.

For Example:

The SUM function adds up the values found within the parentheses.

=SUM(1,4,7) equals 12

Other commonly used functions are shown in the following table.

Function Name

Description

Result

MAX()

Find the largest number from the arguments

=MAX(20,25,15)

Result: 25

MIN()

Find the smallest number from the arguments

=MIN(20,25,15)

Result: 15

AVERAGE()

Find the average of the arguments

=AVERAGE(20,25,15)

Result: 20

COUNT()

Counts the number of cells that contain the numbers from the arguments

=COUNT(1,4,B,3,20)

Result: 4

COUNTA()

Counts the number of cells from the arguments that are not empty

=COUNTA(1,4,B,3,20)

Result: 5

Some functions do not need an argument in the parentheses.

Function Name

Description

Result

Today()

Returns current date

=Today()

Result: 9/4/03

Now()

Returns current date and time

=Now()

Result: 9/4/03 12:20

How To Enter A Function Directly

SUMMARY

  1. Click the cell where you want to place the function.

  2. Type an equal sign (=).

  3. Type the function name.

  4. Type an open parenthesis ` ( ’.

  5. Enter the cell reference or range.

  6. Type the closed parenthesis ` ) ‘.

  7. Press <Enter>.

  1. Click the cell C6. Type =SUM(. You need to type an equal sign because the function is used at the beginning of the formula.

  2. Click and drag to select the range B2:B4. The range reference appears in the function parentheses automatically, as shown below.

  3. Type ) , the closed parenthesis to end the formula. Every function should have a pair of open and closed parentheses.

  4. Press <Enter> to confirm the formula. The total for Jan 610 appears in cell C6.

How To Use AutoComplete To Create Formulas

SUMMARY

  1. Type the equal sign `=, and follow with the formula.

  2. Use arrow keys to select the item that you want from the list.

  3. Press <Tab> to select the item you want.

  4. Specify the arguments.

  5. Press <Enter>.

TIPS

  • The icons shown in the list represent the type of entry, such as a function or table reference.

  • You can use Formula AutoComplete in the middle of an existing nested function or formula.

  • To close the drop-down list, press <Esc> or click another cell.

The Formula AutoComplete feature not only helps you to create and edit formulas easily, but also prevents syntax errors. It provides a list of valid functions, names, and text strings that match the letters that you type.

  1. Click the cell C6. Type =su . When you type in the first letter of the formula, the Formula AutoComplete starts to list the possible formulas and it narrows down to a shorter list when you type the second letter.

  2. Press the down arrow key to select the item from the list. The ScreenTips help you to understand the usage of the item you select.

  3. Press <Tab> to select the item you want. You can also double-click the item to select it.

  1. Enter the arguments. You can use the mouse to select the cells you want.

  2. Press <Enter>. The total of the three numbers appears, as shown below.

How To Turn Formula AutoComplete On Or Off

SUMMARY

  1. Click the Office Button.

  2. Click the Excel Options button.

  3. Click Formulas.

  4. Click the Formula AutoComplete check box.

  5. Click the OK button.

TIPS

  • You can also press <ALT>+<DOWN ARROW> to turn it on or off.

  1. Click the Office Button, click the Excel Options button. The Excel Options dialog box appears.

  2. Click Formulas. Under the Working with formulas section, click to select or clear the Formula AutoComplete check box. Then, click the OK button. The AutoComplete is turned off. Note: Remember to turn it on again.

How To Insert Other Functions Using AutoSum Button

SUMMARY

  1. Click the cell where you want to place the formula.

  2. Click the Formulas tab.

  3. In the Function Library group, click the AutoSum drop-down arrow.

  4. Click the function you want.

  5. Specify the arguments.

  6. Press <Enter>.

  1. Click the cell D6. Click the Formulas tab. In the Function Library group, click the AutoSum drop-down arrow. If you click the AutoSum button, it will enter the default =SUM function automatically.

  2. Click Max. Then click and drag to select the range B2:B4. You can also use the up or down arrow keys to select the function. Specify the arguments you want, if necessary.

  3. Press <Enter>. The maximum value is calculated.

How To Use The Insert Function

SUMMARY

  1. Click the cell where you want to place the function.

  2. Click the Insert Function button.

  3. Click the Select a category drop-down arrow, and then click the function category you want.

  4. In the Select a function box, double-click the function you want.

  5. Click the Select Range button.

  6. Press <Enter> twice.

  1. Click the cell C6 This is where you want to place the total. Press <Delete> to delete the content in cell C6, if any.

  2. Click the Insert function button on the formula bar. The Insert Function dialog box appears.

  3. Click the select a category drop-down arrow and click Most Recently Used from the list. A list of functions in that category appears in the Select a function box. For the Most Recently Used category, the functions listed depend on the latest functions used on that specific computer.

  4. In the Select a function box, double-click the SUM function. If the Sum function does not appear in the list, you can find the Sum function in the All category. The Function Arguments dialog box appears after you double-click the function you want.

TIPS

  • If there is more than 1 argument (multiple ranges of cells), use the Number2 box for the second range.

  1. In the Number1 box, click the Select Range button. The Function Arguments dialog box collapses, so that you can select the range you want more easily. You do not need to click the Select Range button if you can see the cell range you want on the screen.

  2. Select the range B2:B4. Notice that the range reference appears in the formula bar.

  3. Press <Enter> twice to confirm the function. The total is calculated, as shown below.

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]