Anda di halaman 1dari 23

Learning outcomes:

knowledge and skills


Learning outcomes:
knowledge and skills
Logical functions
Date&Time functions
STATISTICAL FUNCTIONS
Product 
Quality Date of sale Quantity
Name
Product1 1 1/16/2016 300
Product2 2 1/18/2016 250
Product3 1 1/21/2016 300
Product4 1 1/25/2016 200
Product5 2 2/8/2016 180
Product6 2 2/15/2016 156

=MAX(number1;[number2];…)
Maximum value of sold products.
=MIN(number1;[number2];…)
Minimum value of sold products.
=AVERAGE(number1;[number2];…)
Average value of sold products.
=AVERAGEIF(range; "criteria"; [average_range])

Average value of sold products of 1st quality.


=AVERAGEIFS(average_range; criteria_range1; "criteria1"[;criteria_r
Average discount of 1st quality products sold in
January 2016.
=COUNT(value1;[value2];…)
Total number of sold products.

=COUNTA(value1;[value2];…)
Total number of sold products.

=COUNTIF(range; "criteria")

Total number of sold products of 1st quality.


=COUNTIFS(criteria_range1; "criteria1"[;criteria_range2; "criteria2"]

Total number of sold products, 1st quality,


with values greater than 10000.

=COUNTBLANK(range)
Product 
Quality Date of sale
Name
Product1 1 1/16/2016
2 1/18/2016
Product3 1 1/21/2016
Product4 1 1/25/2016
Product5 2 2/8/2016
Product6 2 2/15/2016

=MODE.MULT(number1;[number2];…)
Display the month with most sales (the most
frequently occurring month).

=FREQUENCY(data_array; bins_array)
Calculate the distribution of product values on the
following intervals:
Intervals
0-5.000
5.000-10.000
10.000-15.000

=SMALL(array, position_in_array)

=LARGE(array, position_in_array)

100 100 =SMALL(A58:A66;1)


200 400 =SMALL(A58:A66;4)
300
400
500 900 =LARGE(A58:A66;1)
600 700 =LARGE(A58:A66;3)
700
800
900

Ex 1. Apply a conditional formatting (blue font) to the product names


with values greater than the average value of products in the 2nd categ

Ex 2. Apply a conditional formatting (red font) to the duplicate invoice


issued in 2016.

Invoice no. Invoice date

14536 2/1/2015
45673 5/5/2015
57494 2/2/2016
79540 12/23/2015
45673 5/5/2015
69865 2/16/2016
45653 12/7/2015
57494 2/2/2016
69765 2/11/2016
UNCTIONS
Discount 
Price Value
2%
56 16800 336
31 7750 155
25 7500 150
56 11200 224
31 5580 112
25 3900 78

"criteria1"[;criteria_range2; "criteria2"] …)
a_range2; "criteria2"] …)
Highest intervals
5000
10000
15000

MALL(A58:A66;1)
MALL(A58:A66;4)

ARGE(A58:A66;1)
ARGE(A58:A66;3)
o the product names
oducts in the 2nd category.

o the duplicate invoice numbers,


Logical functions

Company name Insurance type Insured name Insurance date

ASTRA property insurance Ionescu R. 1-October-2017


ALFA auto insurance Popa Al. 2-October-2017
UNITA property insurance Neagu B. 3-October-2017
MERCUR life insurance Popescu S. 4-October-2017
ASTRA auto insurance Voicu D. 5-October-2017
MERCUR auto insurance Radu E. 6-October-2017
ASTRA life insurance Stanciu C. 7-October-2017
ALFA property insurance Ganea I. 8-October-2017
BCR Asigurari life insurance Radulescu M 9-October-2017
Alliantz Tiriac auto insurance Puauto insurancere 10-October-2017
BCR Asigurari auto insurance Radulescu M 11-October-2017
OMNIASIG property insurance Tiganelea P. 12-October-2017
Alliantz Tiriac life insurance Mihalache B. 13-October-2017
OMNIASIG auto insurance Calapod I 14-October-2017
ASTRA auto insurance Enescu F. 15-October-2017
UNITA property insurance Turcu V. 16-October-2017
MERCUR auto insurance Gheorghe M. 17-October-2017
ASTRA property insurance Savu N. 18-October-2017
UNITA auto insurance Florea L. 19-October-2017
ALFA auto insurance Zecheru T. 20-October-2017
MERCUR property insurance Voinea F. 21-October-2017
ALFA auto insurance Dinu R. 22-October-2017
UNITA auto insurance Manea S. 23-October-2017
ASTRA life insurance Panait I. 24-October-2017
MERCUR auto insurance Alexandru G. 25-October-2017

