You are on page 1of 40

Microsoft Advanced Excel

Exercise 1
A B C D
1 Name Sales Target Result
2 Alan 1000 5000 Not Achieved
3 Bob 6000 5000 Achieved
4 Carol 2000 4000 Not Achieved
Result : = IF ( B2>= C2, "Achieved" , "Not Achieved" )

Exercise 2
A B C D
1 Name Sales Target Result
2 Alan 1000 5000 500
3 Bob 6000 5000 600
4 Carol 2000 4000 100
Result : =IF(B2>=C2,B2*10%,B2*5%)

Exercise 3
Write a function which returns if the student Pass or Fail if the average mark is greater than 10
Student Course 1 Course 2 Course 3 Average Result
Luc 8 15 9 11 Pass
Estelle 4 15 16 12 Pass
Laurent 11 6 8 8.3 Fail
Paul 17 16 3 12 Pass
La 17 18 10 15 Pass
Murielle 6 5 13 8 Fail

1 Thierry 18 19 15 17 Pass

Exercise 4
Percentage

Remarks
Roll No.
Student

Grade
Name

Test 1

Test 2

Test 3

Test 4

Test 5

Total

Priya 101 45 67 87 86 35 320 64% Good B


Talan 102 23 76 68 54 76 297 59% Bad Fail
Sharma 103 34 67 78 75 82 336 67% Good B
David 104 94 89 79 90 88 440 88% EXLT A+
Edward 105 23 56 74 33 67 253 51% Bad Fail
John 106 36 78 83 93 77 367 73% V.Good A
Alan 107 38 47 46 59 34 224 45% Bad Fail
Smith 108 56 67 78 87 45 333 67% Good B
Jones 109 88 89 99 98 89 463 93% EXLT A+
Frank 110 12 14 34 14 24 98 20% Bad Fail

Remarks IF(i2>=80%,"EXLT", IF(i2>=70%,"V.GOOD", IF(i2>=60%,"GOOD","BAD")))


Grade IF(i2>=80%,"A+", IF(i2>=70%,"A", IF(i2>=60%,"B","FAIL")))

Exercise 5
Team Result Result Team Result
AAA 2 0 DDD Win
BBB 1 1 EEE Tie
FFF 3 1 RRR Win
HHH 0 1 JJJ Lose
Result : =IF(B2>C2,"Win",IF(B2<C2,"Lose","Tie"))
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
Exercise 6
Student Course 1 Course 2 Course 3 Average Result
Luc 8 15 9 10.67 Pass
Estelle 4 15 16 11.67 Pass
Laurent 11 6 8 8.33 Fail
Paul 17 16 3 12.00 Good
La 17 18 10 15.00 Very Good
Murielle 6 5 13 8.00 Fail
Thierry 18 19 15 17.33 Excellent
Result : =IF(E2<10,"Fail",IF(E2<12,"Pass",IF(E2<14,"Good",IF(E2<16,"Very Good","Excellent"))))

Exercise 7
A B C D E
1 Item Qty order Qty in stock Qty delivered Qty to delivered
2
Smartphone 50 45 45 5
3
Ipad 37 51 37
4
USB Stick 4Go 12 15 12
5
USB Stick 8Go 75 47 47 28
6
USB Stick 16Go 8 10 8
Result : =IF(D2<B2,B2-D2," ")

Exercise 8
A B C D E F
1 Stock Volume Buy Last Gain Lose
2 2
3
AAA
BBB
25
53
35.4
42.8
45.8
37.5
260
0
0
280.9
4 CCC 50 86.1 88 95 0
5 DDD 75 75 69 0 450
6 EEE 100 8 10 200 0
7 Total 555 730.9
8 Grand Total -175.9
Gain :=IF(C2<=D2,D2-C2,0)*B2 Lose : =IF(C2>D2,C2-D2,0)*B2
Total :=SUM(E2:E6) , =SUM(F2:F6) Grand Total : =E7-F7

Exercise 9
Sales Report
Allowance 1

Allowance 2

Allowance 3

Total
Name Basic Sale 1 Sale 2 Sale 3
Sale

Evans 2500 900 800 250


Henry 2000 150 250 900
Jake 2200 100 300 500
Neil 2500 450 250 400
Zack 2400 150 100 400
Allowance 1 : IF (Tot Sale >= 1000, Basic*35%, IF (Tot Sale >= 800,Basic*25%, "Try Again" ) )
Allowance 2 : IF (OR (Tot Sale > 800, Basic = 2500), 1000, 500 )
Allowance 3 : IF (AND (Tot Sale > 800, Basic = 2500), 1000, 500)

Exercise 10
A B C D E F G H I J K K
1 Name Firstname Genre Income Situation Children Q1 Q2 Q3 Q4 Q5 Q6
2 Kumar Sunil Man 20,000 Relationship 0
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
3 Anand Ankit Man 80,000 Married 1
4 Garg Gaurav Man 67,000 Married 0
5 Mishra Raghav Man 35,000 Relationship 0
6 Kumar Rohit Man 77,000 Single 0
7 Kumar Manish Man 70,000 Married 3
8 Gupta Rahul Man 23,000 Single 3
9 Goyal Sakshi Woman 97,000 Relationship 1
10 Singh Anurag Man 26,000 Divorced 3
11 Agarwal Shivani Woman 89,000 Relationship 0
12 Sharma Anjali Woman 77,000 Single 2
13 Mishra Pritam Man 34,000 Divorced 0
14 Kumar Ashutosh Man 61,000 Relationship 2
15 Pathak Soumitra Woman 27,000 Single 0
16 Gupta Soubhagya Woman 72,000 Divorced 3
17 Kumar Amit Man 85,000 Relationship 1
18 Latha Sneha Woman 84,000 Single 3
19 Jain Akhil Man 50,000 Single 2
20 Chopra Shantanu Man 31,000 Single 0
Questions
1: How many clients are married with one child?
2: How many clients are single or divorced?
3: How many clients are married with an income above 75,000?
4: How many clients are male, unmarried and without children
5: How many clients are women with 1 or 2 children?
3 6: How many clients are married or in relationship, with an income greater than or equal to 50,000 and have
at least two children.
Solutions
1. =IF(AND(E2="Married",F2=1),1,0)
2. =IF(OR(E2="Single",E2="Divorced"),1,0)
3. =IF(OR(E2="Married",D2>75000),1,0)
4. =IF(AND(C2="Man",E2="Single",F2=0),1,0)
5. =IF(AND(C2="Woman", OR(F2=1,F2=2)),1,0)
6. =IF(AND(D2>50000,F2>=2,OR(E2="Married",E2="relationship")),1,0)

Exercise 11
A B C D
1 Item Qty Unit Price SUM
2 CD-Rom 75 1.25 93.75
3 Pencil 15 2.6 39
4 Post-It 200 12 2400
5 CD-Rom 50 1.25 62.5
6 Glue 30 3.4 102
7 CD-Rom 100 1.25 125
8 Pencil 30 2.6 78
9 Glue 40 3.4 136
10 Post-It 50 12 600
11 CD-Rom 20 1.25 25
12
13 Item Qty Total
14 CD-Rom 4 306.25
15 Pencil 2 117
16 Post-It 2 3000
17 Glue 2 238
18 Qty>= 50 5 3281.25
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
Questions
1. Calculate Sum
2. Calculate No. of CD-Rom, Pencil, Post-it, Glue
3. Calculate Quantity which are greater than 50
4. Find the sum of CD-Rom, Pencil, Post-it, Glue
5. Find the sum of quantity which are greater than 50
Solutions
Note: Press F4 to get dollar ( $ ) symbols
1. D2 : =B2*C2
2. B14 : =COUNTIF($A$2:$A$11,A14)
B15 : =COUNTIF($A$2:$A$11,A15)
B16 : =COUNTIF($A$2:$A$11,A16)
B17 : =COUNTIF($A$2:$A$11,A17)
3. B18 : =COUNTIF(B2:B11,">=50")
4. D14 : =SUMIF($A$2:$A$11,A14,$D$2:$D$11)
D15 : =SUMIF($A$2:$A$11,A15,$D$2:$D$11)
D16 : =SUMIF($A$2:$A$11,A16,$D$2:$D$11)
D17 : =SUMIF($A$2:$A$11,A17,$D$2:$D$11)
5. D18 : =SUMIF($B$2:$B$11,">=50",$D$2:$D$11)

Exercise 12
A B C D E F
1 Name Gender Marital Status Man Woman
2 Sushma Woman Relationship Relationship 2 4
3 SnehaLatha Woman Married Married 2 1
4 Shashiraju Man Married Single 5 3
4 5 Aishwarya Woman Relationship Divorced 2 1
6 Avinash Man Single
7 Hanumanthappa Man Married Total 11 9
8 Niveditha Woman Single
9 Nayanika Woman Relationship
10 Sharon Angelene Woman Divorced
11 Harish Man Relationship
12 AkankshaKumari Woman Single
13 Akshay Man Divorced
14 Sahana Woman Relationship
15 Surya Man Single
16 Harsha Man Divorced
17 Karthik Man Relationship
18 Harshit Man Single
19 Joseph Man Single
20 Srikanth Man Single
21 Sowmyashree Woman Single
Question
Count No. of Man and Woman who are in Relationship, Married, Single and Divorced
Solutions
E2 : =COUNTIFS(B2:B21,"Man",C2:C21,"Relationship")
E3 : =COUNTIFS(B2:B21,"Man",C2:C21,"Married")
E4 : =COUNTIFS(B2:B21,"Man",C2:C21,"Single")
E5 : =COUNTIFS(B2:B21,"Man",C2:C21,"Divorced")
F2 : =COUNTIFS(B2:B21,"Woman",C2:C21,"Relationship")
F3 : =COUNTIFS(B2:B21,"Woman",C2:C21,"Married")
F4 : =COUNTIFS(B2:B21,"Woman",C2:C21,"Single")
F5 : =COUNTIFS(B2:B21,"Woman",C2:C21,"Divorced")

Software and Hardware Training Centre Microsoft Advanced Excel


Microsoft Advanced Excel
Exercise 13
A B C
1 Name Score Result
2 Karthik 60 pass
3 Sushma 94 pass
4 Hemendra 74 pass
5 Akshay 37 fail
6 Kalmeshwar 84 pass
7 Sowmyashree 49 fail
8 Ranjitha 93 pass
9 Kunal 69 pass
10 Madhu 57 pass
11 Vinod 46 fail
12 Prathiba 74 pass
13 Nikhil 93 pass
14 Pratik 53 pass
15 Kavya 49 fail
16 Mohith 45 fail
17 Gaurav 67 pass
18 Cybil 62 pass
19 Shrirang 47 fail
20 Priyanka 71 pass
21 Pooja 48 fail
22
23 No. of Score 20
5 24
25
No. of Result
No. of Pass
20
13
26 No. of Fail 7
Result = IF ( B2 >= 50 , pass , fail )
No. of Score = COUNT ( B2 : B21 )
No. of Result = COUNTA ( C2 : C21 )
No. of Pass =COUNTIF(C2 : C21 ,"pass")
No. of Fail =COUNTIF( C2 : C21 ,"fail")

Exercise 14
Smith or John
Sales Person

Smith Total
Total Sale

Total
Qtr1

Qtr2

Qtr3

R1 R2 R3 R4 R5 R6 R7

