You are on page 1of 29

Learning outcomes:

knowledge and skills


Learning outcomes:
knowledge and skills
Information functions
Lookup functions
VLOOKUP
HLOOKUP
MATCH
Case study
Information functions

Function Descriptions

ISBLANK ISBLANK(value) returns TRUE if the value


is blank, otherwise returns FALSE
ISNUMBER(value) returns TRUE if the
ISNUMBER value is a number, otherwise returns
FALSE
ISTEXT ISTEXT(value) returns TRUE if the value is
text, otherwise returns FALSE

ISODD ISODD(number) returns TRUE if the


number is odd, otherwise returns FALSE

ISEVEN ISEVEN(number) returns TRUE if the


number is even, otherwise returns FALSE
ISERROR ISERROR(value) returns TRUE if the value
is any error value

Examples:
Ex 1: Apply a conditional formatting (red font) to the names of the e
that do not have the date of hiring filled-in
or/and the information typed in the department field is not text.
Ex 2: Calculate the Tax on salary only if the gross salary is of type nu
otherwise display the text "error".
Employee Employee Name
ID

101Badea Ruxandra
102Cornea Ana Simona
103Lolev Paul
104Manea Lucia Maria
105Mondea Valentin
106Popa Alexandru
107Popescu Monica
108Tataru Iulia Livia
109Vasilescu Camelia
Back
ation functions

Example
The cell to which
the function is Function applied Result
applied

= ISBLANK(C7) 1

350 =ISNUMBER(C8) 1

350 =ISTEXT(C9) 0

350 =ISODD(C11) 0

350 =ISEVEN(C12) 1

#N/A =ISERROR(C15) 1

to the names of the employees

ent field is not text.


oss salary is of type number,
Tax on
Date of hiring Gross salary Department salary
(16%)
10/6/2014 1580IT
3/2/2005 2940Accounting
10/10/1997 980Marketing
10/15/2015 2700Financial
9/18/2002 2500Marketing
11/14/1994 3230Legal Office
4/1/2003 2000Financial
5/16/1992 1100Marketing
10/1/2010 2780Accounting
LOOKUP FUNCTIONS
Searches for a value in the f
VLOOKUP returns a matching value in

