SlideShare a Scribd company logo
Chapter 2 Using Formulas and Functions
Excel 2010 Using Formulas and Functions Skill 2.1 Using Functions in Formulas Skill 2.2 Using AutoSum to Insert a SUM Function Skill 2.3 Creating Formulas Using the AVERAGE Function Skill 2.4 Creating Formulas Using Counting Functions Skill 2.5 Using Other Statistical Functions Skill 2.6 Using Date and Time Functions Skill 2.7 Using Absolute and Relative References Skill 2.8 Naming Ranges of Cells Skill 2.9 Working with Named Ranges Skill 2.10 Using Logical Functions Skill 2.11 Calculating Loan Payments Using the PMT Function Skill 2.12 Finding Data Using the VLOOKUP Function Skill 2.13 Creating Formulas Referencing Data from Another Worksheet Skill 2.14 Displaying and Printing Formulas Skill 2.15 Checking Formulas for Errors 2-
Functions  are preprogrammed shortcuts for calculating complex equations (like the monthly payment amount for a loan).  Most functions require you to provide input called the  arguments .  Excel Skill 2.1 Using Functions in Formulas 2-
Type the formula directly in the cell or the formula bar. Use  Formula AutoComplete  by typing = and then a letter. Formula AutoComplete displays a list of potential matches.  On the  Formulas  tab, select a function from the  Function Library  group, or click the  Insert Function  button to select a function from the  Insert Function  dialog.  Use  AutoSum  to insert common functions (SUM, AVERAGE, COUNT, MIN, and MAX) with a single mouse click. Four Basic Ways to Add a Function to a Formula 2-
Excel Skill 2.2 Using AutoSum to Insert a SUM Function SUM  function - used to add several cells together. = SUM(A3:A6) The range  A3:A6  tells Excel to add the values in all of the cells between  A3  and  A6 ( A3  1  A4  1  A5  1  A6 ). Ways to Create a SUM Function  Using the  Function Arguments  dialog box Using Formula AutoComplete Using the  AutoSum  button (much easier because Excel enters the function arguments for you.) 2-
Select the cell in which you want to enter the function. On the  Formulas  tab, in the  Function Library  group, or on the  Home  tab, in the  Editing  group, click the  AutoSum  button. Excel automatically inserts a formula with the SUM function, using the range of cells contiguous to (next to) the selected cell as the arguments for the function. You can increase or decrease the range of cells selected by clicking & dragging the corner of the highlighted cell range. Press  Enter  to accept the formula. To Insert a SUM Function Using AutoSum 2-
Excel Skill 2.3 Creating Formulas Using the AVERAGE Function AVERAGE  function  - used to calculate the average value of a group of values.  = AVERAGE(A3:A6) The value of this formula is the average of the values of cells A3 through A6: (A3 + A4 + A5 + A6)/4.  Average is calculated by adding the values, and then dividing the sum by the number of values. To calculate the average of numbers in more than one range of values, use a comma to separate arguments: = AVERAGE(A3:A6,B3:B6) The value is the average of the values of cells A3 through A6  and  B3 through B6: (A3+A4+A5+A6+B3+B4+B5+ B6)/8. 2-
Select the cell in which you want to enter the function. On the  Formulas  tab, in the  Function Library  group, click the  AutoSum  button arrow, or on the  Home  tab, in the  Editing  group, click the  AutoSum  button arrow, and then click  Average. Excel will automatically insert a formula using the AVERAGE function, using the range of cells contiguous to (next to) the selected cell as the arguments for the function. Press  Enter  to accept the formula. To Insert an AVERAGE Function Using AutoSum 2-
Excel Skill 2.4 Creating Formulas Using Counting Functions Counting functions are useful when you need to know how many numbers or items are in a list, or how many rows are missing data for a particular column Three basic counting functions in Excel: COUNT  —Counts the number of cells that contain numbers within a specified range of cells. COUNTA  —Counts the number of cells that are not blank within a specified range of cells. Use COUNTA if your cell range includes both numbers and text data. COUNTBLANK  —Counts the number of blank cells within a specified range of cells. 2-
Click in the cell where you want the formula. Type = COUNT to display the Formula AutoComplete list of functions that begin with “count”. Double-click the function you want to use. Excel enters the beginning of the formula in the cell. Click the first cell in the range of cells you want to use for your arguments, and then drag and release the mouse button when you reach the last cell in the range. Press  Enter.  Excel enters the cell range as the function arguments, and adds  )  to the end of the formula. Use Formula AutoComplete to Enter Counting Functions 2-
Excel Skill 2.5 Using Other Statistical Functions The  MIN  (minimum) statistical function will give you the lowest value in a range of values.  = MIN(A3:A6) The  MAX  (maximum) statistical function will give you the highest value in a range of values.  = MAX(A3:A6) To explore the wide variety of complex statistical functions available in Excel: On the  Formulas  tab, in the  Function Library  group, click the  More Functions  button and point to  Statistical,  or open the  Insert Function  dialog box and select the  Statistical  category. 2-
Select the cell in which you want to enter the function. On the  Formulas  tab, in the  Function Library  group, click the  AutoSum  button arrow, or on the  Home  tab, in the  Editing  group, click the  AutoSum  button arrow, and then click  Min  to display the smallest value or  Max  to display the highest value. Excel automatically inserts a formula, using the range of cells contiguous to (next to) the selected cell as the arguments for the function. Increase or decrease the range of cells selected by clicking and dragging the corner of the highlighted cell range. Press  Enter  to accept the formula. To Use AutoSum 2-
Excel Skill 2.6 Using Date and Time Functions NOW function  - inserts the current date and time.  = NOW() TODAY function - inserts only the current date.  = TODAY() Both functions are  volatile  —that is, they are not constant.  These functions do not require arguments. 2-
Select the cell where you want the date and time to appear. On the  Formulas  tab, in the  Function Library  group, click the  Date & Time  button. Click  NOW. When the  Function Arguments  dialog box appears, click  OK. If necessary, format the cell to display both the date and time. To insert just the current date, follow the same steps, but select the TODAY function instead. To Insert the Current Date and Time 2-
Excel Skill 2.7 Using Absolute and Relative References A cell’s address, its position in the workbook, is referred to as a  cell reference  when it is used in a formula.  Cell references can be relative, absolute, or mixed.  Relative reference -  a cell reference that adjusts to the new location in the worksheet when the formula is copied.  Example:  A1  Absolute reference -  a cell reference whose location remains constant when the formula is copied.  Example:  $A$1 The $ character before a letter or number in the cell address means that part of the cell’s address is  absolute  (nonchanging).  A  mixed reference  is a combination cell reference with a row position that stays constant with a changing column position (or vice versa).  Example:  $A1 2-
When you type a formula into a cell, it uses  relative  references by default.  Excel calculates the position of the referenced cell  relative  to the active cell.  For example, if cell B17 is the active cell and you type the formula = B16, Excel displays the value of the cell that is up one row from the active cell. If you add another row, shifting the position of cell B17 to cell B18, Excel adjusts the reference in the formula to reflect the new cell address that is up one row from the current position. If you copy the formula = B16 from cell B17 and paste it into cell C17, the pasted formula will update to = C16 to reflect the cell address that is up one row from the new position. How Relative and Absolute References Work 2-
But what if you don’t want the cell reference to adjust?  For example, cell B13 contains a value that you want to use in calculations for multiple cells in a row.  If you copy the formula =B13*B16 from cell B17 to cell C17, the formula updates to =C13*C16 (not what you intended) because both of the cell references are  relative.  The reference in cell B13 needs to be  absolute,  so it doesn’t update when copied.  Use the formula =$B$13*B16 instead and copy it from cell B17 to cell C17.  The pasted formula will only update the relative reference  (B16) .  The absolute reference  ($B$13)  will remain constant. The formula in cell C17 will be =$B$13*C16. How Relative and Absolute References Work 2-
Excel Skill 2.8 Naming Ranges of Cells Cell references like A4 and J34 do not provide much information about what data the cell contains—they just tell you where the cell is located in the worksheet.  However, you can assign names to cells or ranges of cells to give your cell references names that are more user-friendly.  These  names  (also called  range names  or  named ranges ) act as a list of shortcuts to the cell locations. 2-
Select the cell or range of cells to which you want to assign a name. Type the name in the Name box to the left of the formula bar. Press  Enter  to apply the name to the cell(s). To Create a Named Range 2-
Select the range of cells you want to name including the row or column label. On the  Formulas  tab, in the  Defined Names  group, click the  Create from Selection  button . In the  Create Names from Selection  dialog, click the check box(es) to indicate where the names are (top row, left column, bottom row, or right column). Click  OK. Automatically Create Named Ranges Using Labels 2-
Excel Skill 2.9 Working with Named Ranges Rather than using a range of cells in your formulas, you can use a named range. The name will always refer to the cells, even if their position in the worksheet changes.  Using named ranges in your formulas also makes it easier for others to use your workbook. Which formula is easier to understand: SUM(B5:B8) or SUM(JAN)? Formula AutoComplete lists named ranges as well as functions.  Using the AutoComplete list is a good way to avoid typographical errors and ensure that you enter the name correctly. When you copy and paste a formula containing a named range, the name does not change with the new position in the workbook (similar to using an absolute reference).  If you move a named cell, the name updates with the new cell location automatically. 2-
Click the cell where you want to enter the new formula. Type the formula, substituting the range name for the cell references. Press  Enter  to accept the formula. To Use a Named Range in a Formula 2-
Type an = sign to begin the formula. As you type alphabetical characters, Excel will offer name suggestions. When you find the name you want, double-click it. Excel inserts the name into the formula. To Use Formula AutoComplete with Names 2-
Excel Skill 2.10 Using Logical Functions The logical functions group includes: IF  —  Returns one value if a condition is true and another value if the condition is false.  AND  —Returns TRUE if the all of the arguments are true, and FALSE if at least one of the arguments is not true. OR  —Returns TRUE if at least one of the arguments is true, and FALSE if all of the arguments are false. NOT  —Returns TRUE if the argument is false, and FALSE if the argument is true. IFERROR  —Returns an error message or specified value if the value of the referenced cell is an error; else it returns the value of the referenced cell. 2-
Select the cell where you want to enter the formula. On the  Formulas  tab, in the  Function Library  group, click the  Logical  button. Select  IF  from list of functions.  Enter  Logical_test  argument. This argument states the condition to test for. Use cell references and/or values with logical operators.  Enter  Value_if_true  argument. This is the text string or value displayed if the Logical_test argument is true. Enter  Value_if_ false  argument. This is the text string or value displayed if the Logical_test argument is false. Click  OK. To Use the IF Function 2-
Excel Skill 2.11 Calculating Loan Payments Using the PMT Function PMT (payment) function  - use to calculate loan payments. PMT  is based upon constant payments and a constant interest rate.  Example formula to calculate payments for a $250,000 loan paid in 120 installments at 12 installments per year with an annual percentage interest rate of 7%: = PMT(7%/12,120,250000) Example formula using named ranges & cell references where  Interest rate is stored in a cell named  Interest_Rate,  Total number of payments is stored in cell H7 Amount of the loan is in a cell named  Loan =  PMT(Interest_Rate/12,H7,Loan,0,0) The result of both of these formulas is –2,902.71.  Because the result of the formula is a payment, it is expressed as a negative number. 2-
Select the cell where you want to enter the formula. On the  Formulas  tab, in the  Function Library  group, click the  Financial  button. Select  PMT  from the list. Excel displays the appropriate  Function Arguments  dialog. In the  Rate  box, enter interest rate divided by number of payments per year. In the  Nper  box, enter total number of payments over life of loan. In the  Pv  box, enter the present value of the loan.  (Optional) In the  Fv  box, enter the future value of the loan. (Optional) In the  Type  box, enter 1 if payment is at beginning of period. Click  OK  to enter the formula. To Use the PMT Function 2-
Excel Skill 2.12 Finding Data Using the VLOOKUP Function Lookup and reference functions return values based on a cell’s position in a table or array.  Example: Use the VLOOKUP function to look up the part of a loan payment that is applied to the principal of the loan by: returning the value of column 7 (the Principal column)  within the range named Loan_Data (cells A20:I123),  where the value in the first column of the data array (the PmtNo column) is the value in cell D13: = VLOOKUP(D13,LoanRange,7) 2-
Select cell to enter the formula in. On the  Formulas  tab, in the  Function Library  group, click  Lookup & Reference  button. Select  VLOOKUP  from list. Excel displays the appropriate  Function Arguments  dialog. In  Lookup_value  box, enter value in first column to return a corresponding value for.  In  Table_array  box, enter range of cells for array (or table or range name).  In  Col_index_num  box, enter column number from which function should return matching value.  (optional) In  Range_lookup  box, enter FALSE to find only an exact match for value entered in  Lookup_value  box. Click  OK. To Use the VLOOKUP Function 2-
Excel Skill 2.13 Creating Formulas Referencing Data from Another Worksheet Cell references are not limited to cells within the same worksheet. Reference cells in other worksheets in a workbook or other workbooks. This is useful when creating summary sheets or performing analysis on data from multiple sheets. For example, this formula will display the value of cell B3 from the Cash Flow worksheet: = ‘ Cash Flow ’ !B3 If multiple workbooks are open, click a cell in another workbook to create an external reference. The reference will look like this: = B17 + ‘[Four Year Profit Projections.xlsx]Salaries’!$D$6 2-
Click the cell where you want the formula. Type an equal sign ( = ). Navigate to the cell you want to reference by clicking the sheet tab and then clicking the cell. Press  Enter  to complete the  formula. To Include a Reference to a Cell From Another Sheet 2-
Excel Skill 2.14 Displaying and Printing Formulas How do you troubleshoot a worksheet that is displaying unexpected values? When you look at a worksheet, you see only the results of formulas—cells display the values, not the formulas themselves. When you click a cell, the formula is displayed in the formula bar. But what if you want to view all of the formulas in your worksheet at once? To display the formulas in the current worksheet instead of values, on the  Formulas  tab in the  Formula Auditing  group, click the  Show Formulas  button. 2-
First display the formulas in the worksheet by clicking the  Show Formulas  button. Next, print the worksheet: Click the  File  tab. Click  Print. At the right side of the page is a preview of how the printed file will look. Adjust the print settings if necessary. Click the  Print  button to send the file to your default printer. To Print a Copy of the Worksheet with Formulas  2-
Excel Skill 2.15 Checking Formulas for Errors Some worksheet errors are easily identifiable—such as divide by zero errors:  #DIV/0!  (Excel cannot calculate a value to display).  Other errors, like formulas that leave out part of a cell range, are harder to find.  Use Excel’s Error Checking function to review a worksheet for errors.  The  Error Checking  dialog displays each error it finds, allowing you to resolve or ignore each error in turn. If Excel is able to offer a solution to the error, the dialog will include a button to accept the suggested fix. Click  Help on this error  button to open Microsoft Office Help. Click  Ignore Error  to dismiss error. Click  Edit in Formula Bar  to fix the error manually. 2-
On the  Formulas  tab in the  Formula Auditing  group, click the  Error Checking  button. The  Error Checking  dialog displays information about the first error. The buttons available in the dialog box will differ, depending on the type of error found. Click the  Next  button to see the next error in your worksheet. When you have reviewed all errors, Excel displays a message that the error check is complete. Click  OK  to dismiss the message box. To Use Error Checking to Find Errors in Worksheet 2-
When a Smart Tag appears, move mouse over icon to display a ToolTip describing possible error. Click  Smart Tag  arrow to display possible error resolutions. To keep formula as it is, select  Ignore Error. To resolve error, select an option: The first option is usually a suggestion of how to resolve error. Click to accept Excel’s suggestion. Select  Help on this error  to open Microsoft Office Help. Select  Edit in Formula Bar  to manually edit the formula. Select  Error Checking Options. . .  to open  Options  dialog and modify the way Excel checks for errors. After making selection from  Smart Tag  options, the Smart Tag is dismissed. To Use Smart Tags to Resolve Errors in Formulas 2-
Excel 2010 Using Formulas and Functions Recap Skill 2.1 Using Functions in Formulas Skill 2.2 Using AutoSum to Insert a SUM Function Skill 2.3 Creating Formulas Using the AVERAGE Function Skill 2.4 Creating Formulas Using Counting Functions Skill 2.5 Using Other Statistical Functions Skill 2.6 Using Date and Time Functions Skill 2.7 Using Absolute and Relative References Skill 2.8 Naming Ranges of Cells Skill 2.9 Working with Named Ranges Skill 2.10 Using Logical Functions Skill 2.11 Calculating Loan Payments Using the PMT Function Skill 2.12 Finding Data Using the VLOOKUP Function Skill 2.13 Creating Formulas Referencing Data from Another Worksheet Skill 2.14 Displaying and Printing Formulas Skill 2.15 Checking Formulas for Errors 2-