Smith 0 8 9 17 OK OK OK Y Y Y Y 17 17
Gibbs 6 9 4 19 OK OK OK Y Y N Y NOT NOT
Henery 7 7 NOT OK NOT OK NOT OK N N N Y NOT NOT
John 4 3 2 9 NOT OK OK NOT OK Y N N N NOT 9
Alen 6 4 10 NOT OK OK NOT OK N N N N NOT NOT
Disoza 1 0 7 8 NOT OK OK NOT OK Y N N N NOT NOT
Smith 9 8 6 23 OK NOT OK OK Y Y Y Y 23 23
Solutions:
R1: =IF(MAX(B2:D2)>7,"OK","NOT OK")
R2: =IF(MIN(B2:D2)<5,"OK","NOT OK")
R3: =IF(SUM(B2:D2)>15,"OK","NOT OK")
R4: =IF(COUNT(B2:D2)=3,"Y","N")
R5: =IF(COUNTIF(B2:D2,">5")>1,"Y","N")
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
R6: =IF(SUMIF(B2:D2,">5")>15,"Y","N")
R7: =IF(AVERAGE(B2:D2)>5,"Y","N")
Smith Total : =IF(A2="Smith",SUM(B2:D2),"NOT")
Smith or John Total : =IF(OR(A2="Smith",A2="John"),SUM(B2:D2),"NOT")

Exercise 15
A B C
1 Quantity Sold Product Salesperson
2 5 Apples 1
3 4 Apples 2
4 15 Artichokes 1
5 3 Artichokes 2
6 22 Bananas 1
7 12 Bananas 2
8 10 Carrots 1
9 33 Carrots 2
10
11 A* 20
12 <> Bananas 30
Solution
A* : =SUMIFS(A2:A9,B2:B9,"=A*",C2:C9,1)
<> Bananas : =SUMIFS(A2:A9,B2:B9,"<>Bananas",C2:C9,1)
Description:
A* :Adds the total number of products sold that begin with "A" and that were sold by Salesperson 1
<>Bananas :Adds the total number of products (not including Bananas) sold by Salesperson 1.

6 Exercise 16
A B C D E
1 Totals Account 1 Account 2 Account 3 Account 4
2 Amount 100 390 8321 500
3 Interest paid (2000) 1% 0.50% 3% 4%
4 Interest paid (2001) 1% 1.30% 2.10% 2%
5 Interest paid (2002) 0.50% 3% 1% 4%
6
7 Result 1 500
8 Result 2 8711
Solution
Result 1 :=SUMIFS(B2:E2,B3:E3,">3%",B4:E4,">=2%")
Result 2 :=SUMIFS(B2:E2,B5:E5,">=1%",B5:E5,"<=3%",B4:E4,">1%")
Description:
Result 1 :Total amounts from each bank account where the interest was greater than 3% for the year 2000
and greater than or equal to 2% for the year 2001.
Result 2 :Total amounts from each bank account where the interest was between 1% and 3% for the year
2002 and greater than 1% for the year 2001.

Exercise 17
A B C D E
1 Daily Measurements First Day Second Day Third Day Fourth Day
2 Rain (total inches) 3.3 0.8 5.5 5.5
3 Average temperature (degrees) 55 39 39 57.5
4 Average wind speed (miles per hour) 6.5 19.5 6 6.5
5
6 Amount of Rainfall 8.8
Solution
Amount of Rainfall :=SUMIFS(B2:E2,B3:E3,">=40",B4:E4,"<10")
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
Description: Adds the total amount of rainfall for days when the average temperature was at least 40
degrees Fahrenheit and the average wind speed was less than 10 miles per hour.
Only cells B2 and E2 are summed because, for each column (B through E), the values in both rows 3 and 4
must meet criteria1 and criteria2, respectively. Cells B3 and B4 meet both criteria, as do E3 and E4. However,
neither C3 nor C4 meet either criteria. Finally, although D4 meets criteria2, D3 fails to meet criteria1.

Exercise 18
A B C D E
1 Morning and Evening Measurements First Day Second Day Third Day Fourth Day
2 AM: rain (total inches) 1.3 0 1.5 3
3 PM: rain (total inches) 2 0.8 4 2.5
4 AM: average temperature (degrees) 56 44 40 38
5 PM: average temperature (degrees) 54 34 38 77
6 AM: average wind speed (miles per hour) 13 6 8 1
7 PM: average wind speed (miles per hour) 0 33 4 12
8
9 Total No. of Rainfall 3.5
Solution
Total No. of Rainfall :=SUMIFS(B2:E3,B4:E5,">=40",B6:E7,"<10")
Description:Adds the total amount of rainfall for 12-hour periods when the average temperature was at
least 40 degrees Fahrenheit and the average wind speed was less than 10 miles per hour.
Only cells B3, C2, and D2 are summed, because their corresponding cells meet both criteria. The
corresponding cells for B3 are B5 and B7, the corresponding cells for C2 are C4 and C6, and the
corresponding cells for D2 are D4 and D6.
As an example of data excluded from the operation, the corresponding cells of B2 (B4 and B6) do not meet
both criteria; specifically, cell B6 fails because its value (13) is greater than criteria2 (10).
7 Exercise 19
A B C D E F G
Square
1 Homes Bedrooms Baths Garage Year built Price
Feet
2 House1 1200 2 1 yes 1940 125000
3 House2 1580 3 1.5 no 1965 217000
4 House3 2200 4 3 yes 2003 376000
5 House4 1750 3 2.5 yes 2001 249000
6 House5 2140 4 3 yes 1998 199000
7
8 House Price 625000
9 House Average Price 312500
Solution
House Price :=SUMIFS(G2:G6,C2:C6,">2",E2:E6,"yes",F2:F6,">1999",F2:F6,"<2004")
House Average Price :=AVERAGEIFS(G2:G6,C2:C6,">2",E2:E6,"yes",F2:F6,">1999",F2:F6,"<2004")
Description:
House Price :Adds the price of those homes that have at least 3 bedrooms, a garage, and are between 5 and
10 years old as of 2009.
House Average Price :Returns the average price for homes that have at least 3 bedrooms, a garage, and are
between 5 and 10 years old as of 2009.

Exercise 20
A B C D E F
1 Sales Rep Region Sales Qrt
2 John North 2,500 1 Answers
3 Paul South 3,456 2 17,435
4 Ringo North 2,568 3 7,631
5 George South 9,854 4 7,631
6 John North 2,569 1 12,767
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
7 Paul South 4,125 2
8 Ringo North 2,568 3
9 George South 1,458 4
10 John North 2,562 1
Questions
1. What is the SUM of the SALES above 3,000?
2. What is the SUM of the SALES for John?
3. What is the SUM of the SALES for John in the NORTH region?
4. What is the SUM of the SALES for John and Ringo in the NORTH region?
Solutions
1. F3 : =SUMIF(C2:C10,">3000")
2. F4 : =SUMIF(A2:A10,"john",C2:C10)
3. F5 : =SUMIFS(C2:C10,A2:A10,"john",B2:B10,"north")
4. F6 : =SUMIFS(C2:C10,A2:A10,"*o*",B2:B10,"n*")

Note:
* Returns any series of characters before/after the asterisk
Begins with Glo* Globex Corporation
Globo Gym American Corp
Globo-Chem
Ends with *tech Initech
Primatech
Contains *inc* Acme, inc.
Demo, inc.
Incom Corporation
Input, Inc.
8 Sample, inc
? Returns text that contains one variable
Contains a?c ABC Telecom
Monarch Playing Card Co.
Sombra Corporation
Spade and Archer

Exercise 21
A B C D E F G H
1 January Sunday Monday Tuesday Wednesday Thursday Friday Saturday
2 February
3 March
4 April
5 May row 8 August
6 June
7 July column 7 Saturday
8 August
9 September
10 October
11 November
12 December
Solution
E5 :=INDEX(A1:A12,D5)
E7 :=INDEX(B1:H1,D7)
Note: Change the numbers in D5 and D7 to see the changes.

Exercise 22
A B C D E F G
1 Row 5 Result Mango

Software and Hardware Training Centre Microsoft Advanced Excel


Microsoft Advanced Excel
2 Column 5
3
4 Sunday 1 100 500 Apple Jan Aug
5 Monday 2 200 600 Banana Feb Sep
6 Tuesday 3 300 700 Watermelon Mar Oct
7 Wednesday 4 400 800 Grape Apr Nov
8 Thursday 5 500 900 Mango May Dec
9 Friday 6 600 1000 Lemon Jun Jan
10 Saturday 7 700 1100 Cherry Jul Feb
Solution
F2 :=INDEX(A4:G10,B1,B2)
Note: Change different numbers in B1 and B2 to see different results

Exercise 23
A B C D E F G H
1 1 2 3
2 Top 10 Customers Sales Units Customer Sales Units
3 1 Mooby Corp 8959 884 Kumatsu Motors 7507 689
4 2 Spacely Sprockets 7840 976
5 3 Kumatsu Motors 7507 689
6 4 St. Anky Beer 6690 588 3
7 5 Mr. Sparkle 5802 555
8 6 Sto Plains Holdings 5487 578
9 7 ABC Telecom 3949 278
10 8 Videlectrix 3836 238
11 9 Sample, inc 3587 235
9 12 10 Demo Company 3210 115
Steps for Data Validation
1. Select F6. Under toolbar select DataData Validation
2. Settings Allow List
3. Click Source button and select from A3:A12. Click button again and click OK
4. You now have the drop down list from 1 to 10 in F6
5. F3 : =INDEX(B3:D12,F6,B1)
6. G3 : =INDEX(B3:D12,F6,C1)
7. H3 : =INDEX(B3:D12,F6,D1)
8. Select F6 drop down option and change the numbers and see the results above

Exercise 24
Top 10 Customers Sales Units
Mooby Corp 8959 884
Spacely Sprockets 7840 976 Total Sales Average Units Sold
Kumatsu Motors 7507 689 56867 513.6
St. Anky Beer 6690 588
Mr. Sparkle 5802 555
Sto Plains Holdings 5487 578
ABC Telecom 3949 278
Videlectrix 3836 238
Sample, inc 3587 235
Demo Company 3210 115
Total Sales : =SUM(INDEX(A2:C11,0,2)) or =SUM(INDEX(A2:C11,,2))
Average Units Sold : =AVERAGE(INDEX(A2:C11,0,3)) or =AVERAGE(INDEX(A2:C11,,3))

Exercise 25
STOCK LIST PRICE COST
Television 8,959 884 Stock Item Position

Software and Hardware Training Centre Microsoft Advanced Excel


Microsoft Advanced Excel
Laptop 7,840 976 Tablet 4
Tablet 7,507 689
Monitor 6,690 588
Drone 5,802 555
What position within the STOCK LIST is the TABLET located?
Position : =MATCH(E3,A1:A6,0)

Exercise 26
Question :Do the items in STOCKLIST1 exist in STOCKLIST2?
Rename Sheet 1 as List 1 and type the following data
A B C
1 STOCK LIST 1 PRICE MATCH
2 Tel2154 3,449 2
3 Lap5468 5,664 #N/A
4 Tab4577 5,830 1
5 Mon45657 2,496 9
6 Dro424 9,553 #N/A
7 Tel2135 9,644 6
8 Lap5456 8,600 7
9 Tab4598 2,990 #N/A
10 Mon45645 6,282 5
11 Dro4255 7,760 10

Rename Sheet 2 as List 2 and type the following data


A B
1 STOCK LIST 2 COST
10 2
3
Tab4577
Tel2154
565
515
4 Lap000 574
5 Dro000 984
6 Mon45645 899
7 Tel2135 646
8 Lap5456 524
9 Tab000 503
10 Mon45657 933
11 Dro4255 904
Solution
List 1C2 :=MATCH(A2,List 1!$A$2:$A$11,0)

