You are on page 1of 7

Generic Functions

=SUM(range) 12.00 92.64


=AVERAGE(range) 13.00 13.23
=COUNT(range) 12.00 7.00
=COUNTA(range) 13.45 7.00
=COUNTBLANK(Range) 13.99 0.00
=MAX(Range) 15.21 15.21
=MIN(Range) 12.99 12.00
=ROUND(number,num_digits) 11.3456 11.35
=ROUNDDOWN(number,num_digits) 11.3456 11
=ROUNDUP(number,num_digits) 11.3456 12
=NOW() 4/2/2020 15:55
=TODAY() 4/2/2020
=MONTH() ### 6
=YEAR() ### 2011

Finding Data Dissimilarity


A11 A11 1 =H30=I30
A12 A12 1 =H31=I31
A13 A12 0 =H32=I32
The IF Function

Data
50

Formula

=IF(B5<=100,"Within budget","Over budget")

=IF(B5=100,SUM(BigRange),"")

Notes on the IF Function


Returns one value if a condition you specify evaluates to TRUE
and another value if it evaluates to FALSE.
Use IF to conduct conditional tests on values and formulas.

Syntax: IF(logical_test,value_if_true,value_if_false)

Logical_test is any value or expression that can be evaluated to TRUE or FALSE.


For example, A10=100 is a logical expression; if the value in cell A10 is equal to 100,
the expression evaluates to TRUE. Otherwise, the expression evaluates to FALSE.
This argument can use any comparison calculation operator.

Value_if_true   is the value that is returned if logical_test is TRUE. For example,


if this argument is the text string "Within budget" and the logical_test argument
evaluates to TRUE, then the IF function displays the text "Within budget".
If logical_test is TRUE and value_if_true is blank, this argument returns 0 (zero).
To display the word TRUE, use the logical value TRUE for this argument.
Value_if_true can be another formula.

Value_if_false   is the value that is returned if logical_test is FALSE. For example,


if this argument is the text string "Over budget" and the logical_test argument
evaluates to FALSE, then the IF function displays the text "Over budget".
If logical_test is FALSE and value_if_false is omitted, (that is, after
value_if_true, there is no comma), then the logical value FALSE is returned.
If logical_test is FALSE and value_if_false is blank (that is, after value_if_true,
there is a comma followed by the closing parenthesis), then the value 0 (zero)
is returned. Value_if_false can be another formula.

Remarks
Up to seven IF functions can be nested as value_if_true and value_if_false
arguments to construct more elaborate tests.
When the value_if_true and value_if_false arguments are evaluated,
IF returns the value returned by those statements.
If any of the arguments to IF are arrays, every element of the array
is evaluated when the IF statement is carried out.
Description (Result)
If the value in Cell B5 is less than or equal to 100, then the
formula displays "Within budget". Otherwise, the function
displays "Over budget". Result: Over budget
If the number above is 100, then the range named "BigRange"
is summed. Otherwise, empty text ("") is returned. Result:
empty text

ecify evaluates to TRUE

alues and formulas.

e,value_if_false)

n that can be evaluated to TRUE or FALSE.


ssion; if the value in cell A10 is equal to 100,
rwise, the expression evaluates to FALSE.
calculation operator.

urned if logical_test is TRUE. For example,


in budget" and the logical_test argument
n displays the text "Within budget".
e is blank, this argument returns 0 (zero).
cal value TRUE for this argument.

urned if logical_test is FALSE. For example,


r budget" and the logical_test argument
on displays the text "Over budget".
lse is omitted, (that is, after
n the logical value FALSE is returned.
se is blank (that is, after value_if_true,
ng parenthesis), then the value 0 (zero)
her formula.

value_if_true and value_if_false

arguments are evaluated,

every element of the array


Plotting Data into Charts & Graphs

1. Purpose of Using Charts Suggested Charts Year Tokyo London


Comparison one element with other Column & Bar Chart 2005 45,211 139,345
Compare over time Column and Line Chart 2006 50,455 145,022
Make Relative Comparison Pie & Doughnut Chart 2007 43,001 167,099
2008 40,112 180,055
2009 35,009 321,022
2010 31,323 155,788

Passenger Number (2005-2010) Passenger Number (2005-2010) Total Passenger an


350000 500000
2010
450000
300000
400000 2009
250000 350000
200000 300000 2008
250000
150000 200000 2007
100000 150000
2006
100000
50000
50000 2005
0 0
2005 2006 2007 2008 2009 2010 2005 2006 2007 2008 2009 2010 0 200000 400000

Tokyo London Bangkok Tokyo London Bangkok Tokyo London

Comparison of Passenger Number in


2005

Tokyo London Bangkok

14%
41%

44%
phs

Bangkok Total
130,211 314,767
99,323 294,800
108,992 319,092
78,002 298,169
76,232 432,263
145,433 332,544

Total Passenger and City Contribution

10

09

08

07

06

05
0 200000 400000 600000 800000 1000000

Tokyo London Bangkok Total

You might also like