More Related Content

PPT
Pivot table presentation
PPTX
Conditional formatting - Excel
PPTX
Excel Pivot Tables April 2016.pptx
PDF
Microsoft word exercises
PDF
Basic Functions - Excel 2013 Tutorial
PPSX
Conditional formatting in excel v2
PPTX
Using Excel Functions
DOCX
Excel exam practical
Pivot table presentation
Conditional formatting - Excel
Excel Pivot Tables April 2016.pptx
Microsoft word exercises
Basic Functions - Excel 2013 Tutorial
Conditional formatting in excel v2
Using Excel Functions
Excel exam practical

What's hot (20)

PPTX
Pivot table
PDF
Excel Crash Course: Pivot Tables
PDF
A practical tutorial to excel
PDF
USING VLOOKUP FUNCTION
PPTX
MS EXCEL PPT PRESENTATION
PPTX
Excel presentation data validation
PPTX
MS Excel 2013
PPTX
Excel Pivot Tables
PPTX
1.3 Linked List.pptx
PPTX
Conditional formatting
PPTX
Ms access
PPTX
Excel lesson01
PDF
27 Excel Hacks to Make You a Superstar
PDF
Excel Shortcuts & Formulas
PDF
Excel Tutorials - VLOOKUP and HLOOKUP Functions
PPTX
Excel functions and formulas
PDF
Sample Excel 2013 Advanced Essentials
PPTX
10 Excel Formulas that will help you in any Job
PPTX
Excel and Pivot Tables.pptx
PDF
2. date and time function in excel
Pivot table
Excel Crash Course: Pivot Tables
A practical tutorial to excel
USING VLOOKUP FUNCTION
MS EXCEL PPT PRESENTATION
Excel presentation data validation
MS Excel 2013
Excel Pivot Tables
1.3 Linked List.pptx
Conditional formatting
Ms access
Excel lesson01
27 Excel Hacks to Make You a Superstar
Excel Shortcuts & Formulas
Excel Tutorials - VLOOKUP and HLOOKUP Functions
Excel functions and formulas
Sample Excel 2013 Advanced Essentials
10 Excel Formulas that will help you in any Job
Excel and Pivot Tables.pptx
2. date and time function in excel
Ad