Exercise 27
A B C D E F G
1 STOCK ID STOCK ITEM PRICE COST
2 TEL458 Television 8,959 $884 STOCK ITEM STOCK ID
3 LAP5987 Laptop 7,840 $976 Tablet TAB698
4 TAB698 Tablet 7,507 $689
5 MON632 Monitor 6,690 $588
6 DRO844 Drone 5,802 $555
What is the STOCK ID for the TABLET?
G3 : =INDEX($A$2:$A$6,MATCH(F3,$B$2:$B$6,0))

Exercise 28
A B C D E
1 SALES REP REGION AMOUNT
2 John East 45,860
3 Mikel North 20,752 LARGEST SALE?
4 Leyre South 71,972 Effie
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
5 Ane South 59,654
6 George West 53,757
7 Tina North 73,427
8 Effie South 78,380
9 Jimmy East 70,487
Which SALES REP made the BIGGEST SALE?
E4 : =INDEX(A2:A9,MATCH(MAX(C2:C9),C2:C9,0))

Exercise 29
V LOOKUP
Searches for a value in the first column of a table array and returns a value in
What does it do?
the same row from another column (to the right) in the table array.
Formula breakdown VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
VLOOKUP(this value, in this list, and get me value in this column, [Exact
What it means
Match/FALSE] / 0)
Question Get me the PRICE of a LAPTOP and TABLET from the STOCK LIST!
C8 =VLOOKUP(A8,A2:C5,2,FALSE) OR =VLOOKUP(A8,A2:C5,2,0)
C9 =VLOOKUP(A9,A2:C5,2,FALSE)
A B C D
1 Stock List Price Cost
2 Television 150 85
3 Laptop 185 95
4 Tablet 245 90
5 Keyboard 55 5
6
11 7
8
Item
Laptop
Quantity
125
Price
185
Total Price
23,125
9 Tablet 35 245 8,575
10 Total 31,700

Exercise 30
V LOOKUP - Approximate Match
VLOOKUP(this value, in this list, and get me value in this column, Approximate
What it means
Match/TRUE] / 1)
Question : Get me the TAX RATE for an INCOME value!
A B C D
1 Income is Greater than or Equal to Tax Rate Enter Income
2 0 13% 8,500
3 8,456 18% Tax Rate
4 15,874 22% 18%
5 36,897 30%
6 87,458 39%
7 141,569 45%
D4 : =VLOOKUP(D2,A2:B7,2,TRUE) OR =VLOOKUP(D2,A2:B7,2,1)

Exercise 31
V LOOKUP - Data Validation
Question :Get me the PRICE of a LAPTOP & TABLET from the STOCK LIST!
A B C D
1 Stock List Price Cost
2 Television 150 85
3 Laptop 185 95
4 Tablet 245 90
5 Keyboard 55 5
6
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
7 Item Quantity Price Total Price
8 Tablet 125 245 30,625
Steps for Data Validation:
Select A8 Data Validation Validation List source A2:A5
C8 : =VLOOKUP(A8,A2:C5,2,FALSE)

Exercise 32
V LOOKUP Different Sheets
Get me the ITEM ID from the STOCK INVENTORY LIST!
Sheet 1
A B C D
1 Items Item id 2013 2014
2 Television 254CFG 24,500 33,000
3 Laptop 689CDF 16,700 18,700
4 Tablet 987SDD 2,500 8,400
5 Keyboard 698ADR 5,500 6,000
6 Mouse 125RTY 5,500 6,000
7 iPad 569AER 5,500 6,000
8 Microphone 569ERT 5,500 6,000
Sheet 2
A B C D
1 Items Item ID Supplier Preferred Supplier
2 Floppy Disks 610KLO Acme, inc. YES
3 Mic Stand 125FRT Widget Corp NO
4 Laptop 689CDF 123 Warehousing NO
12 5
6
Tablet
Pop filter
987SDD
658UYG
Demo Company
Smith and Co.
YES
YES
7 Mouse 125RTY Foo Bars YES
8 iPad 569AER ABC Telecom NO
9 Microphone 569ERT Fake Brothers YES
10 Pen Drive 589YUI QWERTY Logistics NO
11 Mixer 841MKL Demo, inc. YES
12 Laprop Cover 658UYH Sample Company YES
13 Keyboard 698ADR Sample, inc NO
14 Hard Drives 971UOP Acme Corp NO
15 Television 254CFG Allied Biscuit YES
16 Beers 012KIO Ankh-Sto Associates YES
Steps:
In Sheet 1 B2 type :
= Vlookup(A2, then click on Sheet 2 at the bottom and select from A2 : D16 and press F4 and ,2,false)
Formula should look like this : =VLOOKUP(A2,Sheet2!$A$2:$D$16,2,FALSE)

Exercise 33
Sum product Conditional Date
What does it do? It returns the sum of a conditional criteria from the corresponding range or array
Formula breakdown SUMPRODUCT((Nested formula(array1 criteria))*array values)
What it means SUMPRODUCT((Get me the Month of January(Date array))*Sales array)
Question What's the SUM OF SALES for the month of JANUARY?
Answer - F3 =SUMPRODUCT((MONTH(D2:D10)=1)*C2:C10)
A B C D E F
1 Sales Rep Region Sales Date
2 John North 2,500 1/20/2014 Answer:
3 Paul South 3,456 1/25/2014 8,524
4 Ringo North 2,568 1/30/2014

Software and Hardware Training Centre Microsoft Advanced Excel


Microsoft Advanced Excel
5 George South 9,854 2/15/2014
6 John North 2,569 2/18/2014
7 Paul South 4,125 2/19/2014
8 Ringo North 2,568 3/18/2014
9 George South 1,458 3/22/2014
10 John North 2,562 3/30/2014

Exercise 34
Sum product Conditional SUM
What does it do? It returns the sum of a conditional criteria from the corresponding range or array
Formula breakdown SUMPRODUCT((array1 criteria)*array values)
What it means SUMPRODUCT((Date array criteria)*Sales array)
Question What's the SUM OF SALES above the 3,000 transactional level?
Answer - F3 =SUMPRODUCT((C2:C10>3000)*C2:C10)
A B C D E F
1 Sales Rep Region Sales Qtr
2 John North 2,500 1 Answer:
3 Paul South 3,456 2 17,435
4 Ringo North 2,568 3
5 George South 9,854 4
6 John North 2,569 1
7 Paul South 4,125 2
8 Ringo North 2,568 3
9 George South 1,458 4
10 John North 2,562 1
13
Exercise 35
Sum product Count
What does it do? It returns the count of multiple criteria from the corresponding ranges or arrays
Formula breakdown SUMPRODUCT((array1 criteria)*(array2 criteria))
What it means SUMPRODUCT((Sales Rep array)*(Region array))
Question How many sales did JOHN make in the NORTH REGION?
Answer - F3 =SUMPRODUCT((A2:A10="john")*(B2:B10="north"))

A B C D E F
1 Sales Rep Region Sales Qtr
2 John North 2,500 1 Answer:
3 Paul South 3,456 2 3
4 Ringo North 2,568 3
5 George South 9,854 4
6 John North 2,569 1
7 Paul South 4,125 2
8 Ringo North 2,568 3
9 George South 1,458 4
10 John North 2,562 1

Exercise 36
Sum product Maximum Sales
What does it do? It returns the sum of a conditional criteria from the corresponding range or array
Formula breakdown SUMPRODUCT(Nested Formula((array1 criteria)*array values))
SUMPRODUCT(Get me The Maximum value from the following criteria((Region
What it means
array)*Sales array))
Question What's the MAXIMUM sales amount in the NORTH region?
Answer - F3 =SUMPRODUCT(MAX((B2:B10="north")*C2:C10))

Software and Hardware Training Centre Microsoft Advanced Excel


Microsoft Advanced Excel
A B C D E F
1 Sales Rep Region Sales Qtr
2 John North 2,500 1 Answer:
3 Paul South 3,456 2 2,569
4 Ringo North 2,568 3
5 George South 9,854 4
6 John North 2,569 1
7 Paul South 4,125 2
8 Ringo North 2,568 3
9 George South 1,458 4
10 John North 2,562 1

Exercise 37
Sum product Multiple Criteria
What does it do? It returns the sum of multiple criteria from the corresponding ranges or arrays
Formula breakdown SUMPRODUCT((array1 criteria)*(array2 criteria)*(array3 criteria)*array values)
What it means SUMPRODUCT((Sales Rep array)*(Region array)*(Qrt array)*Sales array)
Question What is the total sales for JOHN in the NORTH REGION in Q1?
Answer - F3 =SUMPRODUCT((A2:A10="john")*(B2:B10="north")*(D2:D10=1)*C2:C10)
A B C D E F
1 Sales Rep Region Sales Qtr
2 John North 2,500 1 Answer:
3 Paul South 3,456 2 7,631
4 Ringo North 2,568 3
5 George South 9,854 4
14 6
7
John
Paul
North
South
2,569
4,125
1
2
8 Ringo North 2,568 3
9 George South 1,458 4
10 John North 2,562 1

Exercise 38
Sum product Sum of Top 3 Sales
What does it do? It returns the sum of a conditional criteria from the corresponding range or array
Formula breakdown {SUMPRODUCT(Nested Formula((array1 criteria)*array values))}
{SUMPRODUCT(Return me the Largest three values from((Region array)*Sales
What it means
array))}
Question What's the SUM of the TOP 3 sales in the NORTH region?
Answer - F3 =SUMPRODUCT(LARGE((B2:B10="north")*(C2:C10),{1,2,3}))
A B C D E F
1 Sales Rep Region Sales Qtr
2 John North 2,500 1 Answer:
3 Paul South 3,456 2 7,705
4 Ringo North 2,568 3
5 George South 9,854 4
6 John North 2,569 1
7 Paul South 4,125 2
8 Ringo North 2,568 3
9 George South 1,458 4
10 John North 2,562 1
Exercise 39
Sum product Easy
What does it do? It returns the sum of the products of corresponding ranges or arrays
Formula breakdown SUMPRODUCT(array1, [array2], [array3]...)
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
What it means SUMPRODUCT(this array, with that array)
Question What is the AVERAGE SELLING PRICE of our total STOCK ITEMS!
Answer - F3 =SUMPRODUCT(B2:B5,C2:C5)/SUM(B2:B5)
A B C D E
1 Stock Items Units Sold Sale Price
2 Television 24,500 350 Average Selling Price
3 Laptop 16,700 650 455
4 Tablet 2,500 850
5 Keyboard 5,500 150

Exercise 40
Subtotal - SUM
What does it do? It returns a Subtotal in a list or database
Formula breakdown SUBTOTAL(function_num, ref1)
SUBTOTAL(function number 1-11 includes manually-hidden rows & 101-111
What it means
excludes them, your list or range)
Question Enter the SUBTOTALS for the North, South and Totals?
B4 =SUBTOTAL(9,B2:B3)
B8 =SUBTOTAL(9,B6:B7)
B10 =SUBTOTAL(9,B2:B9)
Values for Subtotal Function Numbers
Includes Hidden Values Ignores Hidden Values Function
1 101 AVERAGE
2 102 COUNT
3 103 COUNTA
15 4 104 MAX
5 105 MIN
6 106 PRODUCT
7 107 STDEV
8 108 STDEVP
9 109 SUM
10 110 VAR
11 111 VARP

A B C D E
1 REGION Q1 Q2 Q3 Q4
2 North-East 657 797 853 886
3 North-West 550 723 618 734
4 Total North 1,207 1,520 1,471 1,620
5
6 South-East 295 574 206 564
7 South-West 443 391 478 693
8 Total South 738 965 684 1,257
9
10 TOTAL 1,945 2,485 2,155 2,877

