Professional Documents
Culture Documents
Program: 1 Build A Worksheet With A Student Record and Calculate The Result Based On Average Marks
Program: 1 Build A Worksheet With A Student Record and Calculate The Result Based On Average Marks
Build a worksheet with a student record and calculate the result based on average marks.
1. Create a new blank worksheet. On the File menu, click New, and then click Blank Workbook on the
New Workbook.
2. Data can be entered into an active cell. A cell can be made active by clicking the mouse pointer on the
desired cell.
3. Cell can have values such as numbers, text , dates etc.
4. As per the program given enter Rollno, name, marks1, marks2, marks3 of different subjects. Average
and grades is to be calculated.
5. Average can be calculated using the formula AVERAGE(Cell Range).
6. A formula establishes relationship between 2 or more cells. The cells in which formulas are stored
displays the result of the calculation.
7. Steps involved are:
- double click on the cell.
- Type ‘=’ sign
- Type in the formula
- Press enter key
8. The formula can be copied into the relative succeeding cells using copy and paste option in the right
click button of the mouse.
9. Thus using the formula we can get the average of different roll nos.
10. According to the problem the roll no getting average >60 gets 1 st class, >40 gets 2nd class, <=40 gets 3rd
class.
11. The formula to be typed is IF(H5>=60,”1stclass”,IF(H5>40,”2nd class”, IF(H5<=40,”3rd class”,))).
The above formula can also be copied to different cells. Thus we get different grades.
1
Program:2
2
Program 3:
1. Create a table with the following attributes or column names that is Item Name, Quantity, Rates, Total
Sales, Discount and Net Sales.
2. In the item column type some item names. In the quantity and rate columns type some values.
3. For the total sales, you have to take the product of quantity and rate. So, go to insert in the menu bar, it
will display some options in the select functions, it will again display sub options. In that click on the
product and give the cell address for the product and press enter key.
4. The value will be displayed in the cell. For the rest of the values go to the edit and click on copy and
drag the cell and again go to edit and click on paste. It will automatically display the other values.
5. for finding the discount you have to write the formula with ‘IF’ condition. So, goto the formula bar and
click on equal to sign(=) and type the formula with cell address and condition that is
IF(H5<10000,H5*10/100,IF(H5>10000,H5*15/100,IF(H5>15000, H5*30/100))). Display the value
for other cell just copy and paste the cells.
6. For finding the Net sales you have to subtract Total Sales with Discount. So Go to the formula bar click
on equal to sign(=) and give the cell address that is =(G5-H5) and press enter key.
7. After creating the whole table save it.
3
Program 4:
1. Create a salary table in MS-EXCEL with the field names being EMPNO, EMPNAME,DESIGNATION
AND SALARY.
2. Enter details of employees in the table
3. Then calculate the HRA using the following formula: IF(G5<5000,
G5*25%,if(G5>5000,G5*50%,if(G5>10000, G5*60%)))
4. Then calculate the DA using the following formula: if(E4<5000,
G5*15%,if(G5>5000,G5*5%,if(G5>10000, G5*20%)))
5. Display the results in different columns under their respective headings.
6. Save the worksheet.
4
Program 5:
Conditional format: A format, such as cell shading or font color, that Excel automatically applies to cells if a
specified condition is true.
1. Create a new blank worksheet. On the File menu, click New, and then click Blank Workbook on the
New Workbook.
2. Data can be entered into an active cell. A cell can be made active by clicking the mouse pointer on the
desired cell.
3. Cell can have values such as numbers, text , dates etc.
4. As per the program given enter Rollno, name, marks1, marks2, marks3 of different subjects. Average
and grades is to be calculated.
5. On the Format menu, click Conditional Formatting.
a. To use values in the selected cells as the formatting criteria, click Cell Value Is, select the
comparison phrase, and then type a constant value or a formula. If you enter a formula, start it
with an equal sign (=).
To use a formula as the formatting criteria (to evaluate data or a condition other than the values
in selected cells), click Formula Is and then enter the formula that evaluates to a logical value
of TRUE or FALSE.
b. Click Format.
c. Select the formatting you want to apply when the cell value meets the condition or the formula
returns the value TRUE.
d. To add another condition, click Add, and then repeat steps 1 through 3.
You can specify up to three conditions. If none of the specified conditions are true, the cells
keep their existing formats.
5
Program: 6
Create a Database for the following data – empno, empname, salary, designation, deptno. Empno
should be Primary key.
Create a database by using a Database Wizard
You can use a Database Wizard to create in one operation the required tables, forms, and reports for the type of
database you choose— this is the easiest way to start creating your database. The wizard offers limited options
to customize the database.
1. Click New on the toolbar.
2. In the New File task pane, under Templates, click On my computer.
3. On the Databases tab, click the icon for the kind of database you want to create, and then click OK.
4. In the File New Database dialog box, specify a name and location for the database, and then click
Create.
5. Follow the instructions in the Database Wizard.
Create a table
1. Select the design view which contains three columns:- field name, data type, description.
2. Enter empno in field name and auto number for the data type.
3. Select this column and set primary key.
4. Next enter emp name and provide data type as text. In the next row enter salary and give data type as
number and so on for all the fields.
5. Save the table and provide it with a name and a table is created.
6. Open the table and enter the data you want to.
6
Program 7:
7
Program 8:
Write a query to retrieve for empno, empname, salary from Emp table and Deptname and location from
dept table, where Deptno is 1.
8
Program 9:
Form lets you to display and enter data in a convenient format that resembles fill in the blank forms. Your
forms can be plain or elaborate with graphics, lines and automatic look up features that make data entry quick
and easy. To start creating the form in the same way as the table as query you click on the form tab on the
database window. If an existing form has to be opened in the design view. Select the name of the form from
the list. Click on the design button if it has to be opened the form view click on open button.
9
10
Program 10:
11