SlideShare a Scribd company logo
1 of 42
Excel Basics for Everyday Use
                Part Three
By Kevin McLogan
kevinmclogan@yahoo.com
bigkkm@twitter.com
facebook.com/kmclogan
linkedin.com/in/kevinmclogan
Course Objectives:
         After you complete this course to will be able to:
• Understand references, absolute and relative
• Know how to identify and name ranges of cells, and
  understand the significance of this.
• Have a good grasp on an =IF function
• Perform VLOOKUPS and HLOOKUPS
• Calculate times
• Manage AutoFilters and find information quickly
• Avoid errors by using Tracing and Validation

Create spreadsheets that amaze your friends and
   strike fear into the hearts of your enemies
                                                              2
For this class, I am making the
             following assumptions
• That you building on the skills that you learned in the first
  two classes, or have some experience with Excel
• That you are eager to learn about Excel
• That there are things in your life that can be improved
  through spreadsheets
• That you will walk out of here with a better understanding of
  Excel and be able to use it in meaningful ways when you leave
  the class, no matter what your current skill level is
• That you will practice the skills you have learned
  here


                                                             3
References
• A reference identifies a cell or a range of cells on a
  worksheet and tells Microsoft Excel where to look for
  the values or data you want to use in a formula. With
  references, you can use data contained in different
  parts of a worksheet in one formula or use the value
  from one cell in several formulas.
• You can also refer to cells on other sheets in the
  same workbook, and to other workbooks. References
  to cells in other workbooks are called links.
Relative references
• Relative references A relative cell reference in a formula,
  such as A1, is based on the relative position of the cell that
  contains the formula and the cell the reference refers to. If the
  position of the cell that contains the formula changes, the
  reference is changed. If you copy the formula across rows or
  down columns, the reference automatically adjusts. By default,
  new formulas use relative references. For example, if you copy
  a relative reference in cell B2 to cell B3, it automatically adjusts
  from =A1 to =A2.
Absolute references
• Absolute references An absolute cell reference in a formula,
  such as $A$1, always refers to a cell in a specific location. If
  the position of the cell that contains the formula changes, the
  absolute reference remains the same. If you copy the formula
  across rows or down columns, the absolute reference does
  not adjust. By default, new formulas use relative references,
  and you need to switch them to absolute references. For
  example, if you copy a absolute reference in cell B2 to cell B3,
  it stays the same in both cells =$A$1.
Naming ranges
                    Why is this important:
•   Names make your formulas more understandable
    and easier to use, especially for others.
•   A descriptive name is easier to remember than a
    range of cells
•   Makes it easier to move around in the spreadsheet.
•   Easy to verify-the names appear in the name box.
•   Edit Names in the Formula tab
Define Name Box
Name Manager




               9
Formula/Function
       This is where the heavy lifting is done.
• Formulas contain five elements:
   • Operators (Symbols like +, -, /, *)
   • References: named cells or ranges, in the current
     worksheet or another worksheet, or even another
     workbook.
   • Values: numbers or lists of numbers (sometimes named)
   • Functions and their arguments: include SUM, AVERAGE,
     VLOOKUP and their arguments
   • Parentheses: Control the order in which the work gets
     done.
=IF
• This can be the most complicated of all
  functions!
• It is definitely the most abused!
• Think about it as “IF condition A occurs, this is
  the result, IF not, then this is the result.”
• There can be multiple conditions, but that’s
  where we can run into trouble.
Excel IF Statement Explained
• http://www.youtube.com/watch?feature=play
  er_embedded&v=fR4agj1Ddoo
• With the IF formula you can tell Excel to
  perform different calculations depending on
  whether the answer to your question is true
  of false.
Excel IF Statement Explained
• The function wizard in Excel describes the IF Formula
   as:
= IF(logical_test,value_if_true,value_if_false)
• But let’s translate it into English and apply it to an
   example:
Excel IF Statement Explained
• In the table below we want to calculate a
  commission in column G for each Builder
  based on the number of units in column D.
Excel IF Statement Explained
• We’ll say that for units over 5 we’ll pay 10% commission
  based on the Total $k figure in column F, and for units of 5 and
  under we’ll pay 5% commission.
• Our IF formula for row 2 would read like this:
• =IF(The number of units in cell D2 is >5,Then take the Total $k
  in cell F2 x 10%, but if it’s not > 5 then take the Total $k in cell
  F2 x 5%)
• The actual formula we would enter into Cell G2 would be:
• =IF(D2>5,F2*10%,F2*5%)
• Remember; as the number of units in row 5 is not greater
  than 5 the formula would calculate a 5% commission.
Other applications of the Excel IF
                statement