Note:
The SUBTOTAL function in Excel has many great features, like the ability to:
Return a SUM, AVERAGE, COUNT, COUNTA, MAX or MIN from your data
Include hidden values within your data by entering the first argument function_num, as values between 1-11
Ignore hidden values within your data by entering the first argument function_num, as values between 101-111
Find the SUBTOTAL of filtered values
Ignore other SUBTOTALS that are included in your range, avoiding any double counting!

Exercise 41
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
Subtotal Visible / Filtered
F2 : =SUBTOTAL(109,C3:C51)
H2 : =SUM(C3:C51)
Select A2 and Data Filters
Change the values using dropdown menu and see the results
A B C D E F G H
1 SUBTOTAL FUNCTION SUM FUNCTION
2 REGION YEAR SALES Total Sales 83,300 83,300
3 A 2010 500
4 B 2011 550
5 C 2012 600
6 D 2013 650
7 E 2014 700
8 F 2015 750
9 G 2016 800
10 A 2010 850
11 B 2011 900
12 C 2012 950
13 D 2013 1,000
14 E 2014 1,050
15 F 2015 1,100
16 G 2016 1,150
17 A 2010 1,200
18 B 2011 1,250
19 C 2012 1,300
D 2013 1,350
16 20
21 E 2014 1,400
22 F 2015 1,450
23 G 2016 1,500
24 A 2010 1,550
25 B 2011 1,600
26 C 2012 1,650
27 D 2013 1,700
28 E 2014 1,750
29 F 2015 1,800
30 G 2016 1,850
31 A 2010 1,900
32 B 2011 1,950
33 C 2012 2,000
34 D 2013 2,050
35 E 2014 2,100
36 F 2015 2,150
37 G 2016 2,200
38 A 2010 2,250
39 B 2011 2,300
40 C 2012 2,350
41 D 2013 2,400
42 E 2014 2,450
43 F 2015 2,500
44 G 2016 2,550
45 A 2010 2,600
46 B 2011 2,650
47 C 2012 2,700
48 D 2013 2,750
49 E 2014 2,800
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
50 F 2015 2,850
51 G 2016 2,900

Exercise 42
INDIRECT Function
Returns a reference to a range. The referenced range can be a cell, a range of
What does it do?
cells, or a named range.
Formula breakdown INDIRECT(ref_text, [a1])
INDIRECT(Return the referenced range, Omit if the reference is an A1 style or
What it means
enter FALSE if it is a R1C1 style)

A B C D E F G H I
1 65 53 79 76 76 A Cell Range of Cells Named Range
2 73 77 69 40 80 C5 C4:C8 TABLE
3 78 66 60 69 64
4 75 48 70 51 47 73 359 1651
5 68 83 84 51 49 =INDIRECT(G2) =SUM(INDIRECT(H2)) =SUM(INDIRECT(I2))
Note: Select A1:E5 and go to top left(above A1) and type a name for the range of your data
Exercise 43
INDIRECT Function for Dependent Dropdown
A B C D
1 Category Meat Beverage Breakfast
2 Meat Beef Water Hotdog
3 Beverage Chicken Soda Pancake
4 Breakfast Pork Juice Eggs
17 5
6 Category Contents
7
Step 1 :
Select from A2 to A4 and give a name as Category in Name Box ( above A1)
Select from B2 to B4 and give a name as Meat in Name Box
Select from C2 to C4 and give a name as Beverage in Name Box
Select B6 DataData Validation Validation Criteria select List source A2:A4
Select C6 DataData Validation List Source =INDIRECT( $B$7 )
Select the Category Dropdown Lists and see the Contents Lists

Exercise 44
REPLACE
Replaces part of a text string, based on the number of characters you specify,
What does it do?
with a different text string
Formula breakdown REPLACE(old_text, start_num, num_chars, new_text)
REPLACE(this cell, starting from this number, all the way to this number, with
What it means
this new text)
Question Change Phone Area Codes with REPLACE Formula
C2 =REPLACE(A2,2,3,B2)

PHONE NUMBER NEW NEW PHONE NUMBER


(370) 609-3098 111 (111) 609-3098
(961) 820-9688 222 (222) 820-9688
(204) 439-3664 333 (333) 439-3664
(517) 110-6801 444 (444) 110-6801
(570) 261-8410 555 (555) 261-8410
(996) 700-6596 666 (666) 700-6596
Exercise 45

Software and Hardware Training Centre Microsoft Advanced Excel


Microsoft Advanced Excel
REPLACE - Extract Last Name
A B
1 FULL NAME SURNAME
2 Talon Ferguson Ferguson
3 Doris Velez Velez
4 John Michaloudis Michaloudis
5 Cain Sawyer Sawyer
6 Giacomo Trujillo Trujillo
7 Holly Coffey Coffey
B2 : =REPLACE(A2,1,SEARCH(" ",A2),"")

Exercise 46
SUBSTITUTE FORMULA
What does it do? Substitutes new_text for old_text in a text string
Formula breakdown SUBSTITUTE(text, old_text, new_text, [instance num])
SUBSTITUTE(This cell, By this text character, To this text character, [In the 1st,
What it means
2ndinstance it occurs])
Question Add Comma After the Surname
C2 =SUBSTITUTE(A2," ",",")

FULL NAME FULL NAME WITH COMMA


Crosby Jackson Crosby,Jackson
Sharp Cairo Sharp,Cairo
Hurst Colin Hurst,Colin
Bullock Fulton Bullock,Fulton
18 Cameron Kirk
Figueroa Drew
Cameron,Kirk
Figueroa,Drew

Exercise 47
PART # NEW PART #
C97-27-JT C97-27#JT
T28-24-FG T28-24#FG
F34-68-LJ F34-68#LJ
S63-86-LL S63-86#LL
P73-57-UB P73-57#UB
H26-82-HH H26-82#HH
B2 : =SUBSTITUTE(A2,"-","#",2)

Exercise 48
NAME OCCURENCES
Bradley Strickland ******* 7
Talon Ferguson **** 4
Doris Velez *** 3
Giacomo Trujillo **** 4
Holly Coffey *** 3
Jesse Everett ***** 5
Get the length of the entire string in this case, the length of Bradley Strickland ******* would be 26
Get the length of the text without the asterisks in this case, the length of Bradley Strickland would be 19
Subtract the two lengths this will give us 7, which is the number of asterisks
=LEN(A2)-LEN(SUBSTITUTE(A2,"*",""))

Exercise 49
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
RANDBETWEEN FUNCTION
Generates Random numbers from starting to end
=RANDBETWEEN ( BOTTOM , TOP )
Select from A1 to J20 and type =randbtween(20,90) and press ctrl + enter
Copy the numbers and open a new sheet and paste special and select values

Exercise 50
RANDBETWEEN Function for Dates
Generates random dates, in between a start date and an end date
Select from A1 to D10
Type =RANDBETWEEN(DATE(2010,1,1),DATE(2015,1,1)) and press ctrl + enter
Select Long Date from the Toolbar
Copy the dates and open a new sheet and use paste special and select values
Select Long or Short Date from the Toolbar

Exercise 51
ARRAY FORMULA
What does it do? A formula that performs an Excel operation on an array/range of data
To convert an Excel formula into an Array formula, you will need to press
Formula breakdown
CTRL+SHIFT+ENTER
What it means =SUM(Array1*Array2)

NORMAL FORMULA
A B C D
1 PRODUCT UNITS SOLD UNIT PRICE TOTAL
19 2
3
LAPTOPS
TABLETS
87
268
788
651
68,556
174,468
4 MOBILES 541 325 175,825
5 PC 55 450 24,750
6
7 TOTAL SALES 443,599
D2 : =B2*C2
D7 : =SUM(D2:D5)

ARRAY FORMULA
A B C
1 PRODUCT UNITS SOLD UNIT PRICE
2 LAPTOPS 87 788
3 TABLETS 268 651
4 MOBILES 541 325
5 PC 55 450
6
7 TOTAL SALES 443,599
C7 : =SUM(B2:B5*C2:C5) press CTRL+SHIFT+ENTER

Exercise 52
ARRAY FORMULA
NORMAL FORMULA
A B C D
1 DATE OPEN CLOSE VARIANCE
2 2/18/2015 105 109 4
3 2/19/2015 108 95 -13
4 2/20/2015 99 104 5
5 2/21/2015 106 120 14

Software and Hardware Training Centre Microsoft Advanced Excel


Microsoft Advanced Excel
6
7 MAX 14
D2 : =C2-B2
D7 : =MAX(D2:D5)

ARRAY FORMULA
A B C
1 DATE OPEN CLOSE
2 2/18/2015 105 109
3 2/19/2015 108 95
4 2/20/2015 99 104
5 2/21/2015 106 120
6
7 MAX 14
C7 : =MAX(C2:C5-B2:B5) press CTRL+SHIFT+ENTER

Exercise 53
End Of Month
What does it do? Returns the last day of the month after a start date
Formula breakdown EOM(start_date, months)
EOM(Your Start Date, enter 0 for current end of month, 1 for the next end of
What it means
month, and so on...)

A B C D
1 Sales representative Sale date Sales amount Commission due date

20 2
3
Karthik
Sushma
1/13/2015
1/25/2015
78,782
72,602
2/28/2015
2/28/2015
4 Hemendra 2/6/2015 48,503 3/31/2015
5 Akshay 2/18/2015 44,316 3/31/2015
6 Kalmeshwar 3/2/2015 47,810 4/30/2015
7 Sowmyashree 3/14/2015 77,361 4/30/2015
8 Ranjitha 3/26/2015 51,146 4/30/2015
9 Kunal 4/7/2015 28,673 5/31/2015
10 Madhu 4/19/2015 31,810 5/31/2015
11 Vinod 5/1/2015 52,916 6/30/2015
12 Prathiba 5/13/2015 71,305 6/30/2015
13 Nikhil 5/25/2015 27,757 6/30/2015
14 Pratik 6/6/2015 47,404 7/31/2015
15 Kavya 6/18/2015 77,547 7/31/2015
16 Mohith 6/30/2015 74,339 7/31/2015
17 Gaurav 7/12/2015 71,869 8/31/2015
18 Cybil 7/24/2015 63,243 8/31/2015
19 Shrirang 8/5/2015 53,345 9/30/2015
20 Priyanka 8/17/2015 71,996 9/30/2015
21 Pooja 8/29/2015 73,405 9/30/2015
B2 : Date(year , month , day ) =date(2015,1,13)
B3 : B2 + 12 and drag till the end to get the remaining dates
D2 : =EOMONTH(B2,1)

Exercise 54
A B C D E F G H
1 13% 9.70% 8% 12%
Basic Conveyance Medical House Gross Income
2 Name Net-pay
salary allowance allowance rent pay tax
3 Andy 5500 715 533.5 440 7188.5 862.62 6325.88
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
4 Betty 4000 520 388 320 5228 627.36 4600.64
5 Corole 6500 845 630.5 520 8495.5 1019.46 7476.04
6 Denice 7000 910 679 560 9149 1097.88 8051.12
7 Everett 3000 390 291 240 3921 470.52 3450.48
8 Fran 8000 1040 776 640 10456 1254.72 9201.28
9 Gabe 6500 845 630.5 520 8495.5 1019.46 7476.04
10 Grand total 40500 5265 3928.5 3240 52934 6352.02 46581.48

Solutions:
C3 = B3 * $ C $ 1 F3 = SUM ( B3 : E3 )
D3 = B3 * $ D $ 1 G3 = F3 * $ G $ 1
E3 = B3 * $ E $ 1 H3 = F3 - G3

Exercise 55
KANNADA

REMARKS
PHYSICS

OBTAIN
MARKS
SOCIAL

GRADE
TOTAL
NAME

MATH

PER %
ENG

