MS EXCEL 2010 for the Applications of Computers in Agriculture course PHẠM QUANG DŨNG, PhD. Dept. of Computer Science Faculty of Information Technology Hanoi University of Agriculture Website: www.hua.edu.vn/khoa/fita/en/pqdung
56
Embed
PHẠM QUANG DŨNG, PhD. Dept. of Computer Science Faculty of Information Technology Hanoi University of Agriculture Website: .
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Slide 1
PHM QUANG DNG, PhD. Dept. of Computer Science Faculty of
Information Technology Hanoi University of Agriculture Website:
www.hua.edu.vn/khoa/fita/en/pqdung
Slide 2
Outline The Ribbon Getting started Formulas and Functions
Managing lists Charts
Slide 3
1. The Ribbon Home tab Insert tab Page layout tab Formulas tab
Data tab Review tab View tab Self-study
Entering data 1. Click the cell where you want to enter data 2.
Type the data in the cell Texts align left automatically Numbers
align right, use . before decimal places Dates in m/d/yy format,
align right Hours in h:m:s format, align right Note: use before a
number to fix it as a text Eg:04.38262625 3. Press enter or tab to
move to the next cell
Slide 6
Automatically fill data to quickly fill in several types of
data series (numbers, dates, months) 1. Enter the first 2 values,
then select the two cells 2. Move the cursor to the small black
square in the lower- right corner 3. Click and hold the mouse then
drag the fill handle across the cells, horizontally or
vertically.
Slide 7
Selecting ranges to format/copy/move. Click the first cell in
the range, and then drag to the last cell Hold the Ctrl key to
select discrete ranges Click the column heading to select the whole
column Click All button to select all cells.
Slide 8
Adjusting Column width / Row height Column width: Place the
cursor on the line between two columns. Drag the boundary on the
right side of the column heading until the column is the width that
you want. or double click to fit column contents automatically
Slide 9
Wrapping texts 1. Click the cell in which you want to wrap the
text. 2. On the Home tab, in the Alignment group, click Wrap
Text.
Slide 10
Merging/Splitting cells 1. Select the range. 2. On the Home
tab, in the Alignment group, click Merge and Center.
Slide 11
Formatting cell borders 1. Select the range 2. Go to the Home
tab, in the Font group 3. Click the arrow next to Borders 4. Click
on the border style you would like Task:
Slide 12
Formatting numbers 1. Click the cell(s) containing the numbers,
2. On the Home tab, in the Number group, click the arrow next to
the Number Format box, 3. Click the format that you want. For more
detail, choose More Number Formats Task: Try to format DOB column
to be displayed in dd/mm/yy style.
Slide 13
Print Preview and Print From Quick Access Toolbar
Slide 14
3.Formulas and Functions Introduction to Formulas Frequently
used Functions: AND, OR LEFT, RIGHT SUM, AVERAGE, MAX, MIN, COUNT
DSUM, DAVERAGE, IF, SUMIF, COUNTIF VLOOKUP, HLOOKUP
Slide 15
Introduction to Formulas Always starts with an equal sign (=)
The rest can contain: Functions, e.g.PI(), TODAY() Cell references,
e.g. A1, A1:B5 Constants, e.g. 10, 3.14 Operators: +, -, *, /, ^
Parentheses( ) E.g. =(A1+A2)*2 =PI()*A1^2 =SUM(A1:B5)/100
Slide 16
Slide 17
Copy a formula HOW? Using the Fill Handle: the same as filling
data automatically Using traditional copy & paste
Slide 18
Referencing cells in Formulas Relative references E.g. A1A1:B10
Used by default Changed appropriately when you copy the formula
Absolute references E.g. $A$1 $A$1:$B$10 Retained when you copy the
formula Press F4 to change a Relative ref. to Absolute ref. Mixed
references E.g. $A1A$1
Slide 19
Create a formula without function WHERE?At a cell OR at the
Formula bar HOW? Select the cell in which you want to create the
formula Type the formula in from your keyboard, (you should) insert
a cell reference by clicking your mouse on that cell. Hit the ENTER
key to finish
Slide 20
Functions Structure:Function_name(arg1, arg2,,arg_n) Some
functions have no args. E.g.TODAY(),PI() A string inside must be
enclosed by a couple A function can be nested in another one
E.g.IF(AND(A1>=8,A2Kinh),1000,0)
Slide 21
Insert a function WHERE?Formulas tab OR Insert Function button
HOW? Select the function Enter the arguments enter a range by
clicking then dragging the cursor over the range. Press ENTER You
can, of course, type the whole function in
Slide 22
Frequently used Functions AND(arg1, arg2,, arg_n): a logic
function, returns True only if all of args are True. Each arg. can
be a logic constant/expression. E.g. =AND(B3>=23,B3=25,D3
Frequently used Functions (6)
IF(logical_test,value_if_true,[value_if_false]): returns
value_if_true if logical_test is True otherwise, returns
value_if_false E.g. =IF(A3>=5,Pass,Fail) IF can be nested in
another IF. Result: - if im 8 then Hc bng = 240, - Otherwise: if im
[7,8) then HB = 120, otherwise (when im
Task Fill in the Result column: Pass or Fail based on Mark
>= 5 or not. Scholarship:240000 if Mark >= 8 120000 if 7
Examples of Criteria ranges In the same row -> AND In the
different row -> OR You should COPY columns heading from
original list to Criteria range!
Slide 36
DSUM Headings MUST be the same
Slide 37
DMAX
Slide 38
DAVERAGE
Slide 39
DCOUNT
Slide 40
4. Managing lists Sorting data Subtotals Filtering data
Slide 41
Sorting data Sorts alphabetically or numerically by some fields
HOW? Choose the database to be sorted Menu Data click Sort button
Select the fields, what to sort on, sort order then press OK The
upper has a higher priority: The lower field is sorted locally in
the rows whose upper fields values are equal
Slide 42
Example result sorted A to Z locally
Slide 43
Subtotals Can sum numeric data, find the highest/lowest values
and averages, count the number of rows in a group. HOW? Sort the
list by the field you want to have groups Menu Data click Subtotal
button Select the grouped field, function to use, fields to add
subtotal to. Press OK
Slide 44
Example result
Slide 45
Filtering data: auto or advanced Auto-filter: Select the list
Menu Data, click Filter button Select the drop down arrows from the
columns you want to filter data Tick/Untick to make sure the values
you wish to be seen are Ticked, click OK; or Click Number Filters
(or Text Filters,) to choose an submenu item
Slide 46
Slide 47
AutoFilter: Custom Filter Here you can make AND/OR conditions
on 1 column. E.g. Filter the list where NS99 [1300,1600) !!! Note
that AutoFilter cannot solve OR conditions between 2 or more
fields.
Slide 48
Advanced Filter Need to create Criteria range Select the list
Menu Data, Sort & Filter frame, click Advanced
Slide 49
5. Charts Creating Formatting Changing the chart layout
Changing the chart design
Slide 50
Creating a chart Select data range Menu Insert, choose an
appropriate type from a chart category (column, line, pie, etc.) An
initial chart appears; we will modify it later Here we mention 4
most common used types: 1. 3-D Clustered Column 2. Line with
Markers 3. Pie in 3-D 4. XY Scatter with Smooth Lines and
Markers
Slide 51
Attention With Column, Line, and Pie charts selecting data:
should choose an addition field for data label, usually a Name
field. legend: keep it
Slide 52
Attention With XY chart: Shows the correlation between X and Y
- the same as you draw chart for y = f(x) function at high schools
Dont choose any addition field, just 2 needed fields The first
field will be X, the second one will be Y, of course The 2 fields
need to be sorted by the 1 st field (ascending or descending)
before you create the chart. Should remove default legend
Slide 53
NO YES
Slide 54
Formatting charts elements Axes, data series, walls, chart
area, etc. How? right click on the element you want, choose Format
at the end of context menu
Slide 55
Changing the chart layout Choose the created chart Click menu
Chart Tools/Layout You can insert chart title, axis titles, data
labels change legends position insert shapes, text box add
trendline
Slide 56
Changing the charts design Choose the created chart Click menu
Chart Tools/Design, you can: Chang chart type Switch Row/Column
Re-select data Change chart style