• We don’t have to use the IF statement to perform a
  calculation. We could use it to return a comment. If we take
  the previous example again, we could have asked Excel to put
  a note in the cell like ‘Pay 5%’ or ‘Pay 10%’. To do this our
  formula would look like this:

• =IF(D2>5,”Pay 10%”,”Pay 5%”)
• Notice the difference between the two formulas is
  the inverted commas (“) surrounding the results we
  want Excel to produce. These inverted commas tell
  Excel that the information between them is to be
  entered as text.
• Below is a screen shot of how the formula looks in
  the Formula Bar and the result returned in column G.
Try other operators in your IF
                 statements
• Because the IF formula is based on logic, you can employ tests
   other than the greater than (>) operator used in the example
   above.
• Other operators you could use are:
= Equal to
< Less Than
<= Less than or equal to
>= Greater than or equal to (if we’d used this operator in our
above example row 5 which had 5 units would have returned Pay
10%)
<> Less than or greater than (not equal to)
VLOOKUP is my favorite Excel Formula!

                      • It helps me get
                        analysis and
                        calculations
                        done in minutes
                        that would take
                        hours manually.
                      • I have use it all
                        the time.

                                            19
Microsoft Excel describes the VLOOKUP
formula as:
• VLOOKUP(lookup_value, table_array, col_inde
  x_num ,range_lookup)
And to translate it into English it would read:
• VLOOKUP(find this value, in that table, return
  the value in column x of the table,but only
  return a result if you can match
  the value exactly)


                                               20
VLOOKUP
• Let’s make it even clearer by applying it to our
  example:
• VLOOKUP(find the name Doug from cell B2, in
  the Commission Rates table H2:I9,return the
  value in column 2 of the table, but only return
  a value if you find the exact name Doug in the
  Commission Rates table, otherwise give me an
  error)

                                                 21
22
VLOOKUP
(find the name Doug from cell B2, in the
Commission Rates table H2:I9,return the value
in column 2 of the table, but only return a value
if you find the exact name Doug in the
Commission Rates table, otherwise give me an
error)




                                                23
Here’s what it would
      look like




                       24
DATE FUNCTIONS
• =NOW and =TODAY return the current time
  and date (the difference is that NOW includes
  the time)
• REMEMBER: all dates are stored as a number.
  Today is 40,206 (standard date system) and
  38745 in 1904 date system.
• The standard system is based on days from
  1900, but counted it as a leap year.
• Always use the 1904 system if adding or
  subtracting dates!
                                                  25
Calculating Time in Excel
• It’s frustrating when all you want to do is sum a column of
  times to get the total, but for some reason you end up with a
  random number like in the example below.
                                  Since time is a concept rather
                                  than a mathematical
                                  equation, Excel has come up
                                  with systems for handling
                                  dates and times whereby they
                                  are given a numerical value.
Dates in Excel
• Excel gives each date a numeric value starting at 1st January
  1900.

• 1st January 1900 has a numeric value of 1, 2nd January 1900
  has a numeric value of 2 and so on… These values are called
  ‘serial values’ in Excel, and they enable the use of dates in
  calculations.
• NOTE: Excel calculates the year 1900 as if it was a leap year.
Times in Excel
• Times are seen as decimal fractions. 1 being the time for 24:00 or
  0:00. 12:00 has a value of 0.50 because it is half of 24 hours, or the
  whole number 1, and so on.
• To see Excel’s value for a date or time, simply format the cell as
  general.
• For example the date and time of 1st March 2008 9:30:30 AM has a
  true value of 39508.39618.
• 39508 being the serial value representing the date 1st March 2008,
  and .39618 being the decimal value for the time 9.30AM and 30
  seconds.
• Although the above is important to know, thankfully Excel has built
  in formatting so that we don’t have to enter our dates and times in
  serial or decimal values.
• However it’s the lack of understanding of these serial and decimal
  values for time that cause common errors when performing
  calculations on time in Excel.
How to SUM time in Excel
• If you want to sum time
  (as in the example
  above) you need a
  custom format that uses
  [ square brackets ]
  around the hours. Like
  this:
How to SUM time in Excel
• You can see in the Sample box the correct total appear. This
  way I know I’ve formatted my time correctly.
• These square brackets instruct Excel to and add the hours.
  Without them Excel will reset the sum to zero every time it
  gets to 24 hours.
• There’s no need to modify the formatting of the minutes with
  square brackets as they automatically add up.
• Note: in some versions of Excel when you insert a formula it
  will automatically apply the correct formatting to give you the
  total. Just be sure to check the total is reasonable or check
  the formatting is as stated above.
• This square bracket time formatting requirement also applies
  when using other operators like +/-.