Daniel 75 50 25 62 36 248 500 49.6 D UNCLEAR


Maureen 64 88 78 66 87 383 500 76.6 A CLEAR
John 25 45 46 66 36 218 500 43.6 D UNCLEAR
Nihar 77 93 95 81 65 411 500 82.2 A1 CLEAR
Somnath 77 75 50 25 15 242 500 48.4 D UNCLEAR
21 CLEAR 2 Students
UNCLEAR 3 Students

Solutions:
Obtained
= SUM ( B2 : F2 )
Marks
Percentage = Marks / Total
Grade =IF(I2>80,"A1",IF(I2>70,"A",IF(I2>60,"B",IF(I2>50,"C",IF(I2>40,"D",IF(I2>33,"E","FAIL"))))))
Remarks =IF ( I2 > 50 , " CLEAR " , " UNCLEAR " )
Clear = COUNTIF ( K2 : K6 , " = clear " )
Unclear = COUNTIF ( K2 : K6 , " = Unclear " )

Exercise 56
Current Date & Time 4/26/2017 19:27
Purchase Price

Expiry Date
Item Name

Sale price

Remarks
Balance

Benefit
Total

Paid
Qty

Sl. No.

1 Panadol 10 20 5 100 50 50 50 6/7/2019 Not Expire


2 Disprin 20 50 4 200 20 180 120 6/7/2014 Expire
3 Brophin 30 60 3 180 30 150 90 4/15/2014 Expire
4 Hajmola 20 35 4 140 40 100 60 10/5/2008 Expire
5 Iodex 30 50 5 250 50 200 100 5/5/2005 Expire
6 Flucoadvan 40 60 3 180 60 120 60 8/8/2008 Expire
7 Gluecoss 50 70 3 210 70 140 60 9/9/2009 Expire
8 Postan 20 25 5 125 50 75 25 6/6/2009 Expire
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
9 Facsin 30 40 3 120 60 60 30 6/7/2020 Not Expire
10 Asfax 10 15 4 60 30 30 20 6/8/2009 Expire
11 Acular 20 35 5 175 80 95 75 6/9/2019 Not Expire
12 Cerilac 30 50 3 150 60 90 60 6/10/2017 Not Expire
13 Nido 615 650 3 1950 1500 450 105 6/11/2009 Expire
14 Nido + 3 225 250 5 1250 100 1150 125 6/12/2009 Expire
15 Farix 40 56 4 224 20 204 64 12/13/2013 Expire
16 Vacsin 23 44 5 220 30 190 105 6/14/2009 Expire
17 Truma 30 60 4 240 50 190 120 6/15/2025 Not Expire
18 Nitron 20 45 5 225 60 165 125 6/16/2009 Expire
19 Humigon 30 50 3 150 70 80 60 6/17/2013 Expire
20 Ors 20 40 6 240 80 160 120 6/18/2011 Expire

