Excel Training - Basics 06aug2015
Excel Training - Basics 06aug2015
Arumugam M
06-Aug-2015
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
© Copyright 2015 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Help protect your files in case of a crash
Tips
To be extra safe, enter a small number in the minutes box, like 10.
That way, you’ll never lose more than 10 minutes of work.
On the other hand, if you want to make Office faster, try entering a
larger number in the minutes box, like 20.
Agenda
Ground Rules
Warm-up
Getting started
Conditional & Logical Functions
Special Functions
Data Lookup
Thanks
Warm Up
Fast Navigation (Ctrl + Arrow Button)
Create a New Shortcut Menu(Quick Access Toolbar)
Speedily Move and Copy Data in Cells
Generate a Unique Value in a Column(Data -> Advanced)
Input Restriction with Data Validation Function(Data->Data
Validation)
Hide Data Thoroughly(Format Cells->Number->Custom ;;;)
Compose Text with &
Transforming the Case of Text (UPPER/LOWER/PROPER)
Input Values Starting with 0
Speed up Inputting Complicated Terms with
AutoCorrect(Options ->Proofing)
Getting started
Text to Columns
Goal Seek
Show Ink
Essential Shortcuts
NAMES
When entering formulae or referring to any area on the spreadsheet, it is usual to refer to a "range".
For example, B6 is a range reference; B6:B10 is also a range reference.
Defining Names
There are a number of ways to set up names on a spreadsheet.
A common way is to use the Insert, Name, Define menu.
In the example, there is a range of sales figures that could be
named “1st_Qtr”;
Selection of
cells for
naming
To name range:
To manage names:
The Define Name Dialog box also lets you manage the range names you
can add delete or modify the existing range name in the same dialog box.
Names In Formulae
Names can be used in any simple formula, as well as any of Excel's built in functions. Instead of typing
cell references or selecting cells, simply type the name or paste the name into the formula.
Text to Columns
Paste Special
Goal Seek
Show Ink
Essential Shortcuts
Shortcut Description
Ctrl O Open a spreadsheet.
Ctrl S Save a spreadsheet.
Ctrl N Create a new blank spreadsheet.
Ctrl X Cut
Ctrl C Copy
Ctrl V Paste
Ctrl P Print
F2 Enter edit mode for a cell.
F4 Change formula references
between absolute, relative and
mixed references.
E.g. Absolute - $A$1, Relative A1,
Mixed $A1 or A$1.
Ctrl Enter Fill several cells with what you
type.
Ctrl ; Insert the current date.
Ctrl Shift ; Insert the current time.
CTRL + Tab cycles through open workbooks
ALT + NVT Creates a new Pivot Table
Conditional & Logical
Functions
Excel has a number of logical functions which allow you to set various
"conditions" and have data respond to them. For example, you may only want a
certain calculation performed or piece of text displayed if certain conditions are
met. The functions used to produce this type of analysis are found in the Insert,
Function menu, under the heading LOGICAL.
the IF statement is accompanied by three arguments enclosed in one set of parentheses; the condition to be met (logical_test);
the action to be performed if that condition is true (value_if_true); the action to be performed if false (value_if_false). Each of
these is separated by a comma, as shown;
=IF ( logical_test, value_if_true, value_if_false)
Logical Test
This part of the IF statement is the "condition", or test. You may want to test to see if a cell is a certain
value, or to compare two cells. In these cases, symbols called LOGICAL OPERATORS are useful;
> Greater than
< Less than
> = Greater than or equal to
< = Less than or equal to
= Equal to
< > Not equal to
NESTED IF
When you need to have more than one condition and more than two possible outcomes, a NESTED IF is
required. This is based on the same principle as a normal IF statement, but involves "nesting" a secondary
formula inside the main one. The secondary IF forms the FALSE part of the main statement, as follows;
=IF(1st logic test , 1st true value , IF(2nd logic test , 2nd true value , false value))
Only if both logic tests are found to be false will the false value be returned.
AND, OR, NOT
Rather than create large and unwieldy formulae involving multiple IF statements, the AND, OR and NOT functions can be used
to group logical tests or "conditions" together. These three functions can be used on
their own, but in that case they will only return the values "TRUE" or "FALSE". As these two values are not
particularly meaningful on a spreadsheet, it is much more useful to combine the AND, OR and NOT functions within an IF
statement. This way, you can ask for calculations to be performed or other text messages to appear as a result.
And
This function is a logical test to see if all conditions are true. If this is the case, the value "TRUE" is returned. If any of the
arguments in the AND statement are found to be false, the whole statement produces the value "FALSE". This function is
particularly useful as a check to make sure that all conditions you set are met. Arguments are entered in the AND
statement in parentheses, separated by commas, and there is a maximum of 30 arguments to one AND statement. The
following example checks that two cells, B1 and B2, are both greater than 100.
=AND(B1>100,B2>100)
OR
This function is a logical test to see if one or more conditions are true. If this is the case, the value "TRUE" is returned. If just
one of the arguments in the OR statement is found to be true, the whole statement produces the value "TRUE". Only when
all arguments are false will the value "FALSE" be returned. This function is particularly useful as a check to make sure that at
least one of the conditions you set is met.
=IF(OR(B1>100,B2>100),"at least one is OK","Figures not high enough")
In the above formula, only one of the numbers in cells B1 and B2 has to be over 100 in order for them to be
added together. The message only appears if neither figure is high enough.
NOT
NOT checks to see if the argument is false. If so, the value "TRUE" is returned. It is best to use NOT as
"provided this is not the case" function. In other words, so long as the argument is false, the overall statement is true. In
the example, the cell contents of B1 are returned unless the number 13 is encountered. If B1 is found to contain 13, the
message "Unlucky!" is displayed;
=IF(NOT(B1=13),B1,"Unlucky!")
NOW
ISERROR
COUNTIF/AVERAGEIF/SUMIF
Right Function
the Right function extracts a substring from a string starting from the right-most
character.
The syntax for the Right function is:
=Right( text, number_of_characters )
Left Function
text is the text value to remove the leading and trailing spaces from.
Now Function
COUNTIF
RANGE is one or more cells to average, including numbers or names, arrays, or references that contain numbers.
CRITERIA is the criteria in the form of a number, expression, cell reference, or text that defines which cells are averaged. For example,
criteria can be expressed as 32, "32", ">32", "apples", or B4.
AVERAGE range is the actual set of cells to average. If omitted, RANGE is used.
Here is an example that returns the average of B2:B5 where the corresponding value in column A is greater
than 250,000:
=AVERAGEIF(A2:A5, “>250000”, B2:B5)
Sumif
the SumIf function adds all numbers in a range of cells, based on a given criteria.
The syntax for the SumIf function is:
SumIf( range, criteria, sum_range )
range is the range of cells that you want to apply the criteria against.
criteria is used to determine which cells to add.
sum_range are the cells to sum.
LOOKUP FUNCTIONS
These functions allow you to create formulae which examine large amounts of data and
find information which matches or approximates to certain conditions. They are
simpler to construct than nested IF’s and can produce many more varied results.
Lookup
The syntax for the VLOOKUP function follows the same pattern as HLOOKUP, except that instead of
specifying a row index number, you would specify a column index number to instruct VLOOKUP to move
across to a specific column in the array where the required value is to be found.
In the case of VLOOKUP, data in the first column of the array should be in ascending order, as VLOOKUP
searches down this column for the lookup_value.
In the same spreadsheet as before, a VLOOKUP formula could be used to search for a specific time period,
then return the appropriate rate for a fixed amount. In the following example, a time period is entered in
cell A54 and in B54 the VLOOKUP formula is contained;
and...