Viewers also liked (20)

PPT
Excel Chapter 1
PPT
Teaching Excel
PPTX
Functions and formulas of ms excel
PPTX
Mastering Excel Formulas and Functions
PPT
Excel Chapter 2 - Inserting Formulas in a Worksheet
 
PPTX
Ppt on ms excel
PPT
Triad 2010 excel_chapter_1
PPTX
STARTING MICROSOFT EXCEL 2010
PDF
Excel 2010 Unit A PPT
PPTX
Tutorial 3 Working with Formulas and Functions
PPTX
Ms excel 2007
PPTX
MS EXCEL PPT PRESENTATION
PPTX
We Are - A Poem by Mrs.Lund's Class
PPT
Triad 2010 excel_chapter_2
PPTX
Windows Server 2012 Installation and Configurtion Superiorgrw
PPTX
Formatting text (Microsoft Excel)
PPTX
Costing By Excel - Jan 2010
PPTX
Microsoft Office Excel 2003 Tutorials (Sasha Y7)
PPT
Triad 2010 excel_chapter_4
PPT
Microsoft Office Access 2003 Tutorial for Beginners
Excel Chapter 1
Teaching Excel
Functions and formulas of ms excel
Mastering Excel Formulas and Functions
Excel Chapter 2 - Inserting Formulas in a Worksheet
 
Ppt on ms excel
Triad 2010 excel_chapter_1
STARTING MICROSOFT EXCEL 2010
Excel 2010 Unit A PPT
Tutorial 3 Working with Formulas and Functions
Ms excel 2007
MS EXCEL PPT PRESENTATION
We Are - A Poem by Mrs.Lund's Class
Triad 2010 excel_chapter_2
Windows Server 2012 Installation and Configurtion Superiorgrw
Formatting text (Microsoft Excel)
Costing By Excel - Jan 2010
Microsoft Office Excel 2003 Tutorials (Sasha Y7)
Triad 2010 excel_chapter_4
Microsoft Office Access 2003 Tutorial for Beginners
Ad

Similar to Excel Chapter 2 (20)

PPT
triad2010excelchapter2-130514015608-phpapp02(1).ppt
PPTX
MS-Excel Formulas and Functions
PDF
TrainingOutline_Excel_FormulasNFunctions_Workshop (Writing Sample)
PDF
Excel.fns frmls
PDF
Excel (E-Module 2)
PDF
Simple formulas excel
PPT
Introduction to Microsoft EXCEL and uses.pptx
PPT
Introduction to Microsoft - EXCEL and uses.ppt
DOC
Module 5 entering data in worksheet
PDF
functionsandformulas-131221213835-phpapp01.pdf
DOCX
AAG_Excel_2010_Formulas_and_Functions
PPTX
Advanced Spreadsheet Skills-1.pptx
PPTX
Excel for research
PPT
Microsoft Excel Project 1 Presentation
PPT
Microsoft Excel Training
PPT
MS EXCEL.ppt
PPTX
G10 Unit 4.pptx
PDF
Lesson-3-Advance-Spreadsheet (1).pdfmmm mmm
PPTX
Empowerment Technology Slide Decks for Microsoft Excel Productivity tool
triad2010excelchapter2-130514015608-phpapp02(1).ppt
MS-Excel Formulas and Functions
TrainingOutline_Excel_FormulasNFunctions_Workshop (Writing Sample)
Excel.fns frmls
Excel (E-Module 2)
Simple formulas excel
Introduction to Microsoft EXCEL and uses.pptx
Introduction to Microsoft - EXCEL and uses.ppt
Module 5 entering data in worksheet
functionsandformulas-131221213835-phpapp01.pdf
AAG_Excel_2010_Formulas_and_Functions
Advanced Spreadsheet Skills-1.pptx
Excel for research
Microsoft Excel Project 1 Presentation
Microsoft Excel Training
MS EXCEL.ppt
G10 Unit 4.pptx
Lesson-3-Advance-Spreadsheet (1).pdfmmm mmm
Empowerment Technology Slide Decks for Microsoft Excel Productivity tool