What if you want to sum seconds to
     find out the total seconds?
                                             • While this isn’t the wrong
                                               answer, I want to know the
                                               total number of seconds,
                                               not how many minutes and
                                               seconds there are. To do
                                               this you’d need a custom
                                               number format like this:



You can see from the sample box I now get 237 seconds, instead of 3 minutes 57
seconds.
This can also be applied to minutes or hours. Just change the formatting to [mm] or [h]
respectively.
Time x rate to calculate wages or
              charge out fees
• I quite often want to calculate wages or a charge out fee in
  Excel. But if you don’t know this trick you’ll be tearing your
  hair out…and probably revert to using fractions like 7.50 for 7
  hours 30 minutes, just so you can get the answer you expect.
• While entering halves or quarters of an hour as fractions is
  fine as, it becomes a hassle when your billing increments
  come down to 10 minutes or any other fraction you can’t
  calculate in your head….unless you’re superhuman!
• Thankfully the solution is simple. Just multiply by 24 like I
  have in the example below.
Use Excel in Timesheets to Calculate
              Time Worked
• Below is a fairly basic timesheet layout. You can see in the
  formula bar that the time calculation is performed as a simple
  equation =I4-I2-I3.
I’ve done some funky formatting to the cells to assist
             the person keying in the time:

• Rows 2 and 4 are formatted with h:mm AM/PM. The
  employee has to type in their time as you see it in
  the cell for the formatting to work correctly. The
  advantage to this is they don’t need to convert their
  finish time to a 24 hour clock style.
• The disadvantage is a bit more typing with the need
  for the AM or PM distinction.
• Row 3 is formatted with h:mm “h:mm”. This adds
  the text h:mm to the end of the value for
  presentation purposes. The employee only needs to
  type in 0:30 for a half hour lunch break, and Excel
  will add the h:mm to the end.
• Row 5 is formatted with *h+:mm “h:mm” to ensure
  Excel adds the hours correctly.
• You can then calculate wages using the total figure in
  cell N5 with the Time x Rate formula above. Of
  course this doesn’t take into account overtime and
  penalty rates. That lesson is for another day.
Checking your work
• Tracing errors: when you get a message like:
  • ####, #DIV/0!, #REF!, #NULL!1, #VALUE!,
    #NAME?, #NUM!, #N/A
               Something went wrong!



           Open the Fix and trace errors file



                                                 37
•##### column is too narrow to display the value, or you might
have used a negative number for a date or time.

•#DIV/0! You attempted to divide by zero. What were you
thinking?

•#NAME? Excel does not recognize the text in the cell. A name or
function have been misspelled or used a name that does not exist.
Text in not marked properly.

•#NUM! The formula contains an invalid numeric value or a
number that is too large or too small for Excel to handle.

•#REF! The formula uses an invalid cell reference.

•#VALUE! The wrong type of argument is used in the formula.
                                                                 38
Tracing Precedents and dependants




                                    39
Drop-down menus in cells
           •You can limit the options
           for data entry with a drop-
           down menu in each cell.
           •This keeps the entries
           consistent and limits
           errors due to spelling, or
           other inconsistencies.
           •Let’s try it!

                                    40
Inserting fancy stuff into your spreadsheet

      • Hyperlinks




     Open the more resources file to see how this is inserted.

                                                                 41
I leave you with this:

SAVE YOUR WORK!

Thank you for participating, happy
        spread sheeting!


                                     42

More Related Content

What's hot

Using Excel Functions
Using Excel FunctionsUsing Excel Functions
Using Excel FunctionsGautam Gupta
 
Training presentation vlookup - what it is, and when to use it
Training presentation   vlookup - what it is, and when to use itTraining presentation   vlookup - what it is, and when to use it
Training presentation vlookup - what it is, and when to use ithayat25in
 
03 Excel formulas and functions
03 Excel formulas and functions03 Excel formulas and functions
03 Excel formulas and functionsBuffalo Seminary
 
On if,countif,countifs,sumif,countifs,lookup,v lookup,index,match
On if,countif,countifs,sumif,countifs,lookup,v lookup,index,matchOn if,countif,countifs,sumif,countifs,lookup,v lookup,index,match
On if,countif,countifs,sumif,countifs,lookup,v lookup,index,matchRakesh Sah
 
Excel IF function
Excel IF functionExcel IF function
Excel IF functionHtay Aung
 
Excel lesson formulas and functions
Excel lesson formulas and functionsExcel lesson formulas and functions
Excel lesson formulas and functionswildman099
 
TrainingOutline_Excel_FormulasNFunctions_Workshop (Writing Sample)
TrainingOutline_Excel_FormulasNFunctions_Workshop (Writing Sample)TrainingOutline_Excel_FormulasNFunctions_Workshop (Writing Sample)
TrainingOutline_Excel_FormulasNFunctions_Workshop (Writing Sample)Patrice Dowtin, MS, MBA
 
