Google Search

You might also like

Download as xls, pdf, or txt
Download as xls, pdf, or txt
You are on page 1of 48

-2

2.98
3
4
5
2
4
6
2.95
4
1024

19

1
2
3

5
6
7

ABS
CEILING
FACT
FLOOR
MOD
POWER

Max
Min
Median

3 RANK( number, array, [o


1
stddev
5 LARGE( array, nth_positi
-4 INTERCEPT( known_y_va

19.335317 RAND()*(b-a)+a

0.264155
5 RANDBETWEEN( bottom, top )
3 ROUND( number, digits )
0
Err:502 SQRT( number )
1.732051

COUNTIF( range, criteria

COUNT( argument1, [arg

AVERAGE( number1, [nu

Statistical Functio

SUMIF( range, criteria, [sum_range] )

2.9 TRUNC( number, [digits] )


Math functions
CONCATENATE( text1, text2, ... text_n )
EXACT( text1, text2 )
FIND( substring, string, [start_position] )
FIXED( number, [decimal_places], [no_commas] )
LEFT( text, [number_of_characters] )
LOWER( text )

REPLACE( old_text, start, number_of_chars, new_text )

SEARCH( substring, string, [start_position] )


SUBSTITUTE( text, old_text, new_text, [nth_appearance] )
TRIM( text )
UPPER( text )

TEXT
FUNCTI
ONS

LOOKUP( value, lookup_range, [result_range] )


HLOOKUP( value, table, index_number, [approximate_match] )
VLOOKUP( value, table, index_number, [approximate_match] )
INDEX( array, row_number, [column_number] )
MATCH( value, array, [match_type] )
OFFSET( range, rows, columns, [height], [width] )
ADDRESS( row, column, [ref_type], [ref_style], [sheet_name] )

LOOKU
P/
REFER
ENCE
FUNCTI
ONS

111

AND( condition1, [condition2], ... )


IF( condition, [value_if_true], [value_if_false] )
NOT( logical_value )

ANK( number, array, [order] )

OR( condition1, [condition2, ... condition_n] )


LOGICAL functions

7 BIN2DEC( binary_number )

ARGE( array, nth_position )

BIN2HEX( binary_number, [places] )

NTERCEPT( known_y_values, known_x_values )

007

OUNTIF( range, criteria )

BIN2OCT( binary_number, [places] )


CONVERT( number, from_units, to_units )

OUNT( argument1, [argument2, ... argument_n] )

other functions

VERAGE( number1, [number2], ... [number_n] )

ical Functions

DATE( year, month, day )


DAY( date_value )
Hour( serial_number )
MINUTE( serial_number )
MONTH( date_value )
NOW()
TODAY()

DATE /
TIME
FUNCTI
ONS

nits, to_units )

Imagine the case of the result of a football match. You want to display Win or Lose w
Team
AAA
BBB
FFF
HHH

Result

Result
2
1
3
1

0
1
1
0

Team
DDD
EEE
RRR
JJJ

Result
Win
Tie
Win
Win

In column E, you have the average result for each students for an exam. In column
Student
Luc
Estelle
Laurent
Paul
La
Murielle
Thierry

Course 1
8
4
11
17
17
6
18

Course 2 Course 3 Average


Result
15
9
10.67 Accepted
15
16
11.67 Accepted
6
8
8.33 Fail
16
3
12 Good enough
18
10
15 Good
5
13
8 Fail
19
15
17.33 All right

t to display Win or Lose when the team in column A has a better result than the team in colu

for an exam. In column F, write a function which returns if students Pass or Fail if the averag

ult than the team in column D

Pass or Fail if the average mark is greater or equal than 10.

Name
JANJUAH
SARA
CHAMPNEY
JONAS
SAMEN
SATAKE
LEON
BYERLY
WARNER
GAUDEFROY
CHAPMan
SIMPSON
FORDYCE
TORTELLI
ADCOCK
CONTAT
ZIZZARI
FREYERMUTH
JONES

Firstname
Bob
Sumit
Robert
Lee
Michael
Kaori
Fernando
Kimberly
Norris
Marie-Claire
Mathew
Aubrey
David
Olavo
David
Thibault
Stephen
Jean-Luc
David

Genre
Man
Man
Man
Man
Man
Man
Man
Woman
Man
Woman
Woman
Man
Man
Woman
Woman
Man
Woman
Man
Man

Income
20000
80000
67000
35000
77000
70000
23000
97000
26000
89000
77000
34000
61000
27000
72000
85000
84000
50000
31000

Situation
Relationship
Married
Married
Relationship
Single
Married
Single
Relationship
Divorced
Relationship
Single
Divorced
Relationship
Single
Divorced
Relationship
Single
Single
Single

Children

Result
0
1
0
0
0
3
3
1
3
0
2
0
2
0
3
1
3
2
0

0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

Question
Question
Question
Question
Question

1:
2:
3:
4:
5:

How
How
How
How
How

many
many
many
many
many

clients
clients
clients
clients
clients

are
are
are
are
are

married with one child


single or divorced
married with an income above 75,000
male, unmarried and without children
women with 1 or 2 children.

The answer for the question 1 is:


=IF(AND(E2="Married",F2=1),1,0)
The answer for the question 2 is:
=IF(OR(E2="Single",E2="Divorced"),1,0)
The answer for the question 3 is:
=IF(AND(E2="Married",D2>75000),1,0)
The answer for the question 4 is:
=IF(AND(C2="Man";E2="Single";F2=0);1;0)
The answer for the question 5 is:
=IF(AND(C2="Woman";OR(F2=1;F2=2));1;0)
The answer for the question 6 is:
=IF(AND(D2>=50000;F2>=2;OR(E2="Married";E2="relationship")
);1;0)

000
ren

The answer for the question 1 is:


=IF(AND(E2="Married",F2=1),1,0)
The answer for the question 2 is:
=IF(OR(E2="Single",E2="Divorced"),1,0)
The answer for the question 3 is:
=IF(OR(E2="Married",D2>75000),1,0)
The answer for the question 4 is:
=IF(AND(C2="Man";E2="Single";F2=0);1;0)
The answer for the question 5 is:
=IF(AND(C2="Woman";OR(F2=1;F2=2));1;0)
The answer for the question 6 is:
=IF(AND(D2>=50000;F2>=2;OR(E2="Married";E2="relationship"));1;0)

Alpha
Alphabet
CONCATENATE( text1, text2, ... text_n )
bet
Lovely Professional University
UPPER( text )
LOVELY PROFESSIONAL UNIVERSITY
LOWER( text )
lovely professional university
Alphabet goal

REPLACE( old_text, start, number_of_chars, new_text )


betabet goal
Alph1234et goal
Alpha

LEFT( text, [number_of_characters] )

0
1

EXACT( text1, text2 )

1
#VALUE!

FIND( substring, string, [start_position] )

12000.36
12000.4
12,000.36
52.13
6
6
6

alphabetalphabet

FIXED( number, [decimal_places], [no_commas] )

SEARCH( substring, string, [start_position] )

Alphacon g SUBSTITUTE( text, old_text, new_text, [nth_appearance]


alphaconalphabet
alphabetalphacon

alphabet

TRIM( text )
alphabet

ars, new_text )

ommas] )

[nth_appearance] )

2012
8
31

8/31/2012

31
4
16

DATE( year, month, day )

DAY( date_value )
Hour( serial_number )

8
0
30

MINUTE( serial_number )

30
2/28/2016 8:30

NOW()

37

SECOND( serial_number )

24

3
30
37

3:30 AM

2/28/2016
2

TIME( hour, minute, second )

TODAY()
MONTH( date_value )

r, month, day )

_value )

ial_number )

erial_number )

erial_number )