More from mindysholder (20)

PPT
Triad 2010 power_point_chapter_1
PPT
Triad 2010 power_point_chapter_3
PPT
Triad 2010 power_point_chapter_4
PPT
Triad 2010 power_point_chapter_2
PPT
Office 2010 Word Chapter 1
PPT
Excel Chapter 3
PPT
Word Chapter 2
PPT
Word Chapter 4
PPT
Word Chapter 3
PPT
Word Chapter 5
PPT
PowerPoint for Introduction to Office 2010
PPT
Technology in the Classroom - October 3rd
PPT
Technology in the Classroom - September 26th
PPT
Technology in the Classroom - September 19th
PPT
Technology in the Classroom - September 12th
PPT
Create Your First Presentation
PPT
Technology in the Classroom 9_05
PPT
Technology in the Classroom Class Orientation
PPT
Fall 07 Digital Photography Class Orientation
PPT
Fall 07 Photoshop Class Orientation
Triad 2010 power_point_chapter_1
Triad 2010 power_point_chapter_3
Triad 2010 power_point_chapter_4
Triad 2010 power_point_chapter_2
Office 2010 Word Chapter 1
Excel Chapter 3
Word Chapter 2
Word Chapter 4
Word Chapter 3
Word Chapter 5
PowerPoint for Introduction to Office 2010
Technology in the Classroom - October 3rd
Technology in the Classroom - September 26th
Technology in the Classroom - September 19th
Technology in the Classroom - September 12th
Create Your First Presentation
Technology in the Classroom 9_05
Technology in the Classroom Class Orientation
Fall 07 Digital Photography Class Orientation
Fall 07 Photoshop Class Orientation

Recently uploaded (20)

PDF
TR - Agricultural Crops Production NC III.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Pre independence Education in Inndia.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
master seminar digital applications in india
PDF
Complications of Minimal Access Surgery at WLH
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Classroom Observation Tools for Teachers
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
VCE English Exam - Section C Student Revision Booklet
TR - Agricultural Crops Production NC III.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Pre independence Education in Inndia.pdf
Anesthesia in Laparoscopic Surgery in India
master seminar digital applications in india
Complications of Minimal Access Surgery at WLH
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Final Presentation General Medicine 03-08-2024.pptx
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Classroom Observation Tools for Teachers
Module 4: Burden of Disease Tutorial Slides S2 2025
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Microbial diseases, their pathogenesis and prophylaxis
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
2.FourierTransform-ShortQuestionswithAnswers.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
VCE English Exam - Section C Student Revision Booklet