Excel functions and formulas
Excel functions and formulasExcel functions and formulas
Excel functions and formulasJason Wong
 
Fill series. Data validation. Excel Tutorial
Fill series. Data validation. Excel TutorialFill series. Data validation. Excel Tutorial
Fill series. Data validation. Excel TutorialIlgar Zarbaliyev
 
Working on MS-Excel 'FORMULA TAB'
Working on MS-Excel 'FORMULA TAB'Working on MS-Excel 'FORMULA TAB'
Working on MS-Excel 'FORMULA TAB'Pranav Kumar
 
Creating Formulas in Excel
Creating Formulas in ExcelCreating Formulas in Excel
Creating Formulas in ExcelKim Estes
 
MS Excel formula tab slides
MS Excel formula tab slidesMS Excel formula tab slides
MS Excel formula tab slidesMuhammad Zaman
 
Excel Formula and Function Basics
Excel Formula and Function BasicsExcel Formula and Function Basics
Excel Formula and Function Basicsguest1c3d8c6
 
Errors in ms excel
Errors in ms excelErrors in ms excel
Errors in ms excelNikita Arora
 
Formulas and functions - By Amresh Tiwari
Formulas and functions - By Amresh TiwariFormulas and functions - By Amresh Tiwari
Formulas and functions - By Amresh TiwariAmresh Tiwari
 

What's hot (20)

Using Excel Functions
Using Excel FunctionsUsing Excel Functions
Using Excel Functions
 
Training presentation vlookup - what it is, and when to use it
Training presentation   vlookup - what it is, and when to use itTraining presentation   vlookup - what it is, and when to use it
Training presentation vlookup - what it is, and when to use it
 
03 Excel formulas and functions
03 Excel formulas and functions03 Excel formulas and functions
03 Excel formulas and functions
 
On if,countif,countifs,sumif,countifs,lookup,v lookup,index,match
On if,countif,countifs,sumif,countifs,lookup,v lookup,index,matchOn if,countif,countifs,sumif,countifs,lookup,v lookup,index,match
On if,countif,countifs,sumif,countifs,lookup,v lookup,index,match
 
Real World Excel Formulas
Real World Excel FormulasReal World Excel Formulas
Real World Excel Formulas
 
Excel IF function
Excel IF functionExcel IF function
Excel IF function
 
Excel lesson formulas and functions
Excel lesson formulas and functionsExcel lesson formulas and functions
Excel lesson formulas and functions
 
TrainingOutline_Excel_FormulasNFunctions_Workshop (Writing Sample)
TrainingOutline_Excel_FormulasNFunctions_Workshop (Writing Sample)TrainingOutline_Excel_FormulasNFunctions_Workshop (Writing Sample)
TrainingOutline_Excel_FormulasNFunctions_Workshop (Writing Sample)
 
Microsoft excel 2010 useful formula & functions
Microsoft excel 2010   useful formula & functionsMicrosoft excel 2010   useful formula & functions
Microsoft excel 2010 useful formula & functions
 
Excel functions and formulas
Excel functions and formulasExcel functions and formulas
Excel functions and formulas
 
Formula in MS Excel
Formula in MS ExcelFormula in MS Excel
Formula in MS Excel
 
Fill series. Data validation. Excel Tutorial
Fill series. Data validation. Excel TutorialFill series. Data validation. Excel Tutorial
Fill series. Data validation. Excel Tutorial
 
Working on MS-Excel 'FORMULA TAB'
Working on MS-Excel 'FORMULA TAB'Working on MS-Excel 'FORMULA TAB'
Working on MS-Excel 'FORMULA TAB'
 
Mastering Excel Formulas and Functions
Mastering Excel Formulas and FunctionsMastering Excel Formulas and Functions
Mastering Excel Formulas and Functions
 
Creating Formulas in Excel
Creating Formulas in ExcelCreating Formulas in Excel
Creating Formulas in Excel
 
MS Excel formula tab slides
MS Excel formula tab slidesMS Excel formula tab slides
MS Excel formula tab slides
 
Excel Formula and Function Basics
Excel Formula and Function BasicsExcel Formula and Function Basics
Excel Formula and Function Basics
 
Errors in ms excel
Errors in ms excelErrors in ms excel
Errors in ms excel
 
Formulas and functions - By Amresh Tiwari
Formulas and functions - By Amresh TiwariFormulas and functions - By Amresh Tiwari
Formulas and functions - By Amresh Tiwari
 
Excel
ExcelExcel
Excel
 

Similar to Excel basics for everyday use part three