Current Date
Total Sale Price X Quantity = Now ( )
and time
= IF ( J3 > NOW ( ) , " Not
Balance Total - Paid Remarks
Expire " , " Expire " )
= ( Purchase Price Sales Price ) X
Benefit
Quantity

Exercise 57
Public School
Attendance Sheet
A B C D E F G H I J K L M N O
22
1
FORMULAS COUNTIF MMULT MMULT SUM
ABSENT FINE

LEAVE FINE

AMOUNT
PRESENT

RS. 100/=

PER DAY
RS. 50/=
ABSENT

PER DAY

TOTAL
NAME

LEAVE
Sl.No.

MON

WED

THU
TUE

SAT
FRI

2 SUN

3 1 Andy L A L P P L 2 1 3 100 150 250


4 2 Betty A P P A L P 3 2 1 200 50 250
5 3 Corole P P P P P P 6 0 0 0 0 0
HOLYDAY

6 4 Denice L P A P P P 4 1 1 100 50 150


7 5 Everett P L P P P A 4 1 1 100 50 150
8 6 Fran L P P P L P 4 0 2 0 100 100
9 7 Gabe P L L P A L 2 1 3 100 150 250
10 8 Henry P A P L P P 4 1 1 100 50 150
11 9 Jake P A P P P A 4 2 0 200 0 200
12 10 Jackson A P A P L P 3 2 1 200 50 250
GRAND
13 36 11 13 1100 650 1750
TOTAL

Present = COUNTIF ( C3 : H3 , " = P " ) Fine 100 = MMULT ( K3 ,100 )


Absent = COUNTIF ( C3 : H3 , " = A " ) Fine 50 = MMULT ( L3, 50 )
Leave = COUNTIF ( C3 : H3 , " = L " ) Total Amount = SUM ( M3 : N3 )

Exercise 58
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel

A B C D E F G H I J K L M

1 FIRST LEVEL TOTAL FEE

2 4500

CLEARANCE

REMARKS
BALANCE

BALANCE
SLIP NO.

TOTAL
NAME

3 MAY DATE JUNE DATE JULY DATE

4 1 0001 A 1500 1/5/2013 1500 1/6/2013 1400 1/7/2013 4500 0 100 CLEAR
5 2 0002 B 1300 1/5/2013 1500 2/6/2013 1200 2/7/2013 4000 500 UNCLEAR
6 3 0003 C 1500 2/5/2013 1500 3/6/2013 1500 3/7/2013 4500 0 CLEAR
7 4 0004 D 1500 2/5/2013 1400 4/6/2013 1500 4/7/2013 4500 0 100 CLEAR
8 5 0005 E 1500 2/5/2013 1450 5/6/2013 1500 5/7/2013 4500 0 50 CLEAR
9 6 0006 F 1500 3/5/2013 1500 6/6/2013 1500 6/7/2013 4500 0 CLEAR
10 7 0007 G 1500 3/5/2013 1500 7/6/2013 1200 7/7/2013 4200 300 UNCLEAR
11 8 0008 H 1499 3/5/2013 1500 8/6/2013 1500 8/7/2013 4499 1 UNCLEAR
12 9 0009 I 1500 4/5/2013 1250 9/6/2013 1500 9/7/2013 4250 250 UNCLEAR
13 10 0010 J 1500 5/5/2013 1500 10/6/2013 1500 10/7/2013 4500 0 CLEAR

Total = D4 + F4 + H4 + L4
Balance =$K$2 - J4
Remarks = IF ( $ K $ 2 = J 4 , CLEAR , UNCLEAR )
23
Exercise 59
A B C D E F G H I J K
1 ONE DAY CRICKET MATCH
MAX

LARGE
SUM
MATCH 1

MATCH 2

MATCH 3

MATCH 4

MIN

SMALL
NAME

AVE

3 Prakash 50 48 75 36 209 52.25 75 36 50 48


4 Rahul 80 15 42 98 235 58.75 98 15 80 42
5 Akshay 78 67 68 48 261 65.25 78 48 68 67
6 Vivek 69 93 79 51 292 73 93 51 79 69
7 Naveen 97 80 38 96 311 77.75 97 38 96 80

SUM = SUM ( B 3 : E 3 ) MIN = MIN ( B 3 : E 3 )


AVERAGE = AVERAGE ( B 3 : E 3 ) LARGE = LARGE ( B 3 : E 3 , 2 )
MAX = MAX ( B 3 : E 3 ) SMALL = SMALL ( B 3 : E 3 , 2 )

Exercise 60
A B C D E F G H I
1 Count FUNCTIONS
2 NAME SALE 1 SALE 2 SALE 3 SALE 4 COUNT COUNTA COUNT BLANK COUNT IF
3 C Likitha 5000 6000 NIL 75000 3 4 0 1
4 Aishwarya 16000 18000 25000 NIL 3 4 0 1
5 Shreya 9000 22000 78000 40000 4 4 0 0
6 Jyothi 12000 60000 NIL 28000 3 4 0 1
7 Deeksha 30000 45000 36000 59000 4 4 0 0
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel

Solutions: Note:
COUNT = COUNT ( B 3 : E 3 ) COUNT Only for numbers
COUNTA = COUNTA ( B 3 : E 3 ) COUNTA Counting for all (numbers + text)
COUNT BLANK = COUNTBLANK ( B 3 : E 3 ) COUNT BLANK Count for empty cell
COUNT IF = COUNTIF ( B 3 : E 3 , * ) COUNTIF Only for text

Exercise 61
A B C D E F
1 INDIAN PUBLIC SCHOOL
2 For the Academic Year 2013-14
3 Sl. No. Roll No. Name Gender House Sibling
4 1 11671 Anagha Ks FEMALE S YES
5 2 11604 Angel Prescilla. Jean Pierre FEMALE G NO
6 3 11774 A Sushma FEMALE S YES
7 4 11661 MadirajuMonasri FEMALE H YES
8 5 11624 Kavy K FEMALE H NO
9 6 11625 Komal Sharma FEMALE S NO
10 7 11703 Sobhagya Gupta FEMALE G YES
11 8 11752 Sujay N FEMALE H NO
12 9 12177 M Archita FEMALE G NO
13 10 11753 Syeda Uroosa Kulsum FEMALE G NO
14 11 11702 InduPriya FEMALE G YES
15 12 11586 Poojitha.K FEMALE H NO
16 13 11751 Shweta FEMALE S YES
24 17
18
14
15
11654
11874
Panchami Nayak
FardeenaSiddiqua
FEMALE
MALE
G
H
YES
NO
19 16 11590 Madan H S MALE S NO
20 17 11687 Sumit Banerjee MALE G YES
21 18 11713 Shreyas MALE H NO
22 19 11637 Ranjana Ashok MALE S NO
23 20 11847 Shubham Kumar FEMALE H NO
24 21 11710 KarthikBm FEMALE S YES
25 22 11608 Gayana N MALE H NO
26 23 11849 Narendra FEMALE S NO
27 24 11805 RekhaChamakeri MALE G YES
28 25 11760 Sushanth N MALE G NO
29 26 11630 Manu Singh MALE H YES
30 27 11607 Shreyash MALE S NO
31 28 11855 Arisha Siddiqui FEMALE G YES
32 29 11646 Akshatha Gowda MALE H YES
33 30 11591 DurgaRatnakar S MALE S YES

Siblings No. Siblings Yes Total Gryffindor Hufflepuff Slytherin


7 5 male 12 3 5 4
9 9 Female 18 7 5 6

16 14 Total 30 10 10 10

Solutions:
Siblings No. =COUNTIFS(D4:D33,"MALE",F4:F33,"NO")
=COUNTIFS(D4:D33,"FEMALE",F4:F33,"NO")
Siblings Yes =COUNTIFS(D4:D33,"MALE",F4:F33,"YES")
=COUNTIFS(D4:D33,"FEMALE",F4:F33,"YES")

Software and Hardware Training Centre Microsoft Advanced Excel


Microsoft Advanced Excel
Gryffindor =COUNTIFS(E4:E33,"G",D4:D33,"male")
=COUNTIFS(E4:E33,"G",D4:D33,"female")
Hufflepuff =COUNTIFS(E4:E33,"H",D4:D33,"male")
=COUNTIFS(E4:E33,"H",D4:D33,"female")
Slytherin =COUNTIFS(E4:E33,"S",D4:D33,"male")
=COUNTIFS(E4:E33,"S",D4:D33,"female")

Exercise 62
Airspace Travel Company
Bi-Weekly Payroll
Period:
Employee ID#

Commissions
Department
First Name

Last Name

Reg Hours

Gross Pay
OT Hours
Location

Reg Pay

OT Pay
Hours

Rate
Adam Landry 20177 Toronto Sales 28 13.5 300
Debra Cutler 14155 Toronto Sales 44 20 1148
Elizabeth Betts 17416 Toronto Sales 31 22 520
Hope Mooney 14661 Toronto Sales 28 20 480
Tim McKay 19191 Toronto Sales 41 16 229
Jaime Burgess 16340 New York Management 36 20 0
Ashley Bradford 17571 Miami Administration 42 17.75 0
25 Deborah Secrett 16735 Miami Administration 38 20 0
Steven Samuel 15563 Miami Sales 36 14 1057
Timothy Zaghit 17552 Vancouver Sales 39 14 1036
Adel Kahlmeier 13089 Miami Administration 32 16 0
John Currie 13434 Toronto Sales 44 19 377
Sonny Nguyen 14792 Vancouver Administration 44 16.5 0
Carol Gregory 16688 Los Angeles Management 40 31 0
Natasha Dyas 16054 Toronto Administration 39 13 0
James Norman 13733 Miami Management 28 36 0
Joshua Garcia 21620 Toronto Administration 29 15 0
Sarah Mckinnon 13041 New York Sales 48 17 906
Shannon Miller 20162 Vancouver Management 42 27 0
Katrina Kormylo 15750 Vancouver Administration 36 16 0
Reg. Hours : if ( hours> 40 , 40 , hours )
Reg. Pay : Reg. hours X rate
OT Hours : if ( hours> 40, hours 40 , 0 )
OT Pay : OT hours X rate X 1.5
Gross Pay : Re. pay + OT pay + commissions

Exercise 63
Kids for Change
Items for Purchase
Item Name Purchase # Order By Quantity Price Subtotal Discount Total
T-shirts #335 Tuesday, May 12, 2015 200 12.99 2598 389.7 2208.3
Buttons #336 Wednesday, May 20, 2015 100 6.5 650 97.5 552.5
Hamburgers #337 Saturday, May 30, 2015 45 9.29 418.05 62.7 355.3
Buns #338 Saturday, May 30, 2015 45 2.19 98.55 14.7 83.7
Water #339 Saturday, May 30, 2015 12 1.99 23.88 3.5 20.2
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
Subtotal : Quantity X Price
Discount : Subtotal X 15 %
Total : Subtotal - Discount

Exercise 64
Universal Corporate Events
Q3 Events
Event
Client Client Code Event Salesperson Fee
Date
Airspace Travel 117 Training 28-Aug David Sutton 325
Blue Jean Landscaping 135 Training 14-Aug Maria Fernandez 550
Jump Start Computers 114 Staff Party 10-Jul David Sutton 450
Kids for Change 250 Staff Party 17-Jul David Sutton 250
Learn Fast College 306 Training 28-Sep Maria Fernandez 175
Lost Revolution 170 Team Building 14-Aug Maria Fernandez 750
Miami Global 185 Training 17-Sep Maria Fernandez 480
Olson College 390 Training 5-Aug Maria Fernandez 450
Stormy BBQ 200 Staff Party 26-Jul David Sutton 550
Underwood College 210 Staff Party 5-Jul Maria Fernandez 325
University of Norwood 420 Team Building 30-Jun David Sutton 750
Winchester Web Design 206 Staff Party 28-Jul David Sutton 750
Count Sum
Training Events Sold by David
Training Events Sold by Maria
26 Count David
Sum David
:
:
=COUNTIF(E5:E16,"David Sutton")
=SUMIF(E5:E16,"David Sutton",F5:F16)
Count Maria : =COUNTIF(E5:E16," Maria Fernandez ")
Sum Maria : =SUMIF(E5:E16," Maria Fernandez ",F5:F16)

Exercise 65
A B
1 Salesperson Mary
2 Sales for Mary 503
3
4 Salesperson Amount
5 Mary 125
6 John 320
7 Andrew 520
8 Matthew 98
9 Mary 300
10 Mary 78
11 Olga 58
12 Matthew 301
13 Andrew 142
14 Matthew 566
15 Andrew 123
B2 : =SUMIF(A5:A15,B1,B5:B15)
Note : Change names in B1 and see the changes

Exercise 66
A B C
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
1 Name Score Result
2 Student 1 65 pass
3 Student 2 39 fail
4 Student 3 57 pass
5 Student 4 45 fail
6 Student 5 64 pass
7 Student 6 77 pass
8 Student 7 78 pass
9 Student 8 32 fail
10 Student 9 73 pass
11 Student 10 73 pass
12
13 Maximum No. 78
14 Minimum No. 32
15 No. of pass 7
16 No. of fail 3
17 Total of pass 487
18 Total of fail 116

Result =IF(B2>=50,"pass","fail")
Maximum No. =MAX(B2:B11)
Minimum No. =MIN(B2:B11)
No. of pass =COUNTIF(C2:C11,"pass")
No. of fail =COUNTIF(C2:C11,"fail")
Total of pass =SUMIF(C2:C11,"pass",B2:B11)
27 Total of fail =SUMIF(C2:C11,"fail",B2:B11)

Exercise 67
A B C D E F G H I
1 Start Time: 8:00 EndTime 17:00 Break: 1:00
2 Sl. no Date EmpCode TimeIn Timeout Late By Early By Total Hours HW
3 1 18-Oct-11 SW-01 8:00 16:45 0:00 0:15 8:45 7:45
4 2 18-Oct-11 SW-02 7:50 17:00 0:00 0:00 9:10 8:10
5 3 18-Oct-11 SW-03 7:45 17:30 0:00 0:00 9:45 8:45
6 4 18-Oct-11 SW-04 8:15 16:30 0:15 0:30 8:15 7:15
7 5 18-Oct-11 SW-05 9:00 16:50 1:00 0:10 7:50 6:50
8 6 18-Oct-11 SW-06 10:00 16:55 2:00 0:05 6:55 5:55
9 7 18-Oct-11 SW-07 8:30 17:10 0:30 0:00 8:40 7:40
10 8 18-Oct-11 SW-08 7:55 17:45 0:00 0:00 9:50 8:50
11 9 18-Oct-11 SW-09 7:45 18:00 0:00 0:00 10:15 9:15
Use Time Functions to enter time = Time ( hour, minute, second )
Late By : =IF(E3<$G$1,$G$1-E3,0)
Early By : =IF(E3<$G$1,$G$1-E3,0)
Total Hours : =E3-D3
HW : =H3-$I$1

Exercise 68
A B C D E
1 Supplier ID Part No. Part Name Part Price Status
2 SP301 A001 Water Pump 68.39 In Stock
3 SP302 A002 Alternator 380.73 In Stock
4 SP303 A003 Air Filter 15.4 In Stock
5 SP304 A004 Wheel bearing 35.16 In Stock
6 SP305 A005 Muffler 160.23 In Stock
7 SP306 A006 Oil Plan 101.89 Out of Stock
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
8 SP307 A007 Brake pads 65.99 In Stock
9 SP308 A008 Brake rotors 85.73 Out of Stock
10 SP309 A009 Headlight 35.19 In Stock
11 SP310 A010 Brake cable 15.49 In Stock
12
13 Part No. A008
14 Part Name Brake rotors
15 Part Price 85.73
16 Status Out of Stock
Part Name : =VLOOKUP(D13,B2:E11,2,0)
Part Price : =VLOOKUP(D13,B2:E11,3,0)
Status : =VLOOKUP(D13,B2:E11,4,0)

Exercise 69
A B C D
1 Sales Person No. Customers Net Sales Profit / Loss
2 Joseph 8 1592 562.772
3 John 8 1088 396.9024
4 Josh 8 1680 752.64
5 Jamie 9 2133 922.7358
6 Jackie 10 1610 579.117
7 Johnson 10 1540 569.8
8 Jonathan 7 1316 427.5684
9 Jagjit 7 1799 708.806
10 Jairam 8 1624 621.3424
28 11
12
Jessy
Javed
6
9
726
2277
235.8774
965.6757
13 Jimmy 6 714 220.983
14 Juno 9 2682 1023.183

1. How many sales did John make? 1088 =VLOOKUP("John",A2:D14,3,FALSE)


2. How many customers did Jamie have? 9 =VLOOKUP("Jamie",A2:D14,2,FALSE)
3. What is the profit of Jessy? 236 =VLOOKUP("Jessy",A2:D14,4,FALSE)

Exercise 70
A B C D E F G
1 Universal Corporate Events
2 Q3 Events
3
Client Event
4 Client Event Salesperson Fee Discount
Code Date
5 Airspace Travel AIR117 Training 28-Aug David Sutton 325
6 Blue Jean Landscaping BLU135 Training 14-Aug Maria Fernandez 550
7 Jump Start Computers JUM114 Staff Party 10-Jul David Sutton 450
8 Kids for Change KID250 Staff Party 17-Jul David Sutton 250
9 Learn Fast College LEA306 Training 28-Sep Maria Fernandez 175
10 Lost Revolution LOS170 Team Building 14-Aug Maria Fernandez 750
11 Miami Global MIA185 Training 17-Sep Maria Fernandez 480
12 Olson College OLS390 Training 5-Aug Maria Fernandez 450
13 Stormy BBQ STO200 Staff Party 26-Jul David Sutton 550
14 Underwood College UND210 Staff Party 5-Jul Maria Fernandez 325
15 University of Norwood UNI420 Team Building 30-Jun David Sutton 750
16 Winchester Web Design WIN206 Staff Party 28-Jul David Sutton 750
17
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
18 Fee Discount
19 0 0.02
20 200 0.03
21 500 0.05
Discount : =VLOOKUP(F5,$B$19:$C$21,2)

Exercise 71
A B C D E F G
1 Learn Fast College
2 Employee Database
3
4 Name ID# Ext. Location Position Salary Tax Rate
5 Ed Neal #2318 x222 St. Thomas Instructor 46000 34%
6 James Ellis #2319 x223 St. Thomas Instructor 45000 34%
7 Ken Dunwell #2320 x224 St. Thomas Instructor 38500 31%
8 Larry Davis #2323 x225 St. Thomas Instructor 42000 34%
9 Jerry Cramden #2324 x335 London Instructor 42500 34%
10 Jenna Anderson #2325 x336 London Instructor 50000 40%
11 Pamela Bunnel #2329 x337 London Instructor 36000 31%
12 Rita Baker #2330 x338 London Instructor 44000 34%
13 Drew Allen #1875 x226 St. Thomas Director 62000 42%
14 Patty Mills #2327 x227 St. Thomas Admissions 31500 28%
15 Dan George #2335 x228 St. Thomas President 75000 42%
16 Barb Hill #1920 x339 London Director 65000 42%
17 Jan Wu #2337 x340 London Admissions 35000 31%
29 18
19 Tax Table
20 Income Bracket Tax Rate
21 0 15.00%
22 22000 28.00%
23 35000 31.00%
24 40000 34.00%
25 48000 39.60%
26 62000 42.00%
Tax Rate : =VLOOKUP(F5,$A$21:$B$26,2)

Exercise 72
A B C D E
1 Tobias Bernhardt Professional Services
2
3 Customer ID# Service Hours Rate Total Fees
4 001 Consulting 37 28 1036
5 002 Accounting 38 24 912
6 003 Accounting 54 24 1296
7 004 Accounting 46 24 1104
8 005 Accounting 61 24 1464
9 006 Consulting 43 28 1204
10 007 Consulting 47 28 1316
11 008 Accounting 31 24 744
12 009 Consulting 40 28 1120
13 010 Consulting 26 28 728
14 011 Consulting 44 28 1232
15
16 Rates
17 Accounting 24
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
18 Consulting 28
Rate : =VLOOKUP( B4,$A$17 :$B$18 ,2)
Total Fees : Hours X Rate

Exercise 73
A B C D E F G H
1 Employee Retirement Savings Contributions
2 Employee Department Q1 Q2 Q3 Q4 Annual Total Rate
3 Craig McInnis Fundraising 100 200 0 0 300 20%
4 James Piercey Admin 100 0 0 100 200 10%
5 Janice Burke HR 300 250 175 250 975 40%
6 Marsha Drew Fundraising 200 200 200 200 800 40%
7 Ruth Bowers Admin 0 0 0 150 150 10%
8 Shannon Woodhouse HR 0 0 300 300 600 30%
9 Tiffany Spencer Fundraising 250 250 350 250 1100 50%
10 Carla Joyce HR 250 200 150 100 700 30%
11 James Jones Fundraising 180 180 180 180 720 30%
12 Ray Peters Admin 300 0 350 200 850 40%
13 Charles Oakley Admin 65 65 65 65 260 20%
14 Gaza Durr HR 120 160 120 160 560 30%
15 Sheila Coffield Fundraising 275 380 290 425 1370 50%
16
17 Contribution Range Rate
18 0 to 249 10%
19 250 to 499 20%
30 20
21
500
750
to 749
to 999
30%
40%
22 1000 and up 50%
Annual Total : = sum ( C3 : F3 )
Rate : =VLOOKUP(G3,$A$18:$C$22,3)

Exercise 74
Name sheet 1 as Price List
A B C D
1 Universal Corporate Events
2 Service Price List
3
4 Description Old Price Price Deposit
5 Price Increase 10%
6 DJ, band or other entertainment 390 429 100
7 Overall dcor, lighting, floor plan and layout 350 385 100
8 Selecting theme or style 200 220 50
9 Photographer, Videographer 200 220 50
10 Transportation and lodging 180 198 50
11 Venue selection 150 165 25
12 Guest list management 150 165 25
13 Caterer; Food, beverage, Tastings 140 154 25
14 Total Package Subtotal 1,936.00
15 Package Discount 135.52
16 Total Package Price 1,800.48

Price : = B6 + B6 * $B$5
Total Package Subtotal : =SUM ( C6 : C13 )
Package Discount : = C14 * 7%
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
Total Package Price : = C 14 * 93%
Name sheet 2 as VIP Price List
A B C D E
1 Universal Corporate Events
2 Service Price List for VIP's
3
4 Description Old Price Price VIP Price Deposit
5 Price Increase 10%
6 VIP Discount 15%
7 DJ, band or other entertainment 390 429 365 100
8 Overall dcor, lighting, floor plan and layout 350 385 327 100
9 Selecting theme or style 200 220 187 50
10 Photographer, Videographer 200 220 187 50
11 Transportation and lodging 180 198 168 50
12 Venue selection 150 165 140 25
13 Guest list management 150 165 140 25
14 Caterer; Food, beverage, Tastings 140 154 131 25
15 VIP Package Subtotal 1,645.60
16 Package Discount 115.19
17 VIP Package Price 1,530.41
Price : =B7+B7*$B$5
VIP Price : =C7-C7*$B$6
VIP Package Subtotal : = SUM (D7 : D14 )
Package Discount : = D15 * 7%
31 VIP Package Price : = D15 * 93%

Exercise 75
A B C D E
1 Region East West North South
2 Sales 1 200 350 275 410
3 Sales 2 300 400 300 420
4 Sales 3 400 450 325 430
5 Sales 4 500 500 350 440
6
7 North 275
B7 : =HLOOKUP(A7,A1:E5,2,FALSE)

Exercise 76
A B C
1 Code Product Price
2 ABC Paper 5.00
3 DEF Lamp 15.00
4 GHI Desk 75.00
5 JKL Pencil 0.50
6
7 GHI 75.00
B7 : =VLOOKUP(A7,$A$2:$C$5,3,FALSE)

Exercise 77
Customer Name
Mahesh
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
Pavankumar
Gopal
Akash
Puneet Prakash
Vinay Kumar
Pradeep
Naveen
Akshay
Vishal
Question : Add Mr. in front of each persons name
Solution : =CONCATENATE("Mr. ",A2)

Exercise 78
Customer Name
Sneha
Sandhya
Ramya
Priyanka
Tejaswini
Kusuma
Rajeshwari
Pooja
Sonia
Swathi
Question : Add Miss. In front of each persons name
32 Solution : =CONCATENATE("Miss. ",A2)

Exercise 79
Sl. No. Name Gender Customer ID
35 Mahesh Male
36 Swathi Female
37 Pavankumar Male
38 Sonia Female
39 Gopal Male
40 Pooja Female
41 Akash Male
42 Rajeshwari Female
43 Puneet Prakash Male
44 Kusuma Female
45 Vinay Kumar Male
46 Tejaswini Female
47 Pradeep Male
48 Priyanka Female
49 Naveen Male
50 Ramya Female
51 Akshay Male
52 Sandhya Female
53 Vishal Male
54 Sneha Female
Question : Add Mr. or Miss. in front of each persons name
Solution : =IF(C2="Male",CONCATENATE("Mr. ",B2),CONCATENATE("Miss. ",B2))
Question : Assign Customer ID for each Customer
Eg: Customer ID for Mahesh is CUST0035, for swathi CUST0036

Software and Hardware Training Centre Microsoft Advanced Excel


Microsoft Advanced Excel
Solution : =CONCATENATE("CUST00",B2)

Exercise 80
Sl. No. Name Gender Account No. Amount SMS
35 Mahesh Male 2122321 150
36 Swathi Female 2122322 138
37 Pavankumar Male 2122323 90
38 Sonia Female 2122324 56
39 Gopal Male 2122325 132
40 Pooja Female 2122326 145
41 Akash Male 2122327 98
42 Rajeshwari Female 2122328 142
43 Puneet Prakash Male 2122329 60
44 Kusuma Female 2122330 95
45 Vinay Kumar Male 2122331 124
46 Tejaswini Female 2122332 130
47 Pradeep Male 2122333 65
48 Priyanka Female 2122334 75
49 Naveen Male 2122335 145
50 Ramya Female 2122336 120
51 Akshay Male 2122337 135
52 Sandhya Female 2122338 120
53 Vishal Male 2122339 150
54 Sneha Female 2122340 130
Question:
33 Type sms for the following Customers
DearMahesh, an amount of Rs 150 has been debited from your account no 2122321

Solution:
=CONCATENATE("Dear ",B2," an amount of Rs. ",E2," has been debited from your account No. ",D2)

Exercise 81
A B C D
1 Order ID First Name Last Name Result
2 1 Nishanth Shetty 97
3 2 Manish Kumar 47
4 3 Ajith Nadig 28
5 4 Madhav Prasad 75
6 5 Akshay Kumar 30
7 6 Himanshu Kumar 79
8 7 Anish Prakash 20
9 8 Shubha Subra 16
10 9 Deeksha Rao 59
11 10 Ashish Patel 96
12 11 Aditya Kalyan 66
13 12 Sadique Ali Khan 45
14
15 Minimum result MIN 16
16 Maximum result MAX 97
17 2nd smallest result SMALL 20
18 2nd largest result LARGE 96
19 The average result AVERAGE (MEAN) 55
20 The middle MEDIAN 53
21 The most frequently occurring number MODE #N/A

Software and Hardware Training Centre Microsoft Advanced Excel


Microsoft Advanced Excel

MIN =MIN(D2:D13) AVERAGE (MEAN) =AVERAGE(D2:D13)


MAX =MAX(D2:D13) MEDIAN =MEDIAN(D2:D13)
SMALL =SMALL(D2:D13,2) MODE =MODE(D2:D13)
LARGE =LARGE(D2:D13,2)

Exercise 82
A B C D E F G H
1 Client Spent per Month
2 Jan Feb Mar Apr May Jun Total Running Total
3 Client A 274 855 750 741 894 130 3,644 3,644
4 Client B 586 756 510 439 411 555 3,257 6,900
5 Client C 669 435 228 488 776 398 2,994 9,894
6 Client D 197 623 546 175 98 606 2,245 12,140
7 Client E 421 516 938 642 840 157 3,513 15,653
8 Sum 2,147 3,185 2,971 2,485 3,019 1,846 15,653
9 Count 5 5 5 5 5 5

Total =SUM(B3:G3) Sum =SUM(B3:B7)


Running Total =SUM($H$3:H3) Count =COUNT(B3:B7)

Exercise 83
Sum Across Multiple Sheets
Rename the three sheets as Jan, Feb and Mar
34 In cell A1, a number is stored in all the sheets and we want to take a sum
Let us enter number 10 in cell A1 in all the sheets to get the output as 30
We can put the formula in any cell in any sheet
Type =SUM(in any cell in any of the sheet in the workbook
Select the tab for the first sheet like Jan
Hold the shift key and then select the tab for the last sheet, Mar
Click on the specific cell i.e. cell A1 for which you want to take a sum ( you can also drag for range )
The formula would be =SUM(Jan:Mar!A1)
Then press Enter. We will get the total from cells in different sheets

Exercise 84
Calculate a Percentage (%) Increase and Decrease
A B C D E F G H I J K L
Street Name

% Decrease
First Name

% Increase
Last Name

New Price

New Price
Location
Order ID

Product

Product
Price
Date

Inverness
2 100 Aleshia List Manchester 7/4/2016 Toaster 25.99 10% 28.59 5% 24.69
Drive
Durham
3 101 Mary Carte Liverpool 7/6/2016 Spoon 1.99 10% 2.19 5% 1.89
Court
Williams
4 102 Larissa Albert Liverpool 7/13/2016 Egg Cup 3.99 10% 4.39 5% 3.79
Street
Morris
5 103 Sophie Montas London 7/16/2016 Tray 4.99 10% 5.49 5% 4.74
Street
6 104 Margaret Scheidegger Grant Manchester 7/16/2016 Toaster 26.99 10% 29.69 5% 25.64
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
Avenue
Hillcrest
7 105 Peter Patricio Manchester 7/18/2016 Plate 2.99 10% 3.29 5% 2.84
Avenue
8 106 Sharon Lum Route 1 Liverpool 7/24/2016 Mug 5.99 10% 6.59 5% 5.69
Lawrence
9 107 Harry Monahan London 7/27/2016 Mug 5.99 10% 6.59 5% 5.69
Street
Garfield
10 108 Lenny Shadley London 7/29/2016 Spoon 1.99 10% 2.19 5% 1.89
Avenue
Pleasant
11 109 Sheila Grisham London 8/1/2016 Egg Cup 3.99 10% 4.39 5% 3.79
Street
Sherwood
12 110 Mary Beverley Birmingham 8/3/2016 Plate 2.99 10% 3.29 5% 2.84
Drive
Chestnut
13 111 Vera Breece Birmingham 8/3/2016 Plate 2.99 10% 3.29 5% 2.84
Street

New Price =H2*(1+I2)


New Price =H2*(1-K2)

Exercise 85
RANK - Find the rank of a value in a list
A B C D E
1 Order ID First Name Last Name Result Rank
2 1 Aleshia List 97 1
3 2 Mary Carte 47 7
35 4 3 Larissa Albert 28 10
5 4 Sophie Montas 75 4
6 5 Margaret Scheidegger 30 9
7 6 Peter Patricio 79 3
8 7 Sharon Lum 20 11
9 8 Harry Monahan 16 12
10 9 Lenny Shadley 59 6
11 10 Sheila Grisham 96 2
12 11 Mary Beverley 66 5
13 12 Vera Breece 45 8
=RANK(D2,$D$2:$D$13)

Exercise 86
Data Manipulation
CONCATENATE
A B C D E F G H I J K L
First Name

First Name
Last Name

Reference
Full Name

Last Name
Search
Right

Find
Left

Len
ID

2 G1212 Aleshia List


3 G8123 Mary Carte
4 G3078 Larissa Albert
5 G1384 Sophie Montas
6 G9335 Margaret Scheidegger

Software and Hardware Training Centre Microsoft Advanced Excel


Microsoft Advanced Excel
7 G7340 Peter Patricio
8 G2394 Sharon Lum
9 G2341 Harry Monahan
10 G9483 Lenny Shadley
11 G2395 Sheila Grisham
12 G0483 Mary Beverley
13 G8492 Vera Breece

Full Name =CONCATENATE(B2," ",C2)


Left =LEFT(B2,3)
Right =RIGHT(A2,4)
Reference =CONCATENATE(E2,F2)
Search =SEARCH(" ",D2)
Find =FIND("G",A2)
Len =LEN(D2)
First Name =LEFT(D2,SEARCH(" ",D2) 1)
Last Name =RIGHT(D2,LEN(D2) SEARCH(" ",D2))

Exercise 87
A B C D E F
1 ID First Name Last Name Upper Lower Email Username
2 G1212 Aleshia List
3 G8123 Mary Carte
36 4 G3078 Larissa Albert
5 G1384 Sophie Montas
6 G9335 Margaret Scheidegger
7 G7340 Peter Patricio
8 G2394 Sharon Lum
9 G2341 Harry Monahan
10 G9483 Lenny Shadley
11 G2395 Sheila Grisham
12 G0483 Mary Beverley
13 G8492 Vera Breece

Upper =UPPER(B2)
Lower =LOWER(B2)
Email =CONCATENATE(LEFT(LOWER(B2),1),".",LOWER(C2),"@domain.co.uk")
Username =LEFT(F2,SEARCH("@",F2)-1)

Exercise 88
A B C D E F G H I J K L M
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel

Calculation

Nested IF
than 20?

IFERROR
Location
Order ID

Qty Sold
Product

Product

Greater
Colour

Price

Red?

AND
Car?

OR
1

2 N498 Manchester Car red 2.99 30


3 N234 Liverpool Truck red 1.99 63
4 N378 Liverpool Car blue 3.99 72
5 S434 London Car grey 4.99 0
6 N847 Manchester Car green 5.66 49
7 N849 Manchester Truck yellow 2.99 19
8 N394 Liverpool Car blue 5.99 38
9 S940 London Van orange 5.99 o
10 S645 London Van pink 1.99 20
11 S234 London Car blue 3.99 45
12 M495 Birmingham Van green 2.99 34
13 M473 Birmingham Car yellow 2.99 12

Red =IF(D2="Red","Yes","No")
Car =IF(C2<>"Car","Other","Car")
Greater than 20 =IF(F2>20,"Yes","No")
Or =IF(OR(C2="Car",F2>20),"Discount","Standard")
And =IF(AND(C2="Car",F2>20),"Discount","Standard")
Calculation =IF(C2="Car",E2*F2,0)
IFERROR =IFERROR(E2*F2,0)
Nested IF =IF(C2="Car","Car",IF(F2>30,"Investigate","Other"))
37
Exercise 89
Counting
A B C D E F G H
1 Order Location Product Colour Product Qty Sold Unique Lookup Column
ID Price
2 N498 Manchester Car red 2.99 30 ManchesterCarred
3 N234 Liverpool Truck red 1.99 63 LiverpoolTruckred
4 N378 Liverpool Car blue 3.99 72 LiverpoolCarblue
5 S434 London Car green 4.99 0 LondonCargreen
6 N847 Manchester Car green 5.66 49 ManchesterCargreen
7 N849 Manchester Truck yellow 2.99 19 ManchesterTruckyellow
8 N394 Liverpool Car blue 5.99 38 LiverpoolCarblue
9 S940 London Van red 5.99 0 LondonVanred
10 S645 London Van blue 1.99 20 LondonVanblue
11 S234 London Car blue 3.99 45 LondonCarblue
12 M495 Birmingham Van green 2.99 34 BirminghamVangreen
13 M473 Birmingham Car yellow 2.99 12 BirminghamCaryellow
14 12 12
15
16
17 Car 7
18 Truck 2
19 Van 3
20 12 TRUE
21
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
22 Orders over 20 units 7
23 Orders that aren't for cars 5
24 Orders that start with 'N' 6
25
26 Orders for items in first half 7
alphabet
27 Orders for items in second 5
half alphabet
28 12 TRUE
29
30 The number of orders that are 6
above average
31 The number of orders that are 6
below average
32 12 TRUE
33
34 Car red 1
35 Car blue 3
36 Car green 2
37 Car yellow 1
38 7
39
40 Manchester Car red 1
41 Manchester Car blue 0
38 42 Manchester Car green 1
43 Manchester Car yellow 0
44 2

H2 =CONCATENATE(B2,C2,D2:D2)
C14 =COUNTA(C2:C13)
F14 =COUNT(F2:F13)
C17 =COUNTIF($C$2:$C$13,$C17)
C18 =COUNTIF($C$2:$C$13,$C18)
C19 =COUNTIF($C$2:$C$13,$C19)
F20 =SUM(F17:F19)
G20 =F20=F14
F22 =COUNTIF(F2:F13,">20")
F23 =COUNTIF(C2:C13,"<>Car")
F24 =COUNTIF(A2:A13,"N*")
F26 =COUNTIF(C2:C13,"<n")
F27 =COUNTIF(C2:C13,">=n")
F28 =SUM(F26:F27)
G28 =F28=F14
F30 =COUNTIF(F2:F13,"<"&AVERAGE(F2:F13))
F31 =COUNTIF(F2:F13,">"&AVERAGE(F2:F13))
F32 =SUM(F30:F31)
G32 =F32=F14
F34 =COUNTIFS($C$2:$C$13,$C34,$D$2:$D$13,$D34)
F35 =COUNTIFS($C$2:$C$13,$C35,$D$2:$D$13,$D35)
F36 =COUNTIFS($C$2:$C$13,$C36,$D$2:$D$13,$D36)
F37 =COUNTIFS($C$2:$C$13,$C37,$D$2:$D$13,$D37)
F38 =SUM(F34:F37)
F40 =COUNTIF($H$2:$H$13,CONCATENATE(B40,C40,D40))
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
F41 =COUNTIF($H$2:$H$13,CONCATENATE(B41,C41,D41))
F42 =COUNTIF($H$2:$H$13,CONCATENATE(B42,C42,D42))
F43 =COUNTIF($H$2:$H$13,CONCATENATE(B43,C43,D43))
F44 =SUM(F40:F43)

Exercise 90
SUMIFS
A B C D E F G H I
Order Product Qty Total
1 Location Product Colour Unique Lookup Column
ID Price Sold Price
2 N498 Manchester Car red 2.99 30 89.70 ManchesterCarred
3 N234 Liverpool Truck red 1.99 63 125.37 LiverpoolTruckred
4 N378 Liverpool Car blue 3.99 72 287.28 LiverpoolCarblue
5 S434 London Car green 4.99 0 0.00 LondonCargreen
6 N847 Manchester Car green 5.66 49 277.34 ManchesterCargreen
7 N849 Manchester Truck yellow 2.99 19 56.81 ManchesterTruckyellow
8 N394 Liverpool Car blue 5.99 38 227.62 LiverpoolCarblue
9 S940 London Van red 5.99 0 0.00 LondonVanred
10 S645 London Van blue 1.99 20 39.80 LondonVanblue
11 S234 London Car blue 3.99 45 179.55 LondonCarblue
12 M495 Birmingham Van green 2.99 34 101.66 BirminghamVangreen
13 M473 Birmingham Car yellow 2.99 12 35.88 BirminghamCaryellow
14 1,421.01
39 15
16 Car 1,097.37
17 Truck 182.18
18 Van 141.46
19 1,421.01 True
20
21 Car red 89.70
22 Car blue 694.45
23 Car green 277.34
24 Car yellow 35.88
25 1,097.37 True
26
27 Manchester Car red 89.70
28 Manchester Car blue 0.00
29 Manchester Car green 277.34
30 Manchester Car yellow 0.00
31 367.04

Total Price E2 * F2
Unique Lookup
=CONCATENATE(B2,C2,D2)
Column
G14 =SUM(G2:G13)
G16 =SUMIF($C$2:$C$13,$C16,$G$2:$G$13)
G17 =SUMIF($C$2:$C$13,$C17,$G$2:$G$13)
G18 =SUMIF($C$2:$C$13,$C18,$G$2:$G$13)
G19 =SUM(G16:G18)
H19 =G19=G14
G21 =SUMIFS($G$2:$G$13,$C$2:$C$13,$C21,$D$2:$D$13,$D21)
Software and Hardware Training Centre Microsoft Advanced Excel
Microsoft Advanced Excel
G22 =SUMIFS($G$2:$G$13,$C$2:$C$13,$C22,$D$2:$D$13,$D22)
G23 =SUMIFS($G$2:$G$13,$C$2:$C$13,$C23,$D$2:$D$13,$D23)
G24 =SUMIFS($G$2:$G$13,$C$2:$C$13,$C24,$D$2:$D$13,$D24)
G25 =SUM(G21:G24)
H25 =G25=G16
G27 =SUMIF($I$2:$I$13,CONCATENATE(B27,C27,D27),$G$2:$G$13)
G28 =SUMIF($I$2:$I$13,CONCATENATE(B28,C28,D28),$G$2:$G$13)
G29 =SUMIF($I$2:$I$13,CONCATENATE(B29,C29,D29),$G$2:$G$13)
G30 =SUMIF($I$2:$I$13,CONCATENATE(B30,C30,D30),$G$2:$G$13)
G31 =SUM(G27:G30)

Exercise 91
Lookups
A B C D E F G H I J
Order Product Qty Product
1 Location Product Colour Total Price Concatenate
ID Price Sold Price
2 N498 Manchester Car red 2.99 30 89.70 ManchesterCarred 2.99
3 N234 Liverpool Truck red 1.99 63 125.37 LiverpoolTruckred 1.99
4 N378 Liverpool Car blue 3.99 72 287.28 LiverpoolCarblue 3.99
5 S434 London Car green 4.99 0 0.00 LondonCargreen 4.99
6 N847 Manchester Car green 5.66 49 277.34 ManchesterCargreen 5.66
7 N849 Manchester Truck yellow 2.99 19 56.81 ManchesterTruckyellow 2.99
8 N394 Liverpool Car blue 5.99 38 227.62 LiverpoolCarblue 5.99
9 S940 London Van red 5.99 0 0.00 LondonVanred 5.99
10 S645 London Van blue 1.99 20 39.80 LondonVanblue 1.99
40 11 S234 London Car blue 3.99 45 179.55 LondonCarblue 3.99
12 M495 Birmingham Van green 2.99 34 101.66 BirminghamVangreen 2.99
13 M473 Birmingham Car yellow 2.99 12 35.88 BirminghamCaryellow 2.99
14 1,421.01
15
16 N847
17 Location Manchester
18 Product Car
19 Colour Green
20 Price 5.66
21
22 Location London
23 Product Car
24 Colour Green
25 Price 4.99

Total Price =E2*F2


Concatenate =CONCATENATE(B2,C2,D2)
Product Price =E2
B17 =VLOOKUP($B$16,$A$1:$G$14,2,FALSE)
B18 =VLOOKUP($B$16,$A$1:$G$14,3,FALSE)
B19 =VLOOKUP($B$16,$A$1:$G$14,4,FALSE)
B20 =VLOOKUP($B$16,$A$1:$G$14,5,FALSE)
B25 =VLOOKUP(CONCATENATE(B22,B23,B24),$I$1:$J$14,2,FALSE)

Software and Hardware Training Centre Microsoft Advanced Excel

You might also like