r, minute, second )

te_value )

year is leap year or not ?


Date
Leap Year
3/15/1998
0 False
9/20/2012
1
5/12/2013
0

OrderID
10247
10249
10250
10251
10252

Product
Apples
Oranges
Bananas
Pears
Grapes

Unit Price Quantity


14
12
9.8
10
34.8
5
18.6
9
42.3
40

18.6
10251
Grapes

In Microsoft Excel, we have a table of data in cells A2:D5.


we have tried to create a simple LOOKUP to find CB2 in the
data, but it always returns 0. What are we doing wrong?

reference ManufacturModel
CB2
CB10
CB19
CB20

Value
3A
Text1
Text2
Text3

reference ManufacturModel
CB10
CB19
CB2
CB20

Value
Text1
Text2
3A
Text3

3A

3A

3A

LOOKUP function returns a value


from a range (one row or one
column) or from an array
LOOKUP( value, lookup_range, [result_range] )

using Vlookup

VLOOKUP( value, table, index_number, [approximate_match] )

te_match] )

OrderID
10247
10249
10250
10251
10252

Product
Apples
Oranges
Bananas
Pears
Grapes

Unit Price Quantity


14
12
9.8
10
34.8
5
18.6
9
42.3
40

14
12
34.8

VLOOKUP( value, table, inde

The VLOOKUP function perform


the first column of atableand
theindex_numberposition.

Apples
Oranges
Bananas
Pears
Grapes

OrderID
10247
10249
10250
10251
10252
Product
Apples
Oranges Bananas Pears
Grapes
Unit Price
14
9.8
34.8
18.6
42.3
Apples

value, table, index_number, [approximate_match] )