Excel basics for everyday use-the more advanced stuff
Excel basics for everyday use-the more advanced stuffExcel basics for everyday use-the more advanced stuff
Excel basics for everyday use-the more advanced stuffKevin McLogan
 
CBN Advanced Excel Training Slide.pptx
CBN Advanced Excel Training Slide.pptxCBN Advanced Excel Training Slide.pptx
CBN Advanced Excel Training Slide.pptxEdwinAdeolaOluwasina1
 
Intermediate ms excel for business elective course for dlsu-d hs
Intermediate ms excel for business   elective course for dlsu-d hsIntermediate ms excel for business   elective course for dlsu-d hs
Intermediate ms excel for business elective course for dlsu-d hsMarkFreudBolima
 
Lesson 27 - Excel Lesson 13.pptx
Lesson 27 - Excel Lesson 13.pptxLesson 27 - Excel Lesson 13.pptx
Lesson 27 - Excel Lesson 13.pptxrubben7
 
Libre Office Calc Lesson 4: Understanding Functions
Libre Office Calc Lesson 4: Understanding FunctionsLibre Office Calc Lesson 4: Understanding Functions
Libre Office Calc Lesson 4: Understanding FunctionsSmart Chicago Collaborative
 
Excel_Breif_Overview.pptx
Excel_Breif_Overview.pptxExcel_Breif_Overview.pptx
Excel_Breif_Overview.pptxNitish Nagar
 
Introduction_Excel.ppt
Introduction_Excel.pptIntroduction_Excel.ppt
Introduction_Excel.pptelsagalgao
 
Intro to Excel Basics: Part II
Intro to Excel Basics: Part IIIntro to Excel Basics: Part II
Intro to Excel Basics: Part IISi Krishan
 
functionsandformulas-131221213835-phpapp01.pdf
functionsandformulas-131221213835-phpapp01.pdffunctionsandformulas-131221213835-phpapp01.pdf
functionsandformulas-131221213835-phpapp01.pdfFranzLawrenzDeTorres1
 
Functions and formulas of ms excel
Functions and formulas of ms excelFunctions and formulas of ms excel
Functions and formulas of ms excelmadhuparna bhowmik
 
Excel Useful Tips
Excel Useful TipsExcel Useful Tips
Excel Useful TipsParul_100in
 

Similar to Excel basics for everyday use part three (20)

Excel basics for everyday use-the more advanced stuff
Excel basics for everyday use-the more advanced stuffExcel basics for everyday use-the more advanced stuff
Excel basics for everyday use-the more advanced stuff
 
CBN Advanced Excel Training Slide.pptx
CBN Advanced Excel Training Slide.pptxCBN Advanced Excel Training Slide.pptx
CBN Advanced Excel Training Slide.pptx
 
Intermediate ms excel for business elective course for dlsu-d hs
Intermediate ms excel for business   elective course for dlsu-d hsIntermediate ms excel for business   elective course for dlsu-d hs
Intermediate ms excel for business elective course for dlsu-d hs
 
Lesson 27 - Excel Lesson 13.pptx
Lesson 27 - Excel Lesson 13.pptxLesson 27 - Excel Lesson 13.pptx
Lesson 27 - Excel Lesson 13.pptx
 
Libre Office Calc Lesson 4: Understanding Functions
Libre Office Calc Lesson 4: Understanding FunctionsLibre Office Calc Lesson 4: Understanding Functions
Libre Office Calc Lesson 4: Understanding Functions
 
Week2 excel
Week2 excelWeek2 excel
Week2 excel
 
Excel_Breif_Overview.pptx
Excel_Breif_Overview.pptxExcel_Breif_Overview.pptx
Excel_Breif_Overview.pptx
 
Excel intermediate
Excel intermediateExcel intermediate
Excel intermediate
 
Introduction_Excel.ppt
Introduction_Excel.pptIntroduction_Excel.ppt
Introduction_Excel.ppt
 
Introduction_Excel.ppt
Introduction_Excel.pptIntroduction_Excel.ppt
Introduction_Excel.ppt
 
Introduction_Excel.ppt
Introduction_Excel.pptIntroduction_Excel.ppt
Introduction_Excel.ppt
 
Introduction_Excel.ppt
Introduction_Excel.pptIntroduction_Excel.ppt
Introduction_Excel.ppt
 
Intro to Excel Basics: Part II
Intro to Excel Basics: Part IIIntro to Excel Basics: Part II
Intro to Excel Basics: Part II
 
functionsandformulas-131221213835-phpapp01.pdf
functionsandformulas-131221213835-phpapp01.pdffunctionsandformulas-131221213835-phpapp01.pdf
functionsandformulas-131221213835-phpapp01.pdf
 