=IF(logical_test, value_if_true, value_if_false)


Ex1:
Establish the Insurance category based on the following rules:
* for life insurances: "life" category
* for all other types: "non-life" category

Ex2:
Calculate the Insurance agents' fees, knowing that:
* for life insurances - the fee is 5% of the insured amount
* for non-life insurances - the fee is 10% of the insured amount

=AND(condition1, condition2...)

=OR(condition1, condition2...)
Ex3:
Recalculate the Insurance agents' fees, based on the following rules:
* for ASTRA company - life insurances, the fee is 10% of the insured amou
* for UNITA company - property insurance, the fee is 7% of the insured am
* for all other companies, regardless of insurance type, the fee is 3% of th

Ex4:
Recalculate the Insurance agents' fees, based on the following rules:
* for ASTRA and ALFA companies - the fee is 5% of the insured amount
* for UNITA and MERCUR companies - the fee is 6% of the insured amoun
* for all other companies - the fee is 7% of the insured amount
= NOT(logical)

=IFERROR(value, value_if_error)
Euro exchange ra

Year Expenses (RON) Incomes (RON) Profit (RON)

2005 300,000 500,000 200,000


2006 450,000 700,000 250,000
2007 600,000 650,000 50,000
2008 500,000 800,000 300,000
2009 750,000 900,000 150,000
2010 875,000 950,000 75,000
ons Back
Ex1: Ex2: Ex3:
Insured amount Insurance Insurance Insurance Insurance
(RON) agent category agent's fee agent's fee
36 500 Barbu I.
780 Cristea M.
2 500 David P.
54 600 Oancea F.
1 184 Barbu I.
3 200 Cristea M.
250 000 David P.
12 700 Barbu I.
145 000 Albu C.
65 000 Vintila M.
50 000 Banica A.
85 000 Pletea M.
65 000 Vintila M.
15 200 Buzatu A.
2 100 David P.
550 Cristea M.
890 Oancea F.
210 000 Barbu I.
1 200 David P.
3 200 Cristea M.
7 200 Oancea F.
25 000 Barbu I.
82 000 Cristea M.
134 000 David P.
4 000 Oancea F.
amount

lowing rules:
f the insured amount
% of the insured amount
the fee is 3% of the insured amount

lowing rules:
nsured amount
he insured amount
mount
Euro exchange rate 4.54

Profit
Profit (Euro) (Euro)
(with
error test)

44,053 44,053
#DIV/0! eroare
#DIV/0! eroare
#DIV/0! eroare
#DIV/0! eroare
#DIV/0! eroare
Ex4:
Insurance
agent's fee
Date & Time functions

=NOW()

1/23/2018 10:19

= TODAY()

1/23/2018

=DATE(year;month;day)

3/20/2014

= YEAR(date)
2018

= MONTH(date)
1

= DAY (date)
23

=WEEKDAY(date [;return_type])
2
This is day no. 2 of the week

=EDATE(start_date;+/-months)

Invoice date 10/5/2017


The date, 2 months before the
invoice date
The date, 3 months after the
invoice date

=EOMONTH(start_date;+/-months)

4/30/2018

Ex 1: Apply a conditional formatting (green font) to the last 10

Invoice date
9/8/2017
9/14/2017
9/23/2017
9/27/2017

Ex 2: Apply a conditional formatting to the Invoice Date,


to highlight with a red font the invoices issued in weekend da
Ex 3: Apply a conditional formatting to the Invoice No.,
to highlight with a blue font the invoices issued in the last mo

Client Name Invoice No.


Client1 456,853
Client5 456,854
Client1 456,856
Client2 456,858
Client6 456,859
Client5 456,855
Client2 456,861
Client3 456,852
Client7 456,857
Client4 456,860
Client4 456,862
Client6 456,864
Client5 456,865
Client3 456,866
Back
t) to the last 10 days of the previous month.

oice Date,
n weekend days.
oice No.,
in the last month.

Invoice Date Invoice Value


Wed 2 Aug 17 12,520 lei
Tue 8 Aug 17 15,600 lei
Thu 10 Aug 17 8,360 lei
Sat 12 Aug 17 13,000 lei
Tue 22 Aug 17 38,060 lei
Fri 25 Aug 17 46,766 lei
Sat 2 Sep 17 3,900 lei
Mon 4 Sep 17 14,005 lei
Wed 6 Sep 17 87,056 lei
Sun 10 Sep 17 19,500 lei
Mon 2 Oct 17 12,505 lei
Thu 5 Oct 17 8,706 lei
Wed 11 Oct 17 45,000 lei
Fri 20 Oct 17 2,284 lei

Anda mungkin juga menyukai