KUP function performs a vertical lookup by searching for a value in


olumn of atableand returning the value in the same row in
_numberposition.

HLOOKUP function performs a horizontal lookup by searching for a value in the top
row of thetableand returning the value in the same column based on
theindex_number
HLOOKUP( value, table, index_number, [approximate_match] )

Student
Luc
Estelle
Laurent
Paul
La
Murielle
Thierry

Course 1
8
4
11
17
17
6
18

0
10
12
14
16
commision table
Volume
percentage
0
0%
10
5%
20
10%
25
15%
30
20%

Course 2 Course 3 Average


Result
15
9
10.67 Fill your formula here
15
16
11.67
6
8
8.33
16
3
12
18
10
15
5
13
8
19
15
17.33

Pass
Pass

Fail
Pass
Good
Very Good
Excellent

#N/A
#N/A
#N/A

Name
a
b
c
d

Car sales Commission


15
20
19
2

0
10
12
14
16

Fail
Pass
Good
Very Good
Excellent

ISO Code HU
Currency n Forint
ISO Code
PL
HU
SK
AT
DE
SI
FR
IT
HR
CH
CZ

Pass
Pass
Fail
Good
Very Good
Fail
Excellent

ommission

0.05
0.1
0.05
0

Country N
Poland
Hungary
Slovakia
Austria
Germany
Slovenia
France
Italia
Croatia
Switzerland
Czech Repu

Currency Parity
Zloty
0.24
Forint
0.0037
Euro
1
Euro
1
Euro
1
Euro
1
Euro
1
Euro
1
kuna
0.14
Franc Suiss
0.6612
Czech koru
0.039

year

Value
2000
2003
2004
2001
2000

criteria
1
2000
2
3
4
5

