Template 2 Solution
Template 2 Solution
Template 2 Solution
Syntax
=IF(Condition,ActionIfTrue,ActionIfFalse)
The Condition is usually a test of two cells, such as A1=A2.
The ActionIfTrue and ActionIfFalse can be numbers, text or calculations.
Formatting
No special formatting is required.
Example 1
The following table shows the Sales figures and Targets for sales reps.
Each has their own target which they must reach.
The =IF() function is used to compare the Sales with the Target.
If the Sales are greater than or equal to the Target the result of Achieved is shown.
If the Sales do not reach the target the result of Not Achieved is shown.
Note that the text used in the =IF() function needs to be placed in double quotes "Achieved".
Example 2
The following table is similar to that in Example 1.
This time the Commission to be paid to the sales rep is calculated.
If the Sales are greater than or equal to the Target, the Commission is 10% of Sales.
If the Sales do not reach Target, the Commission is only 5% of Sales.
FOR HOMEWORK
Special Order
Product Offer Value Discount Total
Wood Yes £ 2,000
Glass No £ 2,000
Cement Yes £ 500
Turf Yes £ 3,000
Years
Fuel Type
of Number
Policy Vehicle Petro
Age Driving of Gender Married Losses
Number Age Diesel
Experienc Vehicles
etc.
e
150023 24 5 1M Married 11 P 203
152720 31 10 1F Single 6 P 402
174207 56 37 1M Married 0 D 553
139895 52 31 1F Married 15 P 292
174407 20 3 1M Single 15 P 247
170545 29 8 1M Married 9 P 385
123164 36 19 1F Single 0 P 462
147118 67 49 1F Married 15 P 169
119842 69 48 1M Single 5 P 70
192628 16 0 1F Single 14 P 243
154593 19 1 1M Single 12 D 764
182495 29 8 1F Single 14 P 407
173214 20 1 1F Married 13 P 162
124315 67 49 1M Married 7 P 243
189976 46 27 1M Married 7 P 359
109823 57 40 1M Married 15 P 315
140529 65 48 1M Single 11 P 307
108345 20 1 1M Single 15 D 773
197526 67 49 1M Single 3 D 593
164235 62 45 1M Married 0 P 275
112321 44 27 1F Single 10 P 473
140896 17 0 1M Single 15 D 877
136526 29 10 1F Single 0 D 825
177965 66 49 1F Single 6 P 273
154647 22 3 1F Single 11 P 221
127564 33 16 1M Single 13 P 169
180980 69 48 1F Married 0 P 98
173004 39 22 1M Married 3 D 680
168613 41 22 1F Married 13 P 210
102189 20 2 1F Married 8 P 354
190883 68 49 1F Married 9 P 156
162323 31 12 1M Married 4 D 671
124254 30 13 1M Single 1 P 447
168484 64 47 1M Married 5 P 109
184955 68 47 1F Married 7 P 120
188699 49 30 1M Single 10 P 455
152298 23 4 1M Single 10 D 846
137739 50 32 1M Single 13 P 274
102090 39 18 1F Single 3 D 791
164014 35 14 1F Single 6 P 355
140277 38 20 1M Married 1 D 523
183688 66 47 1M Single 0 P 347
189679 58 39 1F Single 2 P 382
139993 25 6 1M Single 12 D 748
101061 45 26 1M Married 9 P 391
163029 48 29 1M Married 12 P 330
196673 18 1 1M Single 7 D 905
154414 40 19 1F Single 9 P 387
152345 17 0 1M Married 11 P 482
159755 32 12 1M Married 15 P 178
196090 25 6 1M Married 9 D 597
124743 56 36 1M Single 9 P 449
160933 67 47 1F Married 4 P 219
170212 60 41 1F Married 8 P 228
174318 60 41 1F Single 2 D 720
182975 16 0 1M Single 8 D 951
127853 42 21 1M Single 11 P 369
101368 20 1 1F Married 14 P 191
168719 40 19 1M Single 8 D 503
131825 16 0 1M Married 15 P 265
198279 70 51 1M Single 7 P 342
118353 20 3 1F Married 15 P 205
164749 28 9 1M Single 5 D 707
180133 28 10 1F Single 3 D 865
174077 20 2 1F Married 9 P 435
155060 22 3 1M Single 4 D 1096
150870 20 2 1M Married 12 P 373
180138 64 47 1M Married 11 P 48
185934 44 25 1F Single 13 P 447
153908 17 0 1M Single 12 D 665
169358 22 4 1M Married 14 P 317
153822 61 40 1M Single 5 P 389
140129 22 4 1F Single 13 P 406
122434 60 42 1F Single 12 P 46
149010 17 0 1M Married 14 P 355
151476 17 0 1F Single 11 P 297
106521 63 43 1F Single 4 P 217
168963 41 20 1M Married 6 P 376
115414 65 48 1M Single 15 P 26
164992 26 7 1F Married 5 D 606
133639 59 42 1M Single 11 P 351
122437 66 45 1F Married 12 P 16
137595 29 8 1M Single 5 D 739
187253 21 2 1F Married 13 P 183
156504 21 3 1M Married 13 P 311
162843 64 46 1F Married 11 P 260
115549 36 17 1F Married 7 P 322
135122 46 27 1M Single 10 D 596
160917 60 42 1M Married 13 P 162
185458 25 8 1M Married 15 D 525
160510 47 30 1F Married 6 P 330
140871 24 6 1M Single 13 P 414
176448 40 23 1M Married 1 D 593
198278 21 2 1F Single 14 P 412
172292 35 16 1F Single 7 P 395
193942 70 53 1F Married 8 P 59
171408 48 27 1M Single 0 D 575
191865 62 44 1F Single 2 P 85
195418 50 29 1M Single 8 D 552
128036 67 50 1M Single 6 P 78
199870 54 34 1M Married 9 P 314
147315 25 8 1M Single 5 D 3500
190621 16 0 1M Single 15 P 3250
142474 66 48 1M Single 10 P 2850
194236 63 43 1F Single 10 P 2535
185366 52 34 1M Married 5 D 2852
142085 25 7 1F Married 11 P 2879
114164 38 20 1F Married 3 D 2814
164185 25 6 1F Single 8 D 2879
103178 50 32 1F Single 15 P 3462
140879 35 15 1M Single 9 P 3333
174443 64 45 1F Single 13 P 3227
121044 68 49 1F Married 2 P 235
185091 63 45 1F Married 3 P 61
104797 24 7 1M Single 9 D 751
136204 58 38 1F Married 10 P 315
112619 17 0 1M Single 8 D 1197
178782 16 0 1F Single 12 D 611
130506 20 1 1M Single 13 D 868
107433 58 38 1F Married 14 P 284
122086 50 33 1M Married 11 P 143
120837 58 37 1M Single 9 P 443
119860 23 5 1M Single 15 D 1087
100079 20 3 1M Married 1 D 682
107878 52 35 1M Married 15 P 269
111243 36 16 1M Married 0 P 430
141643 37 16 1F Single 13 P 218
121584 61 40 1F Married 9 P 288
183067 29 11 1F Married 0 P 387
184637 21 2 1F Single 15 P 233
129471 22 4 1F Married 15 P 296
181752 31 13 1F Single 9 P 382
145728 60 42 1M Single 0 P 98
138354 44 25 1F Single 3 P 427
149411 16 0 1M Single 13 D 535
155379 18 1 1F Married 15 P 323
189763 66 47 1M Married 5 P 313
115565 70 52 1F Married 12 P 29
179862 19 0 1M Married 11 P 414
156612 49 30 1M Single 9 P 397
160282 18 0 1M Single 12 D 550
181059 24 5 1F Single 2 D 768
146711 66 46 1F Single 4 P 430
198926 70 49 1F Single 13 P 58
108827 25 7 1F Single 7 P 423
165557 26 8 1M Single 15 P 299
192032 23 6 1M Single 12 P 376
167570 35 18 1F Single 9 P 429
172196 25 6 1M Single 12 D 620
104695 65 46 1F Single 6 P 357
109581 70 50 1F Single 14 P 37
125470 26 5 1M Single 2 D 514
146889 43 22 1M Single 8 P 383
183736 18 1 1M Married 10 D 776
188360 39 18 1M Single 5 D 688
137629 20 2 1M Married 13 P 250
123394 34 13 1F Married 12 P 151
111554 69 50 1F Single 7 P 97
164809 70 53 1F Single 10 P 156
125588 25 7 1M Single 7 D 1036
110830 22 5 1F Single 10 P 466
130427 57 38 1F Married 4 D 597
116082 51 31 1M Married 0 D 515
146750 19 0 1F Married 12 D 541
101703 64 45 1F Married 4 P 35
165002 62 42 1F Single 10 P 93
133073 22 5 1M Single 14 D 655
199193 46 27 1M Single 3 D 771
169904 56 36 1M Single 7 D 555
164381 19 2 1M Married 12 P 289
101325 25 8 1F Married 15 P 320
125818 61 42 1F Single 8 P 380
150975 35 17 1M Single 10 P 403
136723 64 46 1M Single 7 P 217
115009 41 22 1F Single 13 P 275
183198 66 46 1M Single 1 D 796
118167 62 43 1M Single 6 P 56
181893 46 28 1F Single 5 D 713
193579 29 10 1M Married 12 P 141
134526 65 44 1M Single 14 P 291
162909 60 39 1M Married 1 P 203
160490 41 22 1M Married 4 D 517
100366 46 26 1F Married 12 P 202
139754 41 24 1F Single 10 P 428
159663 24 6 1F Single 11 D 516
153203 62 42 1F Married 14 P 257
109485 36 15 1F Married 2 P 376
159668 24 6 1M Single 12 D 1070
148260 49 28 1M Married 13 P 371
180191 20 3 1F Single 14 P 266
180237 52 31 1F Married 10 P 312
139893 21 4 1F Single 15 P 430
155317 58 39 1M Single 0 D 818
102276 36 17 1F Married 13 P 320
115581 18 0 1F Married 13 P 183
156261 21 3 1F Single 14 D 565
192333 60 43 1F Married 6 P 110
111841 63 44 1F Single 4 P 466
174729 64 45 1M Single 11 P 173
179628 22 5 1M Married 12 P 361
154549 22 3 1F Married 1 D 837
181334 26 5 1F Married 11 P 129
165949 19 0 1F Single 9 P 485
190391 28 9 1M Married 2 P 488
115290 24 5 1M Married 0 D 990
100313 60 39 1F Single 10 P 166
151108 20 2 1F Married 11 P 167
149292 43 25 1M Married 0 D 693
158875 23 4 1M Married 14 D 513
191995 48 27 1M Married 5 D 629
129391 40 23 1M Single 6 P 438
136475 64 44 1M Single 10 P 244
123896 23 6 1M Married 6 P 479
187193 38 21 1M Married 9 P 321
193212 19 0 1M Married 7 P 328
108450 62 42 1M Married 10 P 387
169347 23 4 1M Married 15 P 235
164942 34 13 1F Married 2 P 396
141819 64 47 1M Single 14 P 66
111740 63 42 1M Single 7 P 296
193972 28 11 1F Married 14 P 159
125668 16 0 1M Married 12 P 477
161764 29 11 1F Single 0 D 509
154044 17 0 1F Married 15 P 352
153568 55 34 1F Married 2 D 523
188603 52 31 1M Married 10 P 314
160890 30 9 1M Single 13 P 201
114690 16 0 1F Married 15 P 303
117035 23 5 1F Single 6 D 788
161490 70 49 1F Married 14 P 100
173164 18 0 1F Married 15 P 250
143977 27 7 1F Married 1 P 489
163639 47 28 1M Married 1 D 562
149434 18 1 1F Single 12 P 415
149512 19 2 1F Single 9 D 778
157115 27 8 1F Single 7 P 356
175097 47 28 1M Married 13 P 357
196651 70 52 1F Single 7 P 328
195249 53 33 1F Married 6 P 301
127336 21 2 1M Married 3 D 770
137641 43 23 1M Married 0 D 689
165330 65 44 1F Married 8 P 151
192598 30 13 1F Single 1 D 696
146908 48 30 1M Married 12 P 237
180115 16 0 1F Married 15 P 310
177343 63 46 1M Single 9 P 411
117839 40 22 1F Single 2 D 629
149617 46 27 1M Married 10 P 393
126692 56 35 1F Married 5 D 572
111093 19 2 1F Married 14 P 282
135757 33 12 1M Single 10 P 455
117846 57 38 1F Single 4 P 478
155784 56 36 1M Single 14 P 193
164611 25 8 1M Married 14 P 410
121723 55 34 1M Single 12 D 509
133288 40 20 1M Single 8 P 424
190115 46 28 1F Single 13 P 344
127988 42 21 1M Married 11 P 182
132030 27 8 1F Married 15 P 161
101870 46 27 1M Married 10 P 356
140905 25 8 1F Married 15 P 329
198778 42 24 1M Married 9 P 325
126147 64 46 1F Single 7 P 455
160412 34 14 1M Single 2 D 762
103140 64 44 1F Single 14 P 290
149881 34 16 1F Single 1 P 459
144509 37 20 1F Married 14 P 259
168461 21 3 1M Single 15 D 587
168054 68 50 1M Married 0 P 159
146863 26 9 1F Single 11 P 148
120221 51 34 1F Married 8 P 309
129905 69 51 1F Single 5 P 255
134778 38 20 1M Single 7 D 517
197721 64 45 1M Single 0 P 105
136859 62 44 1F Married 4 P 40
190111 70 50 1M Married 2 P 302
130480 27 9 1F Married 6 P 311
196071 24 5 1M Married 11 P 336
173780 24 6 1F Married 15 P 198
148128 70 50 1F Married 5 P 82
134743 46 28 1F Single 8 P 408
100484 61 41 1M Single 11 P 36
134903 70 53 1M Single 12 P 320
195830 51 32 1F Single 0 D 590
113558 49 31 1F Single 0 D 526
167211 34 13 1M Single 5 D 939
115864 25 7 1M Married 12 D 554
162203 24 5 1M Single 15 P 311
167577 36 15 1F Single 4 D 878
142500 20 3 1F Single 14 P 157
159595 20 1 1F Single 12 D 520
168966 70 53 1F Single 8 P 103
133980 22 4 1M Married 12 D 547
124584 61 44 1M Single 6 P 330
122265 20 2 1M Married 14 D 655
141110 21 4 1M Married 12 P 480
117962 19 0 1F Married 6 D 517
171724 66 49 1F Single 0 P 72
139558 63 44 1M Single 3 P 131
1) Use conditional formatting with any other Excel-tool to find out some insights from this dataset
sights from this dataset
AND
Are numbers in both the columns greater than 100 ?, Should return TRUE or False
Items To Test Result
500 800 1
500 25 0
25 500 0
12 1
Syntax
=AND(Test1,Test2)
Note that there can be up to 30 possible tests.
Formatting
When used by itself it will show TRUE or FALSE.
Example 1
The following example shows a list of examination results.
The teacher wants to find the pupils who scored above average in all three exams. If fulfilled show them as "Passed" else
The =AND() function has been used to test that each score is above the average.
The result of TRUE is shown for pupils who have scored above average in all three exams.
Syntax
=OR(Test1,Test2)
Note that there can be up to 30 possible tests.
Formatting
When used by itself it will show TRUE or FALSE.
Payment Handling
Order No. Cost Type Charge
AB001 1000 Cash
AB002 1000 Visa
AB003 2000 Cheque
AB004 5000 Delta
Truth Table of OR
A B Output
0 1 1
1 0 1
1 1 1
0 0 0
ISNA
Number Result
1 0
Hello 0
0
1-Jan-98 0
#N/A 1
Syntax
=ISNA(CellToTest)
Formatting
No special formatting is needed.
Small illustration to show in what kind of use cases do use different tools in excel
A company is trying to estimate how much revenue can it earn by installing a solar plant on a particular site
Note: Please look at the units carefully
a Days of generation 365 days
b Capacity utilization fator 20% capacity utilised
c Solar Plant size 100 MW
d Hours per day 24 hours/day
e=a*b*c*d Energy generated/annum 175.2 Million KWh of electricity
f Per KWh tariff 3.50 ₹ Rupees/Kwh
g=e*f Revenue generated 613.20 ₹ Rupees Million
articular site
1) Create a drop down list in cell C5 for values 15% to 25%, in increments of 1%
2) Look how value in cell C10 changes automatically as value in C% changes; all the cells are refere
16%
17%
18%
19%
20%
ges; all the cells are referenced.
Name Find out how many letters each name has … Hint Use LEN and TRIM
Alan Parker 11
Roman Kage 10
Devi Kumar 10
James Smith 11
Maria Garcia 12
Mary Smith 10
Maria Fernandez 15
First Name Last Name Full name in one column
Alan Parker Alan Parker
Roman Kage Roman Kage
Devi Kumar Devi Kumar
James Smith James Smith
Maria Garcia Maria Garcia
Mary Smith Mary Smith
Maria Fernandez Maria Fernandez
Name
Alan Use Remove duplicates
Roman
Devi
James
Maria
Mary
Maria
Alan
Roman
Devi
James
Maria