Practical Sem VI Printout
Practical Sem VI Printout
Prepare a worksheet containing the Name and taxable income in columns A and B
respectively from rows 1 to 6, the first row contains the headings and the remaining rows
contain the data. Use your own data.
Carry out the following operations on this worksheet.
1. Save the worksheet under your name followed by your roll no. , question no. e.g.
MONA1232
2. Obtain the income tax in column C using the following income tax slabs.
Taxable Income(Rs) Rate
First 1,00,000 Nil
Next 60,000 10%
Next 70,000 20%
Excess 30%
3. Obtain the surcharge in column D, where surcharge is 3% of the income tax for those
whose taxable income is above Rs 5,00,000
4. Obtain the total tax in column E, as the sum of income tax and surcharge.
Solution:
Saving the worksheet:
1. After typing in the data in columns A and B, click on the office button and select
‘Save as’.
2. Select Excel workbook, type the name as ‘MONA1232’(i.e. name and roll number,
then 2 for the question no.) and click on save.
Income tax
1. Select C1 and type the heading ‘INCOME TAX’.
2. Select C2 and type
=IF(B2<=100000,0,IF(B2<=160000,(B2-100000)*10%,IF(B2<=230000,
60000*10%+(B2-160000)*20%,60000*10%+70000*20%+(B2-230000)*30%)))
and press enter.
3. Select C2 and drag the fill handle to C6
Surcharge
1. Select D1 and type the heading ‘SURCHARGE’
2. Select D2 and type =IF(B2>500000,C2*3%,0) and press enter.
3. Select D2 and drag the fill handle to D6
Total Tax
1. Select E1 and type the heading ‘TOTAL TAX’
2. Select E2 and type =C2+D2 (or =SUM(C2:D2) and press enter.
3. Select E2 and drag the fill handle to E6
Practical no 2
DATE AND TIME FUNCTIONS
DATE()
The DATE function returns the sequential serial number that represents a particular date. For
example, the formula
=DATE(2008,7,8)
DATEVALUE()
gives serial number for given date text. Date-text means date in quotes.
DAY()
Returns the day of a date, represented by a serial number. The day is given as an integer
ranging from 1 to 31.
=DAY(“25-DEC-2009”) gives 25
MONTH():-
Gives month of the year for the given serial number or date-text
YEAR()
Gives year of the year for the given serial number or date-text
WEEKDAY()
Gives day of the week for the given serial number or date-text
Gives number of days between two given dates based on an assumption that there are 360
days in a year i.e. 12 months of 30 days.
CORREL()
this function returns the correlation coefficient of the array1 and array2 cell ranges. use the
correlation coefficient to determine the relationship between two properties.
Syntax
CORREL(array1,array2)
TIME()
Gives time in HH:MM AM/PM form (12 hrs.) for given time. You have to give time as per
24hrs clock with HH/MM/SS
TIMEVALUE()
This function is used to get serial number for time-text.Time-text means time in quotes.
TODAY()
This function is used to get the current date generally date will be in American format
NOW()
This function is used to get the current date as well as current time. Generally date will be in
American format and time as per 24 hrs clock.
RIGHT()
This function is used to find the characters from the Right side of the string by default it gives
one character from the Right side
e.g =RIGHT(“VIVA COLLEGE”,4) gives LEGE
MID()
This function is used to find the character from middle of the string from mth characters and
gives n number of characters
e.g =MID(“VIVA COLLEGE”,4,3) gives A C
UPPER()
This function is used to convert lowercase alphabets in to uppercase
e.g =UPPER(“viva college”) gives VIVA COLLEGE
LOWER()
This function is used to convert uppercase alphabets in to lowercase
e.g =LOWER(“VIVA COLLEGE”) gives viva college
PROPER()
It is used to capitalized the first alphabet in a text string and any other alphabet in the text that
follows any non-alphabetic character; converts all other alphabets into lowercase
e.g =PROPER(“VIVA COLLEGE”) gives Viva College
LEN()
This function is used to find length of a string
e.g =LEN(“VIVA COLLEGE”) gives 12
TRIM()
This function is used to remove all the blank spaces except single blank space between two
words
e.g =TRIM(“VIVA COLLEGE”) gives VIVA COLLEGE
FIXED()
This function is used to round a number to the specified number of decimals, formats the
number in decimal format using a period and commas and return the result as text. By default
no. of decimals are two and no_commas is false.
=FIXED(13333.333,2) gives 13,333.33
PRACTICAL NO 3
MATHS FUNCTIONS
GRADE BASIC HRA PF NET
A 1000 150 80 1070
B 4000 600 320 4280
B 5000 750 400 5350
A 3000 450 240 3210
SUMIF()
Adds all the numbers in a range for which given condition is true. If sum_range(2 nd Range)
is given then values from sum_range are added otherwise values from range(1 st range) are
added where the given condition is true
e.g =SUMIF(B2:B5,”>3500”,E2:E5) gives 9630
AVERAGEIF()
This function is used to find average of all the numbers in a range for which given condition
is true. If average_range(2nd Range) is given then values from average_range are considered
otherwise values from range(1st range) are considered where the given condition is true
e.g =AVERAGEIF(B2:B5,”>3500”,E2:E5) gives 4815
COUNT()
Counts the number of cells that contains numbers. Remember date and time is treated as a
number. If there is a text entry in the range or as an argument then it will not give an error
e.g =COUNT(B2:B5) gives 4
COUNTA()
Counts the number of cells that are not empty. If there is text entry in the range or as an
argument then it will not give an error
e.g =COUNTA(B2:B5) gives 4
COUNTBLANK()
Counts the number of cells that are empty. If there is text entry in the range or as an argument
then it will not give an error
e.g =COUNTBLANK(B2:B5) gives 0
COUNTIF()
This function will count number of cells that are satisfying given condition
e.g =COUNTIF(B2:B5,”>1000”) gives 3
LARGE()
This function returns the kth largest value in a dataset. You can use this function to select a
value based on its relative standing. For e.g. you can use large to return the highest runner up
or 3rd place value.
e.g =LARGE(B2:B5,2) gives 4000
SMALL()
This function returns the kth smallest value in a dataset. You can use this function to select a
value based on its relative standing. For e.g. you can use small to return the lowest, 2 nd lowest
or 3rd lowest value.
e.g =SMALL(B2:B5,2) gives 3000
Practical no 4
Prepare a worksheet containing the Name of the salesman and sales for the months of
January, February and March in columns A, B, C and D respectively from rows 1 to 26, the
first row contains headings and the remaining rows contain data. Use your own data ensuring
that the sales entered in a month are minimum 100000 and maximum 300000.
Carry out the following operations on this worksheet.
1. Enter the following Bonus Table in columns H and I.
SALES BONUS
300000 2000
400000 3000
500000 4000
600000 5000
700000 6000
800000 7000
2. Save the worksheet under your name followed by your roll no. , question no. e.g.
MONA1235
3. Obtain the total sales of each salesman in the first quarter in column E.
4. Using VLOOKUP function obtain the bonus amounts to be given to each salesman in
column F.(Note if the total sales are say 319000, which is above 300000 and below 400000
then the Bonus amount will be 2000 )
Solution:
Saving the worksheet:
1. After typing in the data in columns A,B,C,D and Columns H,I click on the office
button and select ‘Save as’.
2. Select Excel workbook, type the name as ‘MONA1235’(i.e. name and roll number,
then 5 for the question no.) and click on save.
Total Sales:
1. Select E1 and type the heading ‘Total Sales’.
2. Select E2 and type =SUM(B2:D2) and press enter.
3. Select E2 and drag the fill handle to E26.
Bonus:
1. Select F1 and type the heading ‘Bonus’.
2. Select F2 and type =VLOOKUP(E2,$H$2:$I$7,2) and press enter.
3. Select F2 and drag the fill handle to F26.
PRACTICAL NO 5
THE FOLLOWING DATA HAS BEEN ENTERED IN EXCEL WORKSHEET
GEND SAL
NAME ER AGE CITY ES
MUKU 4980
ND M 25 SURAT 00
RAVEE 5750
NA F 23 NASIK 00
3780
SNEHA F 26 CHENAI 00
PARVE 6000
EN M 29 NASIK 00
KOLKA 6450
VILAS M 32 TA 00
NAGPU 7925
ANIKET M 27 R 65
1)FILTER
1. Select the range A1:E7
2. Click at Data Tab Filter.
3. Click at drop down of SALES
-Click at Number Filters
-Click at Less Than
-In the 2nd box type 40000
-Click at OK Button
2)FILTER
1. Select the range A1:E7
2. Click at Data Tab Filter.
3. Click at drop down of GENDER
-Click at TEXT Filters
-Click at Equals To
-In the 2nd box type M
-Click at OK Button.
3)FILTER
1. Select the range A1:E7
2. Click at Data Tab Filter.
3. Click at drop down of CITY
-Click at TEXT Filters
-Click at BEGINS WITH
-In the 2nd box type NS
-Click at OK Button
PRACTICAL NO 6
The following table shows the shipment forecast of tablets, laptops and desktop PCs
worldwide for the year 2015, 2016, 2017 and 2018.
PRODUC
T 2015 2016 2017 2018
DESKTO
P 113.6 103.3 97.8 94.4
LAPTOP
S 163.1 156.8 161.6 162.3
TABLET
S 208 174.9 163.7 150.3
TOTAL
1 i) Write a project that allows to display the label as “WELCOME TO VIVA COLLEGE”.
ii) a) change the Caption property of the label as “WELCOME TYBCOM STUDENTS”.
.
Solution 1:
Using drag drop method objects controls like label, command buttons,designing of the form
is constructed. Further the properties to these objects are set as desired in the questions.
Step 1-Following objects are created in the VB environment while designing a form.
Step 2- Following code should be written in the click event of cmdChange command button
code is written in the click event of cmdChange command button
Practical no 8
Write an application with the following specifications:
A single text box to enter the text.
Three check boxes for Bold, Italics and Underlining the text in the text box as selected.
Three option buttons for Red, Green and Blue color of the text in the text box as selected.
A Command button to exit the application.
Step 1-Following objects are created in the VB environment while designing a form
Step 1-Following objects are created in the VB environment while designing a form
Write VB project to design a suitable form which allows the user to enter an integer.
Calculate and display the factorial of that integer when the calculate button is clicked.
Steps 1-Following objects are created in the VB environment while designing a form