You are on page 1of 32

Assignment-1

Sample 1 Sample 2 Sample 1+Sample 2 Sample 1-Sample 2 Sample 1*Sample 2


79 19 98 60 1501
69 29 98 40 2001
13 99 112 -86 1287
28 87 115 -59 2436
47 84 131 -37 3948
32 54 86 -22 1728
93 38 131 55 3534
81 24 105 57 1944
87 27 114 60 2349
66 31 97 35 2046

Formulas A11+B11 A11-B11 A11*B11


Sample 1/Sample 2 Sample 1 ^ 2 SampleSample
2 ^ 3 1^2 + Sample
Sample
2^3 2 + 3000
4.1578947368 6241 6859 13100 3019
2.3793103448 4761 24389 29150 3029
0.1313131313 169 970299 970468 3099
0.3218390805 784 658503 659287 3087
0.5595238095 2209 592704 594913 3084
0.5925925926 1024 157464 158488 3054
2.4473684211 8649 54872 63521 3038
3.375 6561 13824 20385 3024
3.2222222222 7569 19683 27252 3027
2.1290322581 4356 29791 34147 3031

A11/B11 A11^2 B11^3 G11+H11 B11+3000


Sample 1 Sample 2 Sample 1+Sample 2 Sample 1-Sample 2 Sample 1*Sample 2
1 11 12 -10 11
2 12 14 -10 24
3 13 16 -10 39
4 14 18 -10 56
5 15 20 -10 75
6 16 22 -10 96
7 17 24 -10 119
8 18 26 -10 144
9 19 28 -10 171
10 20 30 -10 200
11 21 32 -10 231
12 22 34 -10 264
13 23 36 -10 299
14 24 38 -10 336
15 25 40 -10 375
16 26 42 -10 416
17 27 44 -10 459
18 28 46 -10 504
19 29 48 -10 551
20 30 50 -10 600

Formulas A21+B21 A21-B21 A21*B21


Sample 1/Sample2 Sample 1^2 Sample 2^3 Sample 1^2 + Sample 2^3 Sample 2+3000
0.0909090909 1 1331 1332 3011
0.1666666667 4 1728 1732 3012
0.2307692308 9 2197 2206 3013
0.2857142857 16 2744 2760 3014
0.3333333333 25 3375 3400 3015
0.375 36 4096 4132 3016
0.4117647059 49 4913 4962 3017
0.4444444444 64 5832 5896 3018
0.4736842105 81 6859 6940 3019
0.5 100 8000 8100 3020
0.5238095238 121 9261 9382 3021
0.5454545455 144 10648 10792 3022
0.5652173913 169 12167 12336 3023
0.5833333333 196 13824 14020 3024
0.6 225 15625 15850 3025
0.6153846154 256 17576 17832 3026
0.6296296296 289 19683 19972 3027
0.6428571429 324 21952 22276 3028
0.6551724138 361 24389 24750 3029
0.6666666667 400 27000 27400 3030

A21/B21 A21^2 B21^3 G21+H21 B21+3000


Use of Dollar Sign

No.1 Employee Salary Bonus Net Salary No.2


24700 1500 26200
31200 32700
48376 49876
28000 29500
39650 41150

Formula C7+$D$5

No.3 Employee Salary Bonus Total


24700 0.098 27120.6
18000 19764
45000 49410
33100 36343.8
50000 54900

Formula E18+E18*$F$17
Sample Power Sample^Power
65 2 4225
23 529
25 625
56 3136
59 3481

Formula I7+$J$5
Sample Data Sum ( ) Min ( ) Max ( ) Count ( ) CountA ( )

21 598 9 92 14 14
37
81
92
71
28
14
50
81
27
38
9
14
35

Formula SUM(B7:B20) MIN(B7:B20) MAX(B7:B20) COUNT(B7:B20) COUNTA(B7:B20)


Assignment-2
SUMIF & COUNTIF

Average ( ) Sum IF ( >=50 ) Sum IF ( <=50 ) Count IF ( >50 )

42.7142857143 375 273 4

AVERAGE(B7:B20) SUMIF(A7:A20,">=50") SUMIF(A7:A20,">=50") COUNIF(A7:A20,">50")


Count IF ( <50 )

COUNTIF(A7:A20,"<50")
Nested IF

Mark Sheet
Name Computer Logic Law English Maths Obtained Marks Total Marks
M.Sumair 87 77 93 89 64 410 500
Attaullah 84 66 86 93 78 407 500
Sagar 77 85 75 73 84 394 500
Akram 93 63 82 66 61 365 500
Shaheen 76 89 60 34 77 336 500

Formula SUM(D12:H12)
Mark Sheet
Percentage Remarks Grades
82.00% pass A
81.40% pass A
78.80% pass B
73.00% pass C
67.20% fail fail

I12/j8 IF(k8>=68%,"pass","fail") IF(K7>=80%,"A",IF(K7>=75%,"B",IF(K7>=68%,"C","fail")))


Logical IF

Employee Salary Tax for >25000 Salary Tax for <25000 Salary
45000 14.80% 6.90%
15000
26700
14800
31000

Formula
Net Salary
38340
13965
22748.4
13778.8
26412

C5-IF(C5>25000,C5*D5,C5*E5)
Emp Year Salary
1 2003 29900
2 2005 31000
3 2004 48000
4 2007 38000
5 2001 15000
6 2003 51000
7 2008 36400
8 2005 15000

Formula for TAX 4.1%

Formula for Allowance 2.1%

Formula for Allowance 8.1%

Formula for TAX 7.1%

Formula for Allowance 6.7%


Assignment-3
AND & OR Condition

Tax 4.1% Allowance 2.1%