Functions and formulas of ms excel
Functions and formulas of ms excelFunctions and formulas of ms excel
Functions and formulas of ms excel
 
Ms excel
Ms excelMs excel
Ms excel
 
Cucci_-Excel_for_beginners_.pdf
Cucci_-Excel_for_beginners_.pdfCucci_-Excel_for_beginners_.pdf
Cucci_-Excel_for_beginners_.pdf
 
Excel training
Excel trainingExcel training
Excel training
 
Grade 6 computer
Grade 6 computer Grade 6 computer
Grade 6 computer
 
Excel Useful Tips
Excel Useful TipsExcel Useful Tips
Excel Useful Tips
 

More from Kevin McLogan

Excel basics for everyday use
Excel basics for everyday useExcel basics for everyday use
Excel basics for everyday useKevin McLogan
 
Excel basics for everyday use part two
Excel basics for everyday use part twoExcel basics for everyday use part two
Excel basics for everyday use part twoKevin McLogan
 
From Individual Learning To Organizational Learning
From Individual Learning To Organizational LearningFrom Individual Learning To Organizational Learning
From Individual Learning To Organizational LearningKevin McLogan
 
Excel text functions
Excel text functionsExcel text functions
Excel text functionsKevin McLogan
 
Looking Forward As We Examine The Past2009
Looking Forward As We Examine The Past2009Looking Forward As We Examine The Past2009
Looking Forward As We Examine The Past2009Kevin McLogan
 

More from Kevin McLogan (7)

Excel basics for everyday use
Excel basics for everyday useExcel basics for everyday use
Excel basics for everyday use
 
Excel basics for everyday use part two
Excel basics for everyday use part twoExcel basics for everyday use part two
Excel basics for everyday use part two
 
Mental Models
Mental ModelsMental Models
Mental Models
 
From Individual Learning To Organizational Learning
From Individual Learning To Organizational LearningFrom Individual Learning To Organizational Learning
From Individual Learning To Organizational Learning
 
Excel text functions
Excel text functionsExcel text functions
Excel text functions
 
Know Your Role2
Know Your Role2Know Your Role2
Know Your Role2
 
Looking Forward As We Examine The Past2009
Looking Forward As We Examine The Past2009Looking Forward As We Examine The Past2009
Looking Forward As We Examine The Past2009
 

