You are on page 1of 20

6.

Electronic Spreadsheet -GOAL SEEK

Aim : To find the time period to get an interest of Rs.3000

Procedure :

Type the following content in the respective cells:


Cell Value
A1 SIMPLE INTEREST CALCULATION
A3 PRINCIPAL (P)
A4 RATE OF INTEREST (R)
A5 TIME PERIOD (T)
A7 SIMPLE INTEREST :
B3 20000
B4 5
B5 2
=(B3*B4*B5)/100
B7
(Formula for Simple Interest calculation: (P*R*T)/100

You can see the result 2000 in B7


In order to find the time period for getting an interest of Rs.3000 follow the
steps given below:
Select Tools ->Goal Seek
 Type $B$7 in the Formula cell
 Type 3000 in the Target Value -this is the value you want to achieve
 Type $B$5 in Variable Cell – this is the value that can be altered
You can see the dialog box ‘Goal Seek Successful.’ And the new value 3 to
be replace in B5 to get the interest of R.3000.
If you select ‘Yes’, you can see the new interest amount in B7

Result : The time period is 3 for getting the interest of Rs.3000/-

1
Output

2
7. Electronic Spreadsheet -Macro
Aim : To record and run macro to find the total average of 6 subjects.
Procedure :
Recording Macro :
Step 1 :Type the data from A1 to B9 as shown in the Sheet 1output
Step 2 :Place the cursor at A10 and choose Tools->Macro->Record Macro
Step 3 :Type the following :
A10 : TOTAL
A11 : AVERAGE
B10 : = B4+B5+B6+B7+B8+B9
B11 : =B10/6
Step 4 :Click on Stop Recording tab
Step 5 :TypeMEANin Macro name
Step 6 :ChooseMy Macros->Standard->Module1 and click on Save to save
the macro.
Run Macro :
Step 1 :Type the data from A1 to B9 as shown in the Sheet 2 output
Step 2 :Place the cursor at A10 and choose Tools->Macro->Run Macro
Step 3 :SelectMy Macros->Standard->Module1 and choose MEANmacro
and click Run.
Step 4 :Observe the Total and Average is calculated automatically and
displayed.
Result : Macro is created to find the total and average of 6 subject marks.

3
Sheet 1 – Output

Sheet 2 – Output

4
8. Electronic Spreadsheet - Scenario

Aim : To create scenario to predict the profit by changing the units sold or
by changing the Selling price.

Procedure :

Step 1: Type the values in the cells A1 to A7 and B3 to B6 as given in the


output.
Step 2 : To calculate the profit type =(B5-B4)*B6 in B7, the profit 1000 is
displayed
Step 3: To create the Scenario_1 by changing the Selling price to 60, copy
the values of B4:B7 to C4:C7 and change C5 to 60. The new profit is 3000.
Step 4 : Select C4:C7, choose Tools->Scenarios, change the Name of the
Scenario as Scenario_1. Click the drop down menu to change the display
border and choose some colour of your choice.
Step 5: Senario_1 is displayed with the selected border colour.
Step 6: To create the Scenario_2 by changing the Units Sold to 200, copy the
values of B4:B7 to C4:C7 and change C6 to 200. The new profit is 2000.
Step 7 : Select C4:C7, choose Tools->Scenarios, change the Name of the
Scenario as Scenario_2. Click the drop down menu to change the display
border and choose some colour of your choice.
Step 8: Senario_2 is displayed with the selected border colour.
Step 9 : Click on ↓ and choose the scenario to view the output of the
selected scenario.

Result : Two scenarios are created to find the profit by changing the selling
price or by changing the units sold.

5
Output
Scenario_1 (By changing the Selling Price)

Scenario_2 (By changing the Units Sold)

6
9. Electronic Spreadsheet - Consolidate

Aim : To consolidate the total sales of two quarters.

Procedure :
Step 1: Right click on Sheet1 and rename quarter1 and type the content
from A1 to B5
Step 2: Right click on Sheet2 and rename quarter2 and type the content
from A1 to B5
Step 3: Right click on Sheet3 and rename TotalSales
Step 4 : Select Data->Consolidate
Step 5: Select Sum Function box
Step 6 : Click on Source Data Range input box and select A1 to B5 from
quarter1 sheet and click on add to add the range for consolidation.
Step 7 : Click on Source Data Range input box and select A1 to B5 from
quarter2 sheet and click on add to add the range for consolidation.
Step 8 : Click on More and select Row labels, column labels and Link to
source data.
Step 9: Click on Copy results to input box and select A1 from TotalSales
sheet.
Step 10 : Click OK, now the consolidated data, the sum of sales will appear
in the TotalSales sheet.

Result : The total sales of two quarters is consolidated.

7
Output

Quarter 1 – Sales Quarter 2 - Sales

Consolidated Total Sales

8
10. Electronic Spreadsheet – Subtotal

AIM: To calculate subtotal of given range of cells.

PROCEDURE:

Step 1: Type the data from A1 to B9 as shown in sheet 1 output

Step 2: Select A1 to B9 and then choose Data -> Subtotals.

Step 3: In the Calculate subtotals for box, select the columns containing the

SALES that you want to subtotal.

Step 4: In the Use function box, select the Sum function to calculate the

subtotals.

Step 5: Click OK

RESULT: Subtotal for the given range of cells is calculated.

9
Output
INPUT DATA

DATA WITH SUBTOTAL

10
11. RDBMS –SQL COMMANDS

Aim : Create table items using design view and insert the items
11,22,33,44,55, 66

Procedure :
Create Table using Design View
Step 1 : Open Openoffice Base ->Create a new database -> Next ->Finish.
Type the filename as stock.odb
Step 2: Click on Tables from the left tab and select ‘Create table in Design
View’
Step 3: Type the Field Name and select the Field type from the dropdown

list as given in Output 1. Right click next to Itemno and select Primary
Key from the dropdown list.
Step 4: Press Ctrl+S to save the table, type ‘items’ as table name.

Insert Data in the Table


Step 5: Double click on items table
Step 6: Type the data as shown in Output 3

Result : Table items is created in the database stock.

11
Output

12
12. RDBMS –SQL- SELECT COMMAND

Aim : Create and execute select commands from table items

Procedure :
Step 1 : Open Openoffice Base -> Open an existing database file -> Choose
stock ->Finish.
Step 2 : Select Insert->Query (SQL view). Query Design window opens.
Step 3 : Type the following SQL queries one by one and press F5 to see the
output of the query
select * from “items”;
selectIname,Price from “items”;
select * from “items” where Iname= “Soap”;
select * from “items” where Quantity >50;
select * from “items” order by Iname;
select * from “items” order by Iname;
selectIname, Price+100 from “items”;

Result : SQL select commands are created and executed.

13
Query 1 Query 2

Query 3 Query 4

Query 5 Query 6

14
13. RDBMS –SQL- UPDATE COMMAND

Aim : Create and execute update commands for table items

Procedure :
Step 1 : Open Openoffice Base -> Open an existing database file -> Choose
stock ->Finish.
Step 2 : Select Insert->Query (SQL view). Query Design window opens.
Step 3 : Type the following SQL query press F5 to see the output of the
query
select * from “items”;

To change Quantity of all items:


Step 4 : Select Tools->SQL. Type the following query and click “Execute”
update “items” set “Quantity”=”Quantity”+10
check whether the command is executed successfully in the Status box.
Step 5 : Repeat step 2 and 3 to check whether Quantity is increased by 10.

To change Item name Powder to Ponds Powder


Step 6 : Select Tools->SQL. Type the following query and click “Execute”
update “items” set “Iname”= ‘Ponds Powder’ where “Itemno”=44;
check whether the command is executed successfully in the Status box.
Step 7 : Repeat step 2 and 3 to check whether Iname is changed to “Ponds
Powder”.

Result : SQL update commands are created and executed.

15
Output 1

Output 2 : Output 3:

Output 4 : Output 5:

16
14. RDBMS - FORMS

Aim :To create form for the table items and add new records

Procedure:

Step 1 : Open Openoffice Base -> Open an existing database file -> Choose
stock ->Finish.
Step 2 : Click forms -> Select Use Wizard to create form
Step 3 : In field selection  Select the table items -> click >> to select all
fields to be inserted in the forms and click next.
Step 4: Do not select subforms check box and click next.
Step 5: In Arrange controls of the form and select how the form should
look.
Step 6: Set data entry  Click the form is to display all data
Step 7: Select the colour of Forms in Apply styles and Field border and click
next.
Step 8 : Set name for the Form and click Finish.
Step 9 : Form will appear. Click new record button to enter the new
record and click save button to save the details
Step 10. Repeat step 8,9 to insert all the new records.

Result:Forms for the items table is created and new records are inserted.

17
Output
View Existing records

New Record Entry

18
15. RDBMS – REPORTS

Aim: Create a report for ITEMS table

Procedure:
Step 1 : Open Openoffice Base -> Open an existing database file -> Choose
stock ->Finish.
Step 2 : Click Reports  Use wizard to create report
Step 3 : In Report Wizard, select a table items and click >> to select all fields
to be inserted in Report.
Step 4 : In Labelling Fields, Type the names of the Fields to be appeared in
Report.
Step 5 : Create the Look of the report in Choose Layout. Select Outline
Indented Red & Blue and Bubbles in Layout headers and Footers. Click
Portrait in Orientation.
Step 6 : Give name for the report ‘Report1’. Select Dynamic Report then
click Create report now.
Step 7: Press finish button to view the report.

Result: Report is created for the given table.

19
Output

20

You might also like