Lecture
Lecture
Suppose that you want to calculate commission that has to be paid to each salesman according to the
following criteria:
If total sales is Then Commission
Greater than Tk. 20000 10% of Total Sale
Greater than Tk. 15000 8% of Total Sale
Greater than Tk. 10000 5% of Total Sale
Greater than Tk. 7000 3% of Total Sale
Greater than or equal to Tk. 7000 2% of
Total Sale
Solution:
Move the cell pointer to cell D2🡪Type the formula
=IF(C2>20000,C2*10%,IF(C2>15000,C2*8%,IF(C2>10000,C2*5%,IF(C2>7000,C2*3%,C2*2%))))🡪Pr
ess Enter🡪Commission for the 1st salesman Kalam will be shown in cell D2.
❖ To calculate commission for other salesman you don’t need to type formula again in cells D3,
D4, D5, ……… D12. You just follow Filling Method A or B
in a course.
Suppose you want to calculate the final tutorial marks obtained by each student by averaging
the best two marks out of three.
Solution:
Move the cell pointer to cell F2🡪Type the formula
=(SUM(C2:E2)-MIN(C2:E2))/2🡪Press Enter🡪 Average marks obtained by Atik bearing roll no. 1 will
appear in cell F2.
To calculate average marks for other students you don’t need to type formula again in cells F3, F4, F5,
……… F11. You just follow Filling Method A or B described in page 105
Consider the following list of data that contains marks in six courses obtained by each student in the
course end Examination of Post-Graduate Diploma in Computer and Information Technology.
(N.B. to enter column names like the one shown in the figure, select cells A1 and B1 🡪Then Click
Merge and Center icon on the Standard Toolbar🡪Type Name in the merged cell. Similarly,
select cell B1 and B2🡪Merge these two cells into one cell on the above process and type Roll in the
merged cell. Select cells C1, D1 and E1🡪Merge these three cells into one cell and type CIT-301 in the
merged cell and so on).
Suppose you want to calculate letter grade (LG) and grade point (GP) for each course for each
student and finally you want to calculate grade point average (GPA) for each student according to the
following criteria:
If marks obtained is Then Letter Grade is Then Grade point is
From 90 to 100 A+ 4.00
From 80 to 89 A 3.50
From 70 to 79 B+ 3.00
From 60 to 69 B 2.50
From 50 to 59 C 2.00
From 40 to 49
D
1.00
Less than 40 F 0.00
Solution:
Step-1: To calculate letter grade (LG) for course CIT-301:
Move the cell pointer to cell D3🡪Type the formula
=IF(C3>=90,"A+",IF(C3>=80,"A",IF(C3>=70,"B+",IF(C3>=60,"B",IF(C3>=50,"C",IF(C3>=40,"D","F
"))))))🡪Press Enter🡪LG in course CIT-301 for Shilpi bearing roll no. 2 will be shown in cell D3.
❖ To calculate LG in course CIT-301 for other students you don’t need to type formula again in
cells D4, D5 …..,D20. You just follow Filling Method A or B described in page 105