Excel Chapter 2

  • 1. Chapter 2 Using Formulas and Functions
  • 2. Excel 2010 Using Formulas and Functions Skill 2.1 Using Functions in Formulas Skill 2.2 Using AutoSum to Insert a SUM Function Skill 2.3 Creating Formulas Using the AVERAGE Function Skill 2.4 Creating Formulas Using Counting Functions Skill 2.5 Using Other Statistical Functions Skill 2.6 Using Date and Time Functions Skill 2.7 Using Absolute and Relative References Skill 2.8 Naming Ranges of Cells Skill 2.9 Working with Named Ranges Skill 2.10 Using Logical Functions Skill 2.11 Calculating Loan Payments Using the PMT Function Skill 2.12 Finding Data Using the VLOOKUP Function Skill 2.13 Creating Formulas Referencing Data from Another Worksheet Skill 2.14 Displaying and Printing Formulas Skill 2.15 Checking Formulas for Errors 2-
  • 3. Functions are preprogrammed shortcuts for calculating complex equations (like the monthly payment amount for a loan). Most functions require you to provide input called the arguments . Excel Skill 2.1 Using Functions in Formulas 2-
  • 4. Type the formula directly in the cell or the formula bar. Use Formula AutoComplete by typing = and then a letter. Formula AutoComplete displays a list of potential matches. On the Formulas tab, select a function from the Function Library group, or click the Insert Function button to select a function from the Insert Function dialog. Use AutoSum to insert common functions (SUM, AVERAGE, COUNT, MIN, and MAX) with a single mouse click. Four Basic Ways to Add a Function to a Formula 2-
  • 5. Excel Skill 2.2 Using AutoSum to Insert a SUM Function SUM function - used to add several cells together. = SUM(A3:A6) The range A3:A6 tells Excel to add the values in all of the cells between A3 and A6 ( A3 1 A4 1 A5 1 A6 ). Ways to Create a SUM Function Using the Function Arguments dialog box Using Formula AutoComplete Using the AutoSum button (much easier because Excel enters the function arguments for you.) 2-
  • 6. Select the cell in which you want to enter the function. On the Formulas tab, in the Function Library group, or on the Home tab, in the Editing group, click the AutoSum button. Excel automatically inserts a formula with the SUM function, using the range of cells contiguous to (next to) the selected cell as the arguments for the function. You can increase or decrease the range of cells selected by clicking & dragging the corner of the highlighted cell range. Press Enter to accept the formula. To Insert a SUM Function Using AutoSum 2-
  • 7. Excel Skill 2.3 Creating Formulas Using the AVERAGE Function AVERAGE function - used to calculate the average value of a group of values. = AVERAGE(A3:A6) The value of this formula is the average of the values of cells A3 through A6: (A3 + A4 + A5 + A6)/4. Average is calculated by adding the values, and then dividing the sum by the number of values. To calculate the average of numbers in more than one range of values, use a comma to separate arguments: = AVERAGE(A3:A6,B3:B6) The value is the average of the values of cells A3 through A6 and B3 through B6: (A3+A4+A5+A6+B3+B4+B5+ B6)/8. 2-
  • 8. Select the cell in which you want to enter the function. On the Formulas tab, in the Function Library group, click the AutoSum button arrow, or on the Home tab, in the Editing group, click the AutoSum button arrow, and then click Average. Excel will automatically insert a formula using the AVERAGE function, using the range of cells contiguous to (next to) the selected cell as the arguments for the function. Press Enter to accept the formula. To Insert an AVERAGE Function Using AutoSum 2-
  • 9. Excel Skill 2.4 Creating Formulas Using Counting Functions Counting functions are useful when you need to know how many numbers or items are in a list, or how many rows are missing data for a particular column Three basic counting functions in Excel: COUNT —Counts the number of cells that contain numbers within a specified range of cells. COUNTA —Counts the number of cells that are not blank within a specified range of cells. Use COUNTA if your cell range includes both numbers and text data. COUNTBLANK —Counts the number of blank cells within a specified range of cells. 2-
  • 10. Click in the cell where you want the formula. Type = COUNT to display the Formula AutoComplete list of functions that begin with “count”. Double-click the function you want to use. Excel enters the beginning of the formula in the cell. Click the first cell in the range of cells you want to use for your arguments, and then drag and release the mouse button when you reach the last cell in the range. Press Enter. Excel enters the cell range as the function arguments, and adds ) to the end of the formula. Use Formula AutoComplete to Enter Counting Functions 2-
  • 11. Excel Skill 2.5 Using Other Statistical Functions The MIN (minimum) statistical function will give you the lowest value in a range of values. = MIN(A3:A6) The MAX (maximum) statistical function will give you the highest value in a range of values. = MAX(A3:A6) To explore the wide variety of complex statistical functions available in Excel: On the Formulas tab, in the Function Library group, click the More Functions button and point to Statistical, or open the Insert Function dialog box and select the Statistical category. 2-
  • 12. Select the cell in which you want to enter the function. On the Formulas tab, in the Function Library group, click the AutoSum button arrow, or on the Home tab, in the Editing group, click the AutoSum button arrow, and then click Min to display the smallest value or Max to display the highest value. Excel automatically inserts a formula, using the range of cells contiguous to (next to) the selected cell as the arguments for the function. Increase or decrease the range of cells selected by clicking and dragging the corner of the highlighted cell range. Press Enter to accept the formula. To Use AutoSum 2-
  • 13. Excel Skill 2.6 Using Date and Time Functions NOW function - inserts the current date and time. = NOW() TODAY function - inserts only the current date. = TODAY() Both functions are volatile —that is, they are not constant. These functions do not require arguments. 2-
  • 14. Select the cell where you want the date and time to appear. On the Formulas tab, in the Function Library group, click the Date & Time button. Click NOW. When the Function Arguments dialog box appears, click OK. If necessary, format the cell to display both the date and time. To insert just the current date, follow the same steps, but select the TODAY function instead. To Insert the Current Date and Time 2-
  • 15. Excel Skill 2.7 Using Absolute and Relative References A cell’s address, its position in the workbook, is referred to as a cell reference when it is used in a formula. Cell references can be relative, absolute, or mixed. Relative reference - a cell reference that adjusts to the new location in the worksheet when the formula is copied. Example: A1 Absolute reference - a cell reference whose location remains constant when the formula is copied. Example: $A$1 The $ character before a letter or number in the cell address means that part of the cell’s address is absolute (nonchanging). A mixed reference is a combination cell reference with a row position that stays constant with a changing column position (or vice versa). Example: $A1 2-
  • 16. When you type a formula into a cell, it uses relative references by default. Excel calculates the position of the referenced cell relative to the active cell. For example, if cell B17 is the active cell and you type the formula = B16, Excel displays the value of the cell that is up one row from the active cell. If you add another row, shifting the position of cell B17 to cell B18, Excel adjusts the reference in the formula to reflect the new cell address that is up one row from the current position. If you copy the formula = B16 from cell B17 and paste it into cell C17, the pasted formula will update to = C16 to reflect the cell address that is up one row from the new position. How Relative and Absolute References Work 2-
  • 17. But what if you don’t want the cell reference to adjust? For example, cell B13 contains a value that you want to use in calculations for multiple cells in a row. If you copy the formula =B13*B16 from cell B17 to cell C17, the formula updates to =C13*C16 (not what you intended) because both of the cell references are relative. The reference in cell B13 needs to be absolute, so it doesn’t update when copied. Use the formula =$B$13*B16 instead and copy it from cell B17 to cell C17. The pasted formula will only update the relative reference (B16) . The absolute reference ($B$13) will remain constant. The formula in cell C17 will be =$B$13*C16. How Relative and Absolute References Work 2-
  • 18. Excel Skill 2.8 Naming Ranges of Cells Cell references like A4 and J34 do not provide much information about what data the cell contains—they just tell you where the cell is located in the worksheet. However, you can assign names to cells or ranges of cells to give your cell references names that are more user-friendly. These names (also called range names or named ranges ) act as a list of shortcuts to the cell locations. 2-
  • 19. Select the cell or range of cells to which you want to assign a name. Type the name in the Name box to the left of the formula bar. Press Enter to apply the name to the cell(s). To Create a Named Range 2-
  • 20. Select the range of cells you want to name including the row or column label. On the Formulas tab, in the Defined Names group, click the Create from Selection button . In the Create Names from Selection dialog, click the check box(es) to indicate where the names are (top row, left column, bottom row, or right column). Click OK. Automatically Create Named Ranges Using Labels 2-
  • 21. Excel Skill 2.9 Working with Named Ranges Rather than using a range of cells in your formulas, you can use a named range. The name will always refer to the cells, even if their position in the worksheet changes. Using named ranges in your formulas also makes it easier for others to use your workbook. Which formula is easier to understand: SUM(B5:B8) or SUM(JAN)? Formula AutoComplete lists named ranges as well as functions. Using the AutoComplete list is a good way to avoid typographical errors and ensure that you enter the name correctly. When you copy and paste a formula containing a named range, the name does not change with the new position in the workbook (similar to using an absolute reference). If you move a named cell, the name updates with the new cell location automatically. 2-
  • 22. Click the cell where you want to enter the new formula. Type the formula, substituting the range name for the cell references. Press Enter to accept the formula. To Use a Named Range in a Formula 2-
  • 23. Type an = sign to begin the formula. As you type alphabetical characters, Excel will offer name suggestions. When you find the name you want, double-click it. Excel inserts the name into the formula. To Use Formula AutoComplete with Names 2-
  • 24. Excel Skill 2.10 Using Logical Functions The logical functions group includes: IF — Returns one value if a condition is true and another value if the condition is false. AND —Returns TRUE if the all of the arguments are true, and FALSE if at least one of the arguments is not true. OR —Returns TRUE if at least one of the arguments is true, and FALSE if all of the arguments are false. NOT —Returns TRUE if the argument is false, and FALSE if the argument is true. IFERROR —Returns an error message or specified value if the value of the referenced cell is an error; else it returns the value of the referenced cell. 2-
  • 25. Select the cell where you want to enter the formula. On the Formulas tab, in the Function Library group, click the Logical button. Select IF from list of functions. Enter Logical_test argument. This argument states the condition to test for. Use cell references and/or values with logical operators. Enter Value_if_true argument. This is the text string or value displayed if the Logical_test argument is true. Enter Value_if_ false argument. This is the text string or value displayed if the Logical_test argument is false. Click OK. To Use the IF Function 2-
  • 26. Excel Skill 2.11 Calculating Loan Payments Using the PMT Function PMT (payment) function - use to calculate loan payments. PMT is based upon constant payments and a constant interest rate. Example formula to calculate payments for a $250,000 loan paid in 120 installments at 12 installments per year with an annual percentage interest rate of 7%: = PMT(7%/12,120,250000) Example formula using named ranges & cell references where Interest rate is stored in a cell named Interest_Rate, Total number of payments is stored in cell H7 Amount of the loan is in a cell named Loan = PMT(Interest_Rate/12,H7,Loan,0,0) The result of both of these formulas is –2,902.71. Because the result of the formula is a payment, it is expressed as a negative number. 2-
  • 27. Select the cell where you want to enter the formula. On the Formulas tab, in the Function Library group, click the Financial button. Select PMT from the list. Excel displays the appropriate Function Arguments dialog. In the Rate box, enter interest rate divided by number of payments per year. In the Nper box, enter total number of payments over life of loan. In the Pv box, enter the present value of the loan. (Optional) In the Fv box, enter the future value of the loan. (Optional) In the Type box, enter 1 if payment is at beginning of period. Click OK to enter the formula. To Use the PMT Function 2-
  • 28. Excel Skill 2.12 Finding Data Using the VLOOKUP Function Lookup and reference functions return values based on a cell’s position in a table or array. Example: Use the VLOOKUP function to look up the part of a loan payment that is applied to the principal of the loan by: returning the value of column 7 (the Principal column) within the range named Loan_Data (cells A20:I123), where the value in the first column of the data array (the PmtNo column) is the value in cell D13: = VLOOKUP(D13,LoanRange,7) 2-
  • 29. Select cell to enter the formula in. On the Formulas tab, in the Function Library group, click Lookup & Reference button. Select VLOOKUP from list. Excel displays the appropriate Function Arguments dialog. In Lookup_value box, enter value in first column to return a corresponding value for. In Table_array box, enter range of cells for array (or table or range name). In Col_index_num box, enter column number from which function should return matching value. (optional) In Range_lookup box, enter FALSE to find only an exact match for value entered in Lookup_value box. Click OK. To Use the VLOOKUP Function 2-
  • 30. Excel Skill 2.13 Creating Formulas Referencing Data from Another Worksheet Cell references are not limited to cells within the same worksheet. Reference cells in other worksheets in a workbook or other workbooks. This is useful when creating summary sheets or performing analysis on data from multiple sheets. For example, this formula will display the value of cell B3 from the Cash Flow worksheet: = ‘ Cash Flow ’ !B3 If multiple workbooks are open, click a cell in another workbook to create an external reference. The reference will look like this: = B17 + ‘[Four Year Profit Projections.xlsx]Salaries’!$D$6 2-
  • 31. Click the cell where you want the formula. Type an equal sign ( = ). Navigate to the cell you want to reference by clicking the sheet tab and then clicking the cell. Press Enter to complete the formula. To Include a Reference to a Cell From Another Sheet 2-
  • 32. Excel Skill 2.14 Displaying and Printing Formulas How do you troubleshoot a worksheet that is displaying unexpected values? When you look at a worksheet, you see only the results of formulas—cells display the values, not the formulas themselves. When you click a cell, the formula is displayed in the formula bar. But what if you want to view all of the formulas in your worksheet at once? To display the formulas in the current worksheet instead of values, on the Formulas tab in the Formula Auditing group, click the Show Formulas button. 2-
  • 33. First display the formulas in the worksheet by clicking the Show Formulas button. Next, print the worksheet: Click the File tab. Click Print. At the right side of the page is a preview of how the printed file will look. Adjust the print settings if necessary. Click the Print button to send the file to your default printer. To Print a Copy of the Worksheet with Formulas 2-
  • 34. Excel Skill 2.15 Checking Formulas for Errors Some worksheet errors are easily identifiable—such as divide by zero errors: #DIV/0! (Excel cannot calculate a value to display). Other errors, like formulas that leave out part of a cell range, are harder to find. Use Excel’s Error Checking function to review a worksheet for errors. The Error Checking dialog displays each error it finds, allowing you to resolve or ignore each error in turn. If Excel is able to offer a solution to the error, the dialog will include a button to accept the suggested fix. Click Help on this error button to open Microsoft Office Help. Click Ignore Error to dismiss error. Click Edit in Formula Bar to fix the error manually. 2-
  • 35. On the Formulas tab in the Formula Auditing group, click the Error Checking button. The Error Checking dialog displays information about the first error. The buttons available in the dialog box will differ, depending on the type of error found. Click the Next button to see the next error in your worksheet. When you have reviewed all errors, Excel displays a message that the error check is complete. Click OK to dismiss the message box. To Use Error Checking to Find Errors in Worksheet 2-
  • 36. When a Smart Tag appears, move mouse over icon to display a ToolTip describing possible error. Click Smart Tag arrow to display possible error resolutions. To keep formula as it is, select Ignore Error. To resolve error, select an option: The first option is usually a suggestion of how to resolve error. Click to accept Excel’s suggestion. Select Help on this error to open Microsoft Office Help. Select Edit in Formula Bar to manually edit the formula. Select Error Checking Options. . . to open Options dialog and modify the way Excel checks for errors. After making selection from Smart Tag options, the Smart Tag is dismissed. To Use Smart Tags to Resolve Errors in Formulas 2-
  • 37. Excel 2010 Using Formulas and Functions Recap Skill 2.1 Using Functions in Formulas Skill 2.2 Using AutoSum to Insert a SUM Function Skill 2.3 Creating Formulas Using the AVERAGE Function Skill 2.4 Creating Formulas Using Counting Functions Skill 2.5 Using Other Statistical Functions Skill 2.6 Using Date and Time Functions Skill 2.7 Using Absolute and Relative References Skill 2.8 Naming Ranges of Cells Skill 2.9 Working with Named Ranges Skill 2.10 Using Logical Functions Skill 2.11 Calculating Loan Payments Using the PMT Function Skill 2.12 Finding Data Using the VLOOKUP Function Skill 2.13 Creating Formulas Referencing Data from Another Worksheet Skill 2.14 Displaying and Printing Formulas Skill 2.15 Checking Formulas for Errors 2-