No Tax No Allowance
No Tax No Allowance
46032 No Allowance
36442 No Allowance
No Tax 15315
48909 No Allowance
34907.6 No Allowance
No Tax 15315

IF(C5>35000,C5-(C5*0.041),"No tax")

IF(C5<25000,C5+(C5*0.021),"No Allowance")

IF(AND(B5>2004,B5<=2007),C5+(C5*0..81),"No Allowance")

IF(OR(C5>=35000,C5<=60000),C5-(C5*0.071),"No Tax")

IF(OR(B5=2003,B5=2007,B5=2005),C5+(C5*0.067),"No Allowance")
Allowance 8.1% Tax 7.1% Allowance 6.7%
No Allowance No Tax 31903.3
33511 No Tax 33077
51888 44592 No Allowance
41078 35302 40546
No Allowance No Tax No Allowance
No Allowance 47379 54417
No Allowance 33815.6 No Allowance
16215 No Tax 16005
Suzuki Cars
Price Down Payment % Down Payment
Mehran 595000 20% 119000
Mehran Vxr 652000 30% 195600
Cultus 1005000 40% 402000
Down PMT(OR Conditon Down PMT(AND Condition)
119000 119000
195600 195600
402000 402000
Sample Mean Median Mode Mean by Hand

22 48 49 18 48
18
78
64
56
42
72
38
18
72

Formula Average(A5:A14) Median(A5:A14) MODE(A5:A14) SUM(A5:A14)/COUNT(A5:A14)


Median by Hand Mode by Hand

49 Its Critical

(A9+A10)/2
Assignment-4

Vlookup Exact text

Employee Salary Formula function


1 25000 0.05 Table Array
2 26000 #N/A Salary
3 31220 #N/A 99000
4 69532 #N/A 18000
5 99000 0.05 25000
6 18000 0.05 44000
7 25000 0.05
8 45645 #N/A
9 44000 0.05
10 26355 #N/A
11 14660 #N/A Formula
12 45000 #N/A
13 99000 0.05
14 25000 0.05
15 18599 #N/A
16 89154 #N/A
17 18000 0.05
18 15496 #N/A
19 54895 #N/A
20 44000 0.05
Table Array
Bonus
5%
5%
5%
5%

VLOOKUP(F4,$J$6,$K$9,2,0)
Vloookup Approximate text

Marks Grades
55 F Table Array
69 F Marks Grades
25 #N/A 50 F
36 #N/A 70 C
78 C 81 B
98 A 91 A
91 A
93 A
65 F Formula VLOOKUP(D5,$H$7:$I$10,2,1)
75 C
84 B
P(D5,$H$7:$I$10,2,1)
Toyota Car Survey

Colour 2001 2002 2003 2004 2005


Blue 59 54 53 62 64
Red 34 33 38 41 48
White 88 92 82 88 90
Golden 40 50 62 72 78
Yellow 12 13 14 10 40
Grey 70 75 80 85 86
Green 8 7 6 0 0

Graphical Representation
100

90

80

70

60

50

40

30

20

10

0
2001 2002 2003 2004 2005 2006
2006
68
45
93
70
10
87
0

Row 4
Row 5
Row 6
Row 7
Row 8
Row 9
Row 10

2005 2006
FV(Future Value)
Payment Rate Year Results
20000 10% 12 62768.56753442
5000 8% 10 10794.624986364

Formula B4*(1+C4)^D4

PV(Present Value)
Payment Rate Year Results
50000 10% 12 15931.540885518
60000 11% 10 21131.068726468

Formula B11/(1+C11)^D11
Remarks
Yes you can buy monitor
No you can't

IF(E4>50000,"Yes you can buy monitor","No you can't")

Remarks
No you Can't buy TV
Yes you can buy TV

IF(E11>=16000,"Yes you can buy TV","No you can't buy TV")


DATA VALIDATION

List of Fruits Price Quantity Total Revenue Cost of Fruit


WATERMELON 200 1 200 70

Formula of Price IF(C5="MANGO",100,IF(C5='APPLE',80,IF(C5='BANANA',20,IF(C5='WATER

Formula of Total Revenue PRODUCT(D5,E5)

Formula of Cost of Fruit IF(C5='BANANA',10,IF(C5='APPLE',30,IF(C5='ORANGE',30,IF(C5='WATERM

Formula of Profit (F5-G5)


Profit Fruits Quantity Price Cost
130
MANGO 1 100 20
ORANGE 1 90 30
BANANA 1 20 10
WATERMELLON 1 200 70
APPLE 1 80 30

BANANA',20,IF(C5='WATERMELLON',200,IF(C5='ORANGE',90)))))

RANGE',30,IF(C5='WATERMELLON',70,IF(C5='MANGO'20)))))
Data Product(C4,17)fact(C4) abs(C4) floor(C4) ceiling(C4)
5 85 120 5 5 5
7 119 5040 7 7 7
8 136 40320 8 8 8
4 68 24 4 4 4
7 119 5040 7 7 7
3 51 6 3 3 3
57 969 4.05E+76 57 57 57
2 34 2 2 2 2
16 272 2.09E+13 16 16 16
5.78 98.26 120 5.78 5 6
2.6 44.2 2 2.6 2 3
26.89 457.13 4.03E+26 26.89 26 27
34.7 589.9 2.95E+38 34.7 34 35
3 51 6 3 3 3
36 612 3.72E+41 36 36 36
7 119 5040 7 7 7
8 136 40320 8 8 8
sqrt(C4)
2.236068
2.645751
2.828427
2
2.645751
1.732051
7.549834
1.414214
4
2.404163
1.612452
5.185557
5.890671
1.732051
6
2.645751
2.828427

You might also like