=VLOOKUP(lookup_value; table_array; col_index_num; [range_


lookup_value - the value to search in the first column of
table_array - the table in which the function will search
value. The lookup_value should be contained in the first
col_index_num - the column number in the table_array
value must be returned
[range_lookup] - optional argument with the values:
* TRUE (default) - an exact or approximate match is retu
If an exact match is not found, the matching value of the next
is returned.
* FALSE - only an exact match is returned.
If there are two or more values in the first column of table_arr
value found is used. If an exact match is not found, the error v

Invoice No. AC 0028


Invoice Date 1/23/2018

Product
Product Name Quantity
ID
1005 15 pcs.
1011 20 pcs.
1018 30 pcs.
1006 10 pcs.
1029 25 pcs.

Product Product Name Price


ID
1001Product1 36.25 lei
1002Product2 19.00 lei
1003Product3 37.50 lei
1004Product4 75.00 lei
1005Product5 17.50 lei
1006Product6 22.50 lei
1007Product7 55.00 lei
1008Product8 15.00 lei
1009Product9 41.00 lei
1010Product10 33.75 lei
1011Product11 12.50 lei
1012Product12 16.00 lei
1013Product13 29.25 lei
1014Product14 30.00 lei
1015Product15 55.00 lei
UNCTIONS Back
ches for a value in the first column of table and
rns a matching value in the same row.

; col_index_num; [range_lookup])
arch in the first column of the table
h the function will search for the lookup_value and its matching
d be contained in the first column of this table.
umber in the table_array argument from which the matching

ument with the values:


approximate match is returned.
e matching value of the next largest value that is less than lookup_value

s returned.
the first column of table_array that match the lookup_value, the first
atch is not found, the error value #N/A is returned.

Product Name
Price Value (with TRUE
argument)
Product Name Product Name
(with FALSE (with error test -
argument) IFERROR)
Get the Euro Exchange Rate for quotation dates in E6 and E7.
Note: On weekend days, the Friday exchange rate will be considere

Date of quotation Exchange rate

Monday 09/10/2017 4.1420 lei/Euro


Tuesday 10/10/2017 4.1430 lei/Euro
Wednesday 11/10/2017 4.1480 lei/Euro
Thursday 12/10/2017 4.1315 lei/Euro
Friday 13/10/2017 4.1335 lei/Euro Date of quotati
Monday 16/10/2017 4.1390 lei/Euro weekend d
Tuesday 17/10/2017 4.1500 lei/Euro
Wednesday 18/10/2017 4.1750 lei/Euro
Thursday 19/10/2017 4.1800 lei/Euro
Friday 20/10/2017 4.2005 lei/Euro
Monday 23/10/2017 4.2010 lei/Euro
Tuesday 24/10/2017 4.1980 lei/Euro
Wednesday 25/10/2017 4.1780 lei/Euro
Thursday 26/10/2017 4.1600 lei/Euro
Friday 27/10/2017 4.2310 lei/Euro
Monday 30/10/2017 4.2320 lei/Euro
Tuesday 31/10/2017 4.2330 lei/Euro
Back
tes in E6 and E7.
rate will be considered.

Date of Exchange rate


quotation
###
Sat 28/10/2017

Date of quotation is a
Date of quotation is a working day
weekend day
ation is a
day
For sales in January 2017, a different discount is offered for each prod
Get the discount and calculate the price with discount.

Product Name Date of sale Quantity Price

Fusta 20-Nov-2016 50 75 lei


Rochie seara 12-Dec-2016 35 125 lei
Jeans 05-Dec-2016 40 100 lei
Tricou 09-Dec-2016 100 30 lei
Palton 08-Dec-2016 30 220 lei
Tricou 05-Jan-2017 80 60 lei
Pantofi 06-Jan-2017 50 250 lei
Rochie seara 09-Jan-2017 65 500 lei
Camasa 11-Nov-2016 60 80 lei
Palton 13-Jan-2017 55 600 lei
Jeans 15-Jan-2017 90 130 lei
Fusta 20-Jan-2017 50 75 lei
Camasa 12-Jan-2017 35 125 lei
Jeans 05-Nov-2016 40 100 lei
Tricou 09-Jan-2017 100 30 lei
Back
offered for each product.
scount.

Discount Price with Product Discount


(%) discount Name January 2016

Fusta 10%
Jeans 30%
Tricou 20%
Pantofi 12%
Rochie seara 25%
Camasa 10%
Palton 15%
HLOOKUP Searches for a value in the top row o
matching value in the same column.

=HLOOKUP(lookup_value; table_array; row_index_num; [range_l


lookup_value - the value to search in the first row of the
table_array - the table in which the function will search
and its matching value. The lookup_value should be con
of this table.
row_index_num - the row number in the table_array ar
the matching value must be returned
[range_lookup] - optional argument with the values:
* TRUE (default) - an exact or approximate match is retu

If an exact match is not found, the matching value of the next


than lookup_value is returned.
* FALSE - only an exact match is returned.
If there are two or more values in the first column of table_ar
lookup_value, the first value found is used. If an exact match i
value #N/A is returned.

Client Name Client Name Client Name


Client ID (with TRUE (with FALSE (with error test -
argument) argument) IFERROR)

102
104
200
101

Client ID 101 102 103


Client VENUS SRL BETA CONSTRUCT SRL
Name
Locality Iaşi Bucureşti Braşov
Back
n the top row of table and returns a
same column.

x_num; [range_lookup])
e first row of the table
ction will search for the lookup_value
ue should be contained in the first row

e table_array argument from which

h the values:
ate match is returned.

value of the next largest value that is less

d.
olumn of table_array that match the
f an exact match is not found, the error
104 105
BUCUR SA MINERVA
Timişoara Ploiesti
MATCH Searches for a value in a range of
relative position.

=MATCH(lookup_value, lookup_array, [match_type])


lookup_value - The value to match in lookup_array
lookup_array - the range of cells to be searched
[match_type]- specifies a number with the following me
1 (default) - finds the largest value that is less than or e
0 - finds the first value that is exactly equal to lookup_
-1 - finds the smallest value that is greater than or equ

Searching the row position of a value


104
120

Searching the column position of a value


Insured
name

Insured ID Insured name Locality

101Alexandru G. Ploiesti
102Calapod I Bucuresti
103Dinu R. Bucuresti
104Enescu F. Ploiesti
105Florea L. Bucuresti
106Ganea I. Brasov
107Gheorghe M. Brasov
108Manea S. Brasov
109Mihalache B. Campina
110Neagu B. Brasov
111Popa Al. Ploiesti
Back
ches for a value in a range of cells and returns its
ve position.

ay, [match_type])
e to match in lookup_array
of cells to be searched
a number with the following meaning:
argest value that is less than or equal to lookup_value
that is exactly equal to lookup_value
alue that is greater than or equal to lookup_value

Insurance
Insurance date policy no.
16-April-2009 17889
20-January-2012 13445
4-November-2008 12667
22-October-2010 17665
20-June-2009 18776
15-February-2011 12998
23-January-2008 16443
19-June-2009 16554
11-March-2012 17334
16-July-2009 19886
4-November-2008 13772
Calculate the Base Salary, considering the employee's position and
Note: if the calculated length of service is not found in the first line
the salary corresponding to the previous tranche will be retrie

Employee
Employee Name Department Position
POPESCU Viorel Dan Legal Office Legal adviser
MIHAI Carmen IT Web designer
POPA Florin Marketing Advertising age
ALBU Maria Marketing Data analyst
MANEA Andreea IT Programmer
VOICU Alexandra Accounting Accountant

< 5 years 5-10 years


Length of service →
Employee 0 years 5 years
position

Data analyst 1,000 € 1,200 €
Web designer 1,050 € 1,180 €
Programmer 1,120 € 1,400 €
Legal adviser 1,100 € 1,180 €
Accountant 1,000 € 1,070 €
Advertising agent 1,034 € 1,100 €
Back
yee's position and his length of service (see range A30:G36).
nd in the first line of the lookup table (B30:G30)
anche will be retrieved.

Length of
Date of hiring Base Salary
service
Apr-2007 10 years
Sep-1980 37 years
Jun-1999 18 years
Feb-1991 26 years
Apr-2003 14 years
Nov-1993 24 years

10-15 years 15-20 years 20-25 years >=25 years

10 years 15 years 20 years 25 years

1,900 € 2,350 € 2,670 € 2,900 €


2,300 € 2,550 € 2,710 € 2,800 €
2,450 € 2,600 € 2,790 € 3,200 €
2,500 € 2,670 € 3,030 € 3,350 €
2,080 € 2,200 € 2,500 € 2,900 €
1,980 € 2,250 € 2,610 € 3,000 €

You might also like