SUMIF( range, criteria, [sum_rang

0
15
6

Value

2
3

COUNTIF( range, criteria


3

RANK( number, array, [or


10.5
7.2
200
5.4
8.1

5
1

200
8.1
5
2.333452
110.3728

www.lpu.in
32
12
123
89
-12
y Value

COUNT( argument1, [argum


5
5
6

X value
5
10
15
20

LARGE( array, nth_positi


STDEV( number1, [number2

INTERCEPT( known_y_value
12
9
6
3

25
-9

UMIF( range, criteria, [sum_range] )

COUNTIF( range, criteria )


AVERAGE( number1, [number2], ... [number_n] )

RANK( number, array, [order] )

LARGE( array, nth_position )


STDEV( number1, [number2, ... number_n] )

COUNT( argument1, [argument2, ... argument_n] )

INTERCEPT( known_y_values, known_x_values )

OrderID
10247
10249
10250
10251
10252

Product
Apples
Oranges
Bananas
Pears
Grapes

Unit Price Quantity total cost


14
12
168
9.8
10
98
34.8
5
174
18.6
9
167.4
42.3
40
1692

INDEX( array, row_number

Bananas

Bananas
40

5
#N/A

lookup valuresult
Pears
2
pears
2
peaches
3
grapes
4
????
#N/A
strawberrie
#N/A
#N/A

MATCH( value, array, [ma

Fruit
apples
pears
peaches
grapes
lemon
peaches
kiwi

lookup valu
Pears
pears
peaches
grapes
????
strawberrie

find the missing values


invoice
amount
10023

100

10024

200

10028
10026
10027

300
400
500

invoice

Count
Found

Match

OK
OK
10025 Missing
#N/A
10027 OK
OK
10024

INDEX( array, row_number, [column_number] )


INDEX function returns either the value or the
reference to a value from a table or range. There
are 2 syntaxes for the INDEX function

MATCH function searches for a value in an array and


returns the relative position of that item.

MATCH( value, array, [match_type] )

result
2
1
1
1
#N/A
#N/A
#N/A

Vlookup
ok
#N/A
ok

Product
Apples
Oranges
Bananas
Pears
Grapes

Unit Price Quantity Cost


Total
sales tax
14
12
168
12.6
9.8
10
98
7.35
34.8
5
174
13.05
18.6
9
167.4
12.555
42.3
40
1692
126.9

$E$4
E$4
E4
$E$4
R4C5

0 $E$4
0
0
0
0

7.50%
840
490
870
837
8460

0
#VALUE!
0
0
0

There are two types of cell references:relativeandabsolute.


Relative and absolute references behave differently when copied and
filled to other cells. Relative referenceschangewhen a formula is
copied to another cell. Absolute references, on the other hand,
remainconstant, no matter where they are copied.
0
0
#VALUE!
0
0

There may be times when you do not want a cell reference to change when
Unlike relative references, absolute references do not change when copied o
You can use an absolute reference to keep a row and/or column constant.

ativeandabsolute.
ifferently when copied and
angewhen a formula is
s, on the other hand,
re copied.

ell reference to change when filling cells.


do not change when copied or filled.
w and/or column constant.

30
University

AND( condition1, [condition2], ... )


0
1
1
larger
equal

IF( condition, [value_if_true], [value_if_fals


12
1
0
0

662.79
54.1

1
5

663
662.8
50
-23.7
4
147

4.830685
155

OR( condition1, [condition2, ... condition_n]


NOT( logical_value )

ROUND( number, digits )

RANDBETWEEN( bottom, top )

RAND()*(b-a)+a

], ... )

e], [value_if_false] )

... condition_n] )

111
1011

7
11
B
003B
013

24
5
2

2
60

BIN2DEC( binary_number )
BIN2HEX( binary_number)
BIN2OCT( binary_number)
CONVERT( number, from_units, to_units )

Value

Measur
ement
Unit

Measur
ement
Type

"m"

Meter

Length/
Distance

"mi"

Mile

Length/
Distance

"Nmi"

Nautical
mile

Length/
Distance

"in"

Inch

Length/
Distance

"ft"

Foot

Length/
Distance

"yd"

Yard

Length/
Distance

"ang"

Angstro
m

Length/
Distance

"pica"

Pica

Length/
Distance

"g"

Gram

"sg"

Slug

"lbm"

Pound

Weight/
Mass
Weight/
Mass
Weight/
Mass

"u"

Atomic
unit

"ozm"

Ounce

"yr"
"day"
"hr"
"mn"

Year
Day
Hour
Minute

Weight/
Mass
Weight/
Mass
Time
Time
Time
Time

"sec"

Second

Time

"C" or
"cel"

Celsius

Tempera
ture

"F" or
"fah"

Fahrenh
eit

Tempera
ture

"K" or
"kel"

Kelvin

Tempera
ture

"tsp"

Teaspoo
n

Liquid
Volume

"tbs"

Tablespo
on

Liquid
Volume

"oz"

Fluid
ounce

Liquid
Volume

"cup"

Cup

Liquid
Volume

"pt" or
"us_pt"

US pint

Liquid
Volume

"uk_pt"

UK pint

Liquid
Volume

"qt"

Quart

Liquid
Volume

"gal"

Gallon

Liquid
Volume

"l" or "lt"

Liter

Liquid
Volume

"N"

Newton

Force

"dyn" or
"dy"

Dyne

Force

"lbf"

Pound
Force

Force

"Pa" or
"p"

Pascal

Pressure

"atm"

Atmosph
ere

Pressure

"mmHg"

mm of
Mercury

Pressure

"HP" or
"h"
"W" or
"w"

Horsepo
wer

Power

Watt

Power

"J"

Joule

Energy

"e"

Erg

Energy

"c"

Thermod
ynamic
calorie

Energy

"cal"

IT
calorie

Energy

"eV" or
"ev"

Electron
volt

Energy

"HPh" or
"hh"

Horsepo
wer-hour

Energy

"Wh" or
"wh"

Watthour

Energy

"flb"

Footpound

Energy

"BTU" or
"btu"

BTU

"T"

Tesla

"ga"

Gauss

Energy
Magnetis
m
Magnetis
m

ORDER
1
2
3
4
5
6
7
8
Sum of AMOUNT
PRODUCT
A
B
H
Grand Total

PRODUCATEGORY AMOUNT
A
11
200
B
22
300
C
33
400
D
44
500
E
55
600
F
66
700
G
77
800
H
88
900

Total
200
300
900
1400

COUNTRY
AA
AA
AA
DD
EE
FF
GG
HH

COUNTRY
Sum of AMOUNT
PRODUCT
A
B
C
Grand Total

(All)

Total
200
300
400
900

Sum of AMOUNT
PRODUCT
A
B
C
D
E
F
G
H
Grand Total

Total
200
300
400
500
600
700
800
900
4400

You might also like