Editor's Notes

  • #3: Excel Skills Page: EX-40 It is time to go beyond simple formulas. In this chapter you will learn to use the functions built into Excel to compute statistics, work with date and time numbers, compute loan payments, and perform table look ups. Also you will create formulas that reference named ranges and other worksheets and formulas designed for fast replication.
  • #4: Excel Skill 2.1 Using Functions in Formulas Page: EX-41; Figures EX 2.1 and EX 2.2 For example, when writing a formula using the PMT function to calculate a loan payment, the arguments include the interest rate, the number of payments, the amount of the loan at the beginning of the loan period, the amount of the loan left at the end of the loan period, and whether the loan payments will be made at the beginning or end of each payment period. tips & tricks - When you use Formula AutoComplete, you can click the function name in the ScreenTip to open the Excel help topic for that function. If you’re not sure of the name of the function you want, open the Insert Function dialog and type keywords describing the function in the Search for a function: box, and then click the Go button. The Or select a category: box changes to Recommended, and the Select a function: box now displays a list of functions that match the keywords you typed. try this - The Name box to the left of the formula bar normally displays the cell address or name. However, when you begin a formula by typing = , the Name box displays the name of the most recently used function. Click the arrow at the right side of the box to see a list of all the most recently used functions. Click any function name to open the Function Arguments dialog, or click More Functions . . . at the bottom of the list to open the Insert Function dialog.
  • #5: Excel Skill 2.1 Using Functions in Formulas Page: EX-41; Figures EX 2.3 and EX 2.4 There are four basic ways to add a function to a formula: Type the formula directly in the cell or the formula bar. Begin the formula by typing = , and then type the function name. After the function name, type ( followed by the function arguments, separated by commas, and then ) . Press Enter to complete the formula. Use Formula AutoComplete . When you type = and then a letter, Formula AutoComplete displays a list of potential matches (functions and other valid reference names). Type more letters to shorten the Formula AutoComplete list. Double-click a function name to enter it in your formula. Enter the expected arguments by typing values or selecting a cell or cell range. Press Enter to complete the formula. On the Formulas tab, select a function from the Function Library group, or click the Insert Function button to select a function from the Insert Function dialog. You can also click the Insert Function button to the left of the formula bar. On the Formulas tab, select a function from the Function Library group, or click the Insert Function button to select a function from the Insert Function dialog. You can also click the Insert Function button to the left of the formula bar. Functions are organized into categories such as Financial and Statistical. If necessary, expand the Or select a category: list and select the category you want. The category list will default to whatever category you used last, or it will show Most Recently Used. Click a function in the Select a function: box to see a brief description of what it does and the arguments it takes. Click OK to open the Function Arguments dialog. (This dialog is different for each function.) Enter values in each of the argument boxes by typing or clicking outside the dialog and selecting the cell or cell range. As you click each argument box, a brief description of the argument appears near the bottom of the dialog. When you are finished entering arguments, click OK. Use AutoSum . The AutoSum button allows you to insert common functions (SUM, AVERAGE, COUNT, MIN, and MAX) with a single mouse click. It is available from both the Home tab and the Formulas tab. When you use the AutoSum button, Excel enters the function arguments for you, using the most likely range of cells based on the structure of your worksheet. Press Enter to complete the formula.
  • #6: Excel Skill 2.2 Using AutoSum to Insert a SUM Function Page: EX-44 The SUM mathematical function is used to add several cells together. Instead of writing a formula with several references separated by a plus sign, you can “sum” a range of cells. A formula using the SUM function looks like this: = SUM(A3:A6) The range A3:A6 tells Excel to add the values in all of the cells between A3 and A6 ( A3 1 A4 1 A5 1 A6 ). Although you can create a SUM function using the Function Arguments dialog box or by using Formula AutoComplete, it is much easier to use the AutoSum button because Excel enters the function arguments for you. tips & tricks - When you use the AutoSum button, Excel enters the function arguments for you, using the most likely range of cells based on the structure of your worksheet. For example, if you use AutoSum at the bottom of a column of values, Excel will assume that you want to use the values in the column as the function arguments. If you use AutoSum at the end of a row of values, Excel will use the values in the row.
  • #7: Excel Skill 2.2 Using AutoSum to Insert a SUM Function Page: EX-44; Figures EX 2.5 and EX 2.6 try this - You can also click the AutoSum button arrow and select SUM from the list. Another way to use the AutoSum function is to select a range of cells, and then click the AutoSum button. Excel will insert the SUM function in the next available (empty) cell. To use Formula AutoComplete to enter a SUM function, type =SU , and then double click SUM in the list of available functions. Excel enters = SUM( in the cell for you. Click the first cell in the range of cells you want to add together, and then drag and release the mouse button when you reach the last cell in the range. Press Enter. Excel enters the cell range as the function arguments, and adds ) to the end of the formula.
  • #8: Excel Skill 2.3 Creating Formulas Using the AVERAGE Function Page: EX-45 tips & tricks - When calculating an average, Excel will ignore empty cells. If you want to include those cells in your average calculations, make sure they have a value of zero. tell me more - What you might think of as the “average” is actually the statistical mean. Average is a general term in statistics that includes mean (the sum of a group of values divided by the number of values in the group), median (the middle value of a set of values) and mode (the value that appears most often in a group of values). In Excel, the AVERAGE function calculates the mean value. Most people say average when they really want to calculate the mean value. try this - Another way to use AutoSum to calculate an average is to select a range of cells, and then click the AutoSum arrow and click Average. Excel will insert the AVERAGE function in the next available (empty) cell. To use Formula AutoComplete to enter an AVERAGE function, type = AV , and then double click AVERAGE in the list of available functions. Excel enters 5 AVERAGE( in the cell for you. Click the first cell in the range of cells you want to use for your arguments, and then drag and release the mouse button when you reach the last cell in the range. Press Enter. Excel enters the cell range as the function arguments, and adds ) to the end of the formula.
  • #9: Excel Skill 2.3 Creating Formulas Using the AVERAGE Function Page: EX-45; Figure EX 2.7 Although you can create an AVERAGE function using the Function Arguments dialog box or by using Formula AutoComplete, it is much easier to use the AutoSum button because Excel enters the function arguments for you. You can increase or decrease the range of cells selected by clicking and dragging the corner of the highlighted cell rangeYou can increase or decrease the range of cells selected by clicking and dragging the corner of the highlighted cell range.
  • #10: Excel Skill 2.4 Creating Formulas Using Counting Functions Page: EX-46 All three of these functions take the same arguments. A formula using the COUNT function looks like this: = COUNT(A2:A106) The result of this formula is the number of cells in A2 through A106 that contain numerical values. If you want to include cells that contain text, use COUNTA instead. = COUNTA(B2:B106) The result of this formula is the number of cells in B2 through B106 that contain any data (numerical or text). Use COUNTBLANK to find the number of rows missing values in a column. = COUNTBLANK(D2:D106) The result of this formula is the number of cells in D2 through D106 that are blank. tips & tricks - Cells that contain a zero (0) are not considered blank.
  • #11: Excel Skill 2.4 Creating Formulas Using Counting Functions Page: EX-46; Figure EX 2.8
  • #12: Excel Skill 2.5 Using Other Statistical Functions Page: EX-47 try this - Another way to use AutoSum to find the minimum or maximum value is to select a range of cells, and then click the AutoSum arrow and click Min or Max . Excel will insert the MIN or MAX function in the next available (empty) cell. To use Formula AutoComplete to enter a MIN or MAX function, type = m , and then double-click the function you want. Excel enters the beginning of the formula in the cell for you. Click the first cell in the range of cells you want to use for your arguments, and then drag and release the mouse button when you reach the last cell in the range. Press Enter. Excel enters the cell range as the function arguments and adds ) to the end of the formula.
  • #13: Excel Skill 2.5 Using Other Statistical Functions Page: EX-47; Figure EX 2.9 Although you can use the MIN and MAX functions from the Function Arguments dialog box or from the Formula AutoComplete list, it is sometimes easier to use the AutoSum button because Excel enters the function arguments for you.
  • #14: Excel Skill 2.6 Using Date and Time Functions Page: EX-48 Volatile - They update with the current date or date and time each time the workbook is opened. This is useful if you want to keep track of the last time the workbook was edited or opened.
  • #15: Excel Skill 2.6 Using Date and Time Functions Page: EX-48; Figure EX 2.10 tips & tricks - Both NOW and TODAY use the date and time from your computer’s clock. If your computer’s clock is wrong, the date and time displayed in your workbook will be wrong as well. tell me more - If the cell is formatted to use a date format that does not display the time, the result of the NOW and TODAY functions will appear the same. However, the underlying value will still be different. If you change the formatting of the cell to display the time, a cell using the TODAY function will always display a time of 12:00 AM, whereas a cell using the NOW function will display the correct time. try this - You can also use Formula AutoComplete or the Insert Function dialog to add the NOW or TODAY function to your workbook.
  • #16: Excel Skill 2.7 Using Absolute and Relative References Page: EX-49
  • #17: Excel Skill 2.7 Using Absolute and Relative References Page: EX-49; Figure EX 2.11
  • #18: Excel Skill 2.7 Using Absolute and Relative References Page: EX-49; Figure EX 2.11
  • #19: Excel Skill 2.8 Naming Ranges of Cells Page: EX-50
  • #20: Excel Skill 2.8 Naming Ranges of Cells Page: EX-50; Figure EX 2.12
  • #21: Excel Skill 2.8 Naming Ranges of Cells Page: EX-51; Figure EX 2.13 If your worksheet is organized in a table format, with column or row labels, you can automatically create named ranges using the labels as names: Excel automatically creates named ranges for the groups of cells associated with each label. tips & tricks - Names may not include spaces. To make your names easier to read, try using an underscore character _ or a period . between words. try this - You can also create new names through the New Name dialog. On the Formulas tab, in the Defined Names group, click the Define Name button . The selected cell(s) is entered in the Refers to: box. Type the name you want in the Name: box. If the cell to the immediate left or immediately above the selected cell appears to include a label, Excel will pre-populate the Name: box with that text. Click OK.
  • #22: Excel Skill 2.9 Working with Named Ranges Page: EX-52 Tell me more - You can also use named ranges to navigate your workbook: Click the arrow next to the Name box to see the list of named ranges in your workbook. To navigate to one of the named ranges, click the name in the list. try this On the Formulas tab, in the Defined Names group, click the Use in Formula button to display a list of names in your workbook, and then click one of the names to insert it into your formula. You can also click Paste Names . . . from the bottom of the Use in Formula list. The Paste Names dialog opens and lists all of the names in your workbook. Click a name and then click OK to add it to your formula.
  • #23: Excel Skill 2.9 Working with Named Ranges Page: EX-52; Figure EX 2.14
  • #24: Excel Skill 2.9 Working with Named Ranges Page: EX-53; Figure EX 2.15
  • #25: Excel Skill 2.10 Using Logical Functions Page: EX-54 The IF function can return a numerical value or display a text string. This formula uses the IF function to calculate a bonus rate (cell H4) based on the sales figure in cell E9 (named Total_Sales). If the value of cell E9 is greater than 50000, the formula will return 10%; if the value of cell E9 is not greater than 50000, the formula will return 5%: = IF(TOTAL_SALES > 50000,10%,5%)
  • #26: Excel Skill 2.10 Using Logical Functions Page: EX-54; Figures EX 2.16 and EX 2.17 Excel displays the appropriate Function Arguments dialog where you can enter the function arguments. For example, TOTAL_SALES>50000 will return true if the value of the cell named TOTAL_SALES is greater than 50000 and false if the value is not greater than 50000. tips & tricks - When you click an argument box in the Function Arguments dialog, a description of the argument appears below the description of the function. As you enter arguments, the dialog box will display the results of your formula. try this - In the Function Arguments dialog, to enter arguments, you can type the cell reference in the argument box, or you can click the cell to add the cell reference to the dialog. If the position of the dialog box makes it difficult to click the cell you want, click the Collapse Dialog button . Click the cell to add the reference to the dialog, and then click the Expand Dialog button to return to the function dialog.
  • #27: Excel Skill 2.11 Calculating Loan Payments Using the PMT Function Page: EX-56 tips & tricks - When working with complex functions like PMT, use cell references as arguments rather than entering values directly. This way you can change values in your spreadsheet and see the results instantly without opening the Function Arguments dialog again. It can also be helpful to name the cells containing data for the function arguments. (It is easier to remember the cell name “Loan” than the cell reference D6.
  • #28: Excel Skill 2.11 Calculating Loan Payments Using the PMT Function Pages: EX-56 and EX-57; Figures EX 2.18 and EX 2.19 Usually, interest rate is expressed as an annual interest rate. If the loan requires a monthly payment, the annual interest rate should be divided by 12. PV - This is how much you owe now (the loan principal). Excel assumes a value of 0 unless you include the argument and specify a different value. If you will make payments on the loan until it is completely paid off, you can leave this argument blank or enter 0. FV - Excel assumes a value of 0 unless you include the argument and specify a different value. If you will make payments on the loan until it is completely paid off, you can leave this argument blank or enter 0 (Optional) In the Type box, enter 1 if the payment is at the beginning of the period. If you omit this argument, Excel assumes a value of 0 (meaning each payment is at the end of the period). Notice that as you enter each argument, the value appears to the right of the argument box. The formula result (in this case, the loan payment amount) is displayed at the lower-left corner of the dialog box.
  • #29: Excel Skill 2.12 Finding Data Using the VLOOKUP Function Page: EX-58; Figure EX 2.20 Use a cell reference for the Lookup_value argument to give your formula more flexibility. This way you can change the value in the referenced cell instead of opening the Function Arguments dialog every time you want to look up a different value. Similarly, use table names and range names instead of cell references in the Table_array argument. When your workbook includes large amounts of data, it is much easier to use names in formulas rather than select a range of data that may be hundreds of rows long. tell me more - The examples here all use the VLOOKUP function to find corresponding values in different columns within the same row (a vertical lookup). The HLOOKUP function works similarly, except you use it to find corresponding values in different rows within the same column (a horizontal lookup). Use HLOOKUP when your worksheet uses a horizontal layout—few rows with many columns. Use VLOOKUP when your worksheet uses a vertical layout—few columns with many rows.
  • #30: Excel Skill 2.12 Finding Data Using the VLOOKUP Function Pages: EX-58 and EX-59; Figure EX 2.21 To use the VLOOKUP function: Select the cell where you want to enter the formula. On the Formulas tab, in the Function Library group, click the Lookup & Reference button . Select VLOOKUP from the list. Excel displays the appropriate Function Arguments dialog. In the Lookup_value box, enter the value in the first column that you want to return a corresponding value for. In other words, the value you want to look up. In the Table_array box, enter the range of cells for the array (or the table or range name). If your worksheet includes a header row, do not include it in the range used for the table_array argument. In the Col_index_num box, enter the column number from which the function should return a matching value. Enter the column number, not the letter or the column heading. (optional) In the Range_lookup box, enter FALSE if you want to find only an exact match for the value entered in the Lookup_value box. If you omit this argument, Excel assumes a value of TRUE and will return the value for the closest match in the first column. Click OK. When using VLOOKUP, make sure the table or array is sorted A–Z by the first column (the lookup column). If your data are not sorted, you will see unexpected results.
  • #31: Excel Skill 2.13 Creating Formulas Referencing Data from Another Worksheet Page: EX-60 tell me more - If your workbook includes multiple sheets with the same data structure, you can create a formula that references the same cell(s) on multiple sheets. This is called a 3-D reference . For example, the formula = SUM(‘2011 Projection:2013 Projection’!B24) will calculate the sum of the value of cell B24 on all sheets from 2011 Projection to 2013 Projection. To add a 3-D reference to a formula, begin entering the formula as you would normally. Then, when you want to add the 3-D reference, select the sheet tabs for all the sheets you want included and click the specific cell(s) you want. try this - The file name of the referenced workbook is enclosed in brackets, followed by the sheet name, all enclosed in single quotes, followed by the specific cell reference. If the external file is not open, the reference will include the full path name to the fi le, not just the file name.
  • #32: Excel Skill 2.13 Creating Formulas Referencing Data from Another Worksheet Page: EX-60; Figure EX 2.22 If you want to include the reference in a formula, enter the formula as normal. When you want to add a reference to a cell in another sheet, click the sheet tab, then click the cell(s) you want to add to the formula. Continue entering the formula in the formula bar or clicking cells throughout your workbook. When you are finished with the formula, press Enter .
  • #33: Excel Skill 2.14 Displaying and Printing Formulas Page: EX-61 tell me more - You can also set the worksheet option to display formulas instead of values, but this method is much less convenient than using the Show Formulas button on the Ribbon. Click the File tab. Click the Options button. Click Advanced, and then scroll down to the Display options for this worksheet: section. Click the check box for Show formulas in cells instead of their calculated results. Select the worksheet for which you want to display only formulas. Click OK. Notice that the Show Formulas button on the Ribbon now appears highlighted. To hide the formulas and display calculated values instead, click the Show Formulas button to turn the option off. try this - The keyboard shortcut to display (or hide) formulas is Ctrl + ` (the ` key is directly to the left of 1 at the top of the keyboard).
  • #34: Excel Skill 2.14 Displaying and Printing Formulas Page: EX-61; Figure EX 2.23 To hide the formulas and display calculated values, click the Show Formulas button again.
  • #35: Excel Skill 2.15 Checking Formulas for Errors Page: EX-62 When you click Ignore Error to dismiss error, Excel will ignore this error until you manually reset ignored errors through Excel Options. Some worksheet errors are easily identifiable—such as divide by zero errors, which look like this in your worksheet: #DIV/0! (because Excel cannot calculate a value to display). Other potential errors, like formulas that leave out part of a cell range, are harder to find yourself. Use Excel’s Error Checking function to review a worksheet for errors. The Error Checking dialog displays each error it finds, allowing you to resolve or ignore each error in turn. If Excel is able to offer a solution to the error, the dialog will include a button to accept the suggested fix. Click the Help on this error button to open Microsoft Office Help. Click Ignore Error to dismiss the error. Excel will ignore this error until you manually reset ignored errors through Excel Options. Click Edit in Formula Bar to fix the error manually. tips & tricks - You can make changes to your worksheet without closing the Error Checking dialog. When you click away from the dialog, one of the buttons changes to a Resume button and none of the other buttons in the dialog is available. When you are ready to return to error checking, click the Resume button. tell me more - If the error is part of a complex formula, Excel may include a Show Calculation Steps . . . button in the Error Checking dialog. This button launches the Evaluate Formula dialog where you can walk through the formula step by step to try to find the cause of the error. If the error is related to a reference to another cell, Excel will offer a Trace Error button to display precedent and dependent arrows showing dependencies between formulas in your worksheet. try this - You can also start Error Checking by clicking the Error Checking arrow and selecting Error Checking . . .
  • #36: Excel Skill 2.15 Checking Formulas for Errors Page: EX-62; Figure EX 2.24 Cells that include potential errors are marked with a green triangle in the upper-left corner of the cell. When you click the cell, Excel displays a Smart Tag to help you resolve the error.
  • #37: Excel Skill 2.15 Checking Formulas for Errors Pages: EX-62 and EX-63; Figure EX 2.25
  • #38: Excel Skills Page: EX-40