Excel basics for everyday use part three

  • 1. Excel Basics for Everyday Use Part Three By Kevin McLogan kevinmclogan@yahoo.com bigkkm@twitter.com facebook.com/kmclogan linkedin.com/in/kevinmclogan
  • 2. Course Objectives: After you complete this course to will be able to: • Understand references, absolute and relative • Know how to identify and name ranges of cells, and understand the significance of this. • Have a good grasp on an =IF function • Perform VLOOKUPS and HLOOKUPS • Calculate times • Manage AutoFilters and find information quickly • Avoid errors by using Tracing and Validation Create spreadsheets that amaze your friends and strike fear into the hearts of your enemies 2
  • 3. For this class, I am making the following assumptions • That you building on the skills that you learned in the first two classes, or have some experience with Excel • That you are eager to learn about Excel • That there are things in your life that can be improved through spreadsheets • That you will walk out of here with a better understanding of Excel and be able to use it in meaningful ways when you leave the class, no matter what your current skill level is • That you will practice the skills you have learned here 3
  • 4. References • A reference identifies a cell or a range of cells on a worksheet and tells Microsoft Excel where to look for the values or data you want to use in a formula. With references, you can use data contained in different parts of a worksheet in one formula or use the value from one cell in several formulas. • You can also refer to cells on other sheets in the same workbook, and to other workbooks. References to cells in other workbooks are called links.
  • 5. Relative references • Relative references A relative cell reference in a formula, such as A1, is based on the relative position of the cell that contains the formula and the cell the reference refers to. If the position of the cell that contains the formula changes, the reference is changed. If you copy the formula across rows or down columns, the reference automatically adjusts. By default, new formulas use relative references. For example, if you copy a relative reference in cell B2 to cell B3, it automatically adjusts from =A1 to =A2.
  • 6. Absolute references • Absolute references An absolute cell reference in a formula, such as $A$1, always refers to a cell in a specific location. If the position of the cell that contains the formula changes, the absolute reference remains the same. If you copy the formula across rows or down columns, the absolute reference does not adjust. By default, new formulas use relative references, and you need to switch them to absolute references. For example, if you copy a absolute reference in cell B2 to cell B3, it stays the same in both cells =$A$1.
  • 7. Naming ranges Why is this important: • Names make your formulas more understandable and easier to use, especially for others. • A descriptive name is easier to remember than a range of cells • Makes it easier to move around in the spreadsheet. • Easy to verify-the names appear in the name box. • Edit Names in the Formula tab
  • 10. Formula/Function This is where the heavy lifting is done. • Formulas contain five elements: • Operators (Symbols like +, -, /, *) • References: named cells or ranges, in the current worksheet or another worksheet, or even another workbook. • Values: numbers or lists of numbers (sometimes named) • Functions and their arguments: include SUM, AVERAGE, VLOOKUP and their arguments • Parentheses: Control the order in which the work gets done.
  • 11. =IF • This can be the most complicated of all functions! • It is definitely the most abused! • Think about it as “IF condition A occurs, this is the result, IF not, then this is the result.” • There can be multiple conditions, but that’s where we can run into trouble.
  • 12. Excel IF Statement Explained • http://www.youtube.com/watch?feature=play er_embedded&v=fR4agj1Ddoo • With the IF formula you can tell Excel to perform different calculations depending on whether the answer to your question is true of false.
  • 13. Excel IF Statement Explained • The function wizard in Excel describes the IF Formula as: = IF(logical_test,value_if_true,value_if_false) • But let’s translate it into English and apply it to an example:
  • 14. Excel IF Statement Explained • In the table below we want to calculate a commission in column G for each Builder based on the number of units in column D.
  • 15. Excel IF Statement Explained • We’ll say that for units over 5 we’ll pay 10% commission based on the Total $k figure in column F, and for units of 5 and under we’ll pay 5% commission. • Our IF formula for row 2 would read like this: • =IF(The number of units in cell D2 is >5,Then take the Total $k in cell F2 x 10%, but if it’s not > 5 then take the Total $k in cell F2 x 5%) • The actual formula we would enter into Cell G2 would be: • =IF(D2>5,F2*10%,F2*5%) • Remember; as the number of units in row 5 is not greater than 5 the formula would calculate a 5% commission.
  • 16. Other applications of the Excel IF statement • We don’t have to use the IF statement to perform a calculation. We could use it to return a comment. If we take the previous example again, we could have asked Excel to put a note in the cell like ‘Pay 5%’ or ‘Pay 10%’. To do this our formula would look like this: • =IF(D2>5,”Pay 10%”,”Pay 5%”)
  • 17. • Notice the difference between the two formulas is the inverted commas (“) surrounding the results we want Excel to produce. These inverted commas tell Excel that the information between them is to be entered as text. • Below is a screen shot of how the formula looks in the Formula Bar and the result returned in column G.
  • 18. Try other operators in your IF statements • Because the IF formula is based on logic, you can employ tests other than the greater than (>) operator used in the example above. • Other operators you could use are: = Equal to < Less Than <= Less than or equal to >= Greater than or equal to (if we’d used this operator in our above example row 5 which had 5 units would have returned Pay 10%) <> Less than or greater than (not equal to)
  • 19. VLOOKUP is my favorite Excel Formula! • It helps me get analysis and calculations done in minutes that would take hours manually. • I have use it all the time. 19
  • 20. Microsoft Excel describes the VLOOKUP formula as: • VLOOKUP(lookup_value, table_array, col_inde x_num ,range_lookup) And to translate it into English it would read: • VLOOKUP(find this value, in that table, return the value in column x of the table,but only return a result if you can match the value exactly) 20
  • 21. VLOOKUP • Let’s make it even clearer by applying it to our example: • VLOOKUP(find the name Doug from cell B2, in the Commission Rates table H2:I9,return the value in column 2 of the table, but only return a value if you find the exact name Doug in the Commission Rates table, otherwise give me an error) 21
  • 22. 22
  • 23. VLOOKUP (find the name Doug from cell B2, in the Commission Rates table H2:I9,return the value in column 2 of the table, but only return a value if you find the exact name Doug in the Commission Rates table, otherwise give me an error) 23
  • 24. Here’s what it would look like 24
  • 25. DATE FUNCTIONS • =NOW and =TODAY return the current time and date (the difference is that NOW includes the time) • REMEMBER: all dates are stored as a number. Today is 40,206 (standard date system) and 38745 in 1904 date system. • The standard system is based on days from 1900, but counted it as a leap year. • Always use the 1904 system if adding or subtracting dates! 25
  • 26. Calculating Time in Excel • It’s frustrating when all you want to do is sum a column of times to get the total, but for some reason you end up with a random number like in the example below. Since time is a concept rather than a mathematical equation, Excel has come up with systems for handling dates and times whereby they are given a numerical value.
  • 27. Dates in Excel • Excel gives each date a numeric value starting at 1st January 1900. • 1st January 1900 has a numeric value of 1, 2nd January 1900 has a numeric value of 2 and so on… These values are called ‘serial values’ in Excel, and they enable the use of dates in calculations. • NOTE: Excel calculates the year 1900 as if it was a leap year.
  • 28. Times in Excel • Times are seen as decimal fractions. 1 being the time for 24:00 or 0:00. 12:00 has a value of 0.50 because it is half of 24 hours, or the whole number 1, and so on. • To see Excel’s value for a date or time, simply format the cell as general. • For example the date and time of 1st March 2008 9:30:30 AM has a true value of 39508.39618. • 39508 being the serial value representing the date 1st March 2008, and .39618 being the decimal value for the time 9.30AM and 30 seconds. • Although the above is important to know, thankfully Excel has built in formatting so that we don’t have to enter our dates and times in serial or decimal values. • However it’s the lack of understanding of these serial and decimal values for time that cause common errors when performing calculations on time in Excel.
  • 29. How to SUM time in Excel • If you want to sum time (as in the example above) you need a custom format that uses [ square brackets ] around the hours. Like this:
  • 30. How to SUM time in Excel • You can see in the Sample box the correct total appear. This way I know I’ve formatted my time correctly. • These square brackets instruct Excel to and add the hours. Without them Excel will reset the sum to zero every time it gets to 24 hours. • There’s no need to modify the formatting of the minutes with square brackets as they automatically add up. • Note: in some versions of Excel when you insert a formula it will automatically apply the correct formatting to give you the total. Just be sure to check the total is reasonable or check the formatting is as stated above. • This square bracket time formatting requirement also applies when using other operators like +/-.
  • 31. What if you want to sum seconds to find out the total seconds? • While this isn’t the wrong answer, I want to know the total number of seconds, not how many minutes and seconds there are. To do this you’d need a custom number format like this: You can see from the sample box I now get 237 seconds, instead of 3 minutes 57 seconds. This can also be applied to minutes or hours. Just change the formatting to [mm] or [h] respectively.
  • 32. Time x rate to calculate wages or charge out fees • I quite often want to calculate wages or a charge out fee in Excel. But if you don’t know this trick you’ll be tearing your hair out…and probably revert to using fractions like 7.50 for 7 hours 30 minutes, just so you can get the answer you expect. • While entering halves or quarters of an hour as fractions is fine as, it becomes a hassle when your billing increments come down to 10 minutes or any other fraction you can’t calculate in your head….unless you’re superhuman!
  • 33. • Thankfully the solution is simple. Just multiply by 24 like I have in the example below.
  • 34. Use Excel in Timesheets to Calculate Time Worked • Below is a fairly basic timesheet layout. You can see in the formula bar that the time calculation is performed as a simple equation =I4-I2-I3.
  • 35. I’ve done some funky formatting to the cells to assist the person keying in the time: • Rows 2 and 4 are formatted with h:mm AM/PM. The employee has to type in their time as you see it in the cell for the formatting to work correctly. The advantage to this is they don’t need to convert their finish time to a 24 hour clock style. • The disadvantage is a bit more typing with the need for the AM or PM distinction.
  • 36. • Row 3 is formatted with h:mm “h:mm”. This adds the text h:mm to the end of the value for presentation purposes. The employee only needs to type in 0:30 for a half hour lunch break, and Excel will add the h:mm to the end. • Row 5 is formatted with *h+:mm “h:mm” to ensure Excel adds the hours correctly. • You can then calculate wages using the total figure in cell N5 with the Time x Rate formula above. Of course this doesn’t take into account overtime and penalty rates. That lesson is for another day.
  • 37. Checking your work • Tracing errors: when you get a message like: • ####, #DIV/0!, #REF!, #NULL!1, #VALUE!, #NAME?, #NUM!, #N/A Something went wrong! Open the Fix and trace errors file 37
  • 38. •##### column is too narrow to display the value, or you might have used a negative number for a date or time. •#DIV/0! You attempted to divide by zero. What were you thinking? •#NAME? Excel does not recognize the text in the cell. A name or function have been misspelled or used a name that does not exist. Text in not marked properly. •#NUM! The formula contains an invalid numeric value or a number that is too large or too small for Excel to handle. •#REF! The formula uses an invalid cell reference. •#VALUE! The wrong type of argument is used in the formula. 38
  • 39. Tracing Precedents and dependants 39
  • 40. Drop-down menus in cells •You can limit the options for data entry with a drop- down menu in each cell. •This keeps the entries consistent and limits errors due to spelling, or other inconsistencies. •Let’s try it! 40
  • 41. Inserting fancy stuff into your spreadsheet • Hyperlinks Open the more resources file to see how this is inserted. 41
  • 42. I leave you with this: SAVE YOUR WORK! Thank you for participating, happy spread sheeting! 42