Spreadsheet Notes
Spreadsheet Notes
FILE FORMAT
Open Document Spread sheet (.ods)
5
www.educom.in 2019-20
COMPONENTS OF LIBRE OFFICE CALC
1.Rows and Columns :
Rows are numbered numerically from top to bottom.Columns are referred by alpha character from
left to right
2.Cell :
The intersection point of row and column is called a Cell. A cell is identified by a combination of a
letter and a number . Example A1
Rows and Columns in Calc
Rows : 1048576
Columns : 1024
3.Range :
Range is a group or block of cells that are highlighted in a worksheet.A range may contain just a single
cell or many cells
NAMING RANGES
We can give a name to cells or ranges and such name can be used instead of such cells or range
references in the formula.
E.g. take the case of range D10:D20
Assume that it is named “ moon”
We can refer the name in formula/functions
E.g. =SUM(moon) , It is same as =SUM(D10:D20)
STEPS IN NAMING RANGES
Step 1 Select the cells/range to be named
Step 2 Select Name-Define from the Insert Menu
This will display a dialogue box as“ Define Name”
Step 3 In the dialogue box , give a name for the range
you selected and click Ok
Step 4 Now you can use this name in formula .
OR
Select the block of cells (Data Range) to be named.Type a name for it in the name box and press enter Key.
62
SPREADSHEET OPERATIONS
1. Open Work sheet
While being on the Calc, you can open a new workbook by choosing ‘New’ option or by clicking the respective
icon from the ‘File’ menu.
An existing workbook can be opened by choosing ‘Open’ option in the File menu or by clicking the ‘icon’ on the
standard tool bar.
2. Save a Worksheet
To save a workbook to the computer click ‘Save’option in the File menu . Or‘Save’ icon on the standard tool bar.
The ‘Save As’option is used to save the same file in a different name, location or format.
3. Close work sheet
After you finish working in a workbook, you can close the workbook with ‘Close’ option from the ‘File’ menu.
Then another workbook can be opened without closing the Calc.
4. Quit LibreOffice Calc
For this, use ‘Exit LibreOffice’ option from the file menu.
5. Delete worksheet
To delete an unwanted worksheet, right click the mouse on the sheet tab to be deleted and select the ‘Delete
Sheet’ option from the popup menu.
7. Rename worksheet
By default, worksheets are named as Sheet 1, Sheet 2, and Sheet 3 etc. A worksheetcan be renamed by selecting t
he option ‘Rename Sheet’ from the popup menu on a right click of sheet tab. Give the name desired and click OK. New
name will appear on the sheet tab.
8. insert a new worksheet
click the insert worksheet tab(+) at the bottom of the screen or right click the mouse,select the insert
option and click
SPREADSHEET NAVIGATION
Navigation methods are
1) Using mouse
2) Using a cell reference
3) Using the navigator
37
www.educom.in 2019-20
Movement Key Stroke (Press key)
The cell at the intersection of the last row and last column containing data Ctrl + End
Moves the cursor to the right edge of the current data range. If Ctrl + Right arrow
the column to the right of the cell that contains the cursor is empty,
the cursor moves to the next column to the right that contains data.
Moves the cursor to the bottom edge of the current data range. Ctrl + Down arrow
If the row below the cell that contains the cursor is empty, the
cursor moves down to the next row that contains data.
Moves the cursor to the left edge of the current data range. If the
column to the left of the cell that contains the cursor is empty, Ctrl + Left arrow
the cursor moves to the next column to the left that contains data.
Moves the cursor to the top edge of the current data range. If the
row above the cell that contains the cursor is empty, the cursor Ctrl + Up arrow
moves up to the next row that contains data.
8
2019-20 www.educom.in
COMPONENTS OF A FORMULA
a) Cell references
b) Mathematical operators
c) Functions
Cell address
A cell is identified cell reference or cell address, started with column name and followed by row
number like A1, A2…
Cell References
A cell address becomes cell reference when some data is stored…
Relative Cell Reference
When a formula or function copied and pasted to other cells, then the cell references in the formula or
function change to reflect the function’s new location.
Absolute Cell Reference
If we want a cell reference stay fixed on a specific cell , use absolute cell reference.
An absolute cell reference consists of the column letter (D)and row number (12) preceded by dollar signs
( $ ) to keep reference stay fixed on a specific cell. ($D$12) As a result, the references made in the formula
when copied and pasted to other cells do not change.
Mixed Cell Reference
If any one part is prefixed with a dollar($) sign leaving the other part plain then it is termed as mixed
reference.Example: $B2
Mathematical operators
If you need to create a formula,you must include a mathematical operator . Types
of operators are:
a) Arithematic
b) Comparision
c) Reference
Operation performed Operator symbol
Arithmetic Operators
Addition +
Subtraction -
Multiplication *
Division /
Percent %
Exponential ^
Comparison Operators
Equal to =
Greater than >
Less than <
Greater than or Equal to >=
Less than or Equal to <=
Not equal to <>
Reference Operators
Range operator :
Union operator ,
9
www.educom.in 2019-20
WHAT IS A FUNCTION?
A function is a preset formula or a keyword programmed to perform some specific
function. It begin with the equal sign ( = ) followed by the function’s name and its arguments.
Structure of a function
There are twelve different categories of functions available in LibreOffice Calc, which are classified as per the
usage as shown in Figure
E.g. The Database, Date and Time, Financial, Information, Logical, Mathematical, Lookup and References
and Text functions are useful in Computerised Accounting
Functions
The name of function indicates what operation it will perform,Calc provides many functions .You
can create your own functions
Mathematical Function
Date and Time Function Text Manipulation Function
Logical Function
3 Lookup and Reference Function
Statistical Function(more functions) Financial Function
MATHEMATICAL FUNCTIONS
SUM function
SUM IF function
ROUND function
SUM function
To sum a range of cells,use the sum function
Auto Sum
4
10
2019-20 www.educom.in
SUM IF function
To sum cells based on one criteria
Syntax : SUMIF(range, criteria, [sum_range])
Example: ==SUMIF(A1:F1,">9")
A B C D E F
= 41
1 11 10 1 7 20 3
To sum cells based on one criteria (for eg;-red),use the following SUM IF function
(three arguments ,last argument is the range to sum)
=SUMIF(A1:E1,"red",A2:E2)
ROUND function
The ROUND function rounds a number to a specified number of digits. For example, if
cell A1 contains 23.7825, and you want to round that value to two decimal places, you can use the
following formula:
=ROUND(A1, 2)
The result of this function is 23.78
Syntax : =ROUND(Number,Count)
b)
c)
6
12
2019-20 www.educom.in
DATE AND TIME FUNCTIONS
TODAY function
NOW function
DAY,MONTH,YEAR function
DATEVALUE function
TODAY function
To get the current date only,we can use TODAY function
Syntax: =TODAY( )
Note : Calc stores dates as sequential serial numbers so they can be used in calculations. By
default, 31/12/1899 is serial number 1, and January 1, 2008 is serial number 39449 because it is 39,448 days
after 31/12/1899
NOW function
To get the current date and time ,use the NOW function.
Syntax : NOW ( )
Example : 08-08-15 9:14
DAY,MONTH,YEAR function
Syntax =DAY(number)
Use the MONTH and YEAR function to get month and year of a date
DATEVALUE function
The DATEVALUE function converts a date that is stored as text to a serial number that
spreadsheet recognizes as a date.
Syntax :- =DATEVALUE(“Date”)
For example, the formula =DATEVALUE(“1/1/2008”) returns 39448, the serial number of the date 1/1/2008
7
13
www.educom.in 2019-20
LAB WORK 2
For the admission to ‘Smart Junior’,students age should be greater than 10 and less than
14 as on 31/03/2017.Write spreadsheet statement to test when a candidate is eligible for admission or
not,when his date of birth in entered in a cell as input.
PROCESS :
Step 1: Format cells as shown below:
A B
1 Date 31/03/2017
2 Date of birth
3 Age
4 Result
Step 2 : In B2,enter date of birth
Step 3 : In B3,enter the formula =Round((B1-B2)/365,0),Age will be displays
Step 4 : In B4,enter the formula to test whether eligible for admission
=IF(B3<10,”Not eligible”,IF(B3>14,”Not eligible”,”eligible”)) OR
=IF(AND(B3>10,B3<14),”Eligible”,”Not eligible”)
OUTPUT :
STATISTICAL FUNCTIONS
AVERAGE function
MIN function
MAX function
COUNT function
AVERAGE function
To calculate the average of a range of cells,use the AVERAGE function
MAX function
To find the maximun value,use the MAX function
Syntax : MAX(number1,number2,...)
14
2019-20 www.educom.in
COUNT function
To count number of cells that contain numbers,use the COUNT function
Syntax : = COUNT(value1, [value2],...)
A B C D E F
1 12 5 8 17 30 5 =6
COUNT IF function
To count cells based on one criteria
Syntax : = COUNTIF(range, criteria)
Example : COUNTIF(A1:F1,”>10”)
COUNTA function
Counts how many values are in the list of arguments
Syntax : = COUNTA(value1, [value2], ...)
COUNTBLANK function
Counts the number of blank cells within a range
Syntax : = COUNTBLANK(range)
LAB WORK 4
The following table given to you
b)
c)
15
www.educom.in 2019-20
LOGICAL FUNCTIONS
IF function
AND function
OR function
IF Function
The IF function checks whether a condition is met and returns one value if TRUE and another
value if FALSE
Example:=IF(A2>=24,"passed","failed")
The IF function returns passed because the value in cell A1 higher than or equal to 24
NESTED IF
When more than one condition is to be tested,more IFs may be used.This is just called
nesting of IFs
=IF(A1<100,IF(A1<90,IF(A1<80,IF(A1<70,IF(A1<60,IF(A1<50,IF(A1<40,
Eg:
IF(A1<30,"Fail","D+"),"C"),"C+"),"B"),"B+"),"A"),"A+"))
Or
=IF(A1>90,"A+",IF(A1>80,"A",IF(A1>70,"B+",IF(A1>60,"B",
IF(A1>50,"C+",IF(A1>40,"C",IF(A1>30,"D+","FAILED")))))))
AND function
The AND function returns TRUE if all conditions are true and returns FALSE if any of the condi-
tion are false
Syntax =AND(LogicalValue1, LogicalValue2, .................)
Example: =AND(A1>40,B1>10,C1<50)
10
16
2019-20 www.educom.in
OR function
The OR function returns TRUE if any of the conditions are TRUE and returns FALSE if all
conditions are FALSE
Example: = OR(A1>30,B1>15,C1<45)
LAB WORK 1
The following scores are obtained by 5 students in an examination
Gade A+ A B+ B C+ C D+ Fail
PROCESS:
OUTPUT
11
17
www.educom.in 2019-20
TEXT MANIPULATION FUNCTION
TEXT function
CONCATENATE function
TEXT function
The TEXT function converts a numeric value to text and lets you specify the display
formatting by using special format strings.
The array form of LOOKUP looks in the first row or column of an array for the
specified value and returns a value from the same position in the last row or column of the array. Use this form
of LOOKUP when the values that you want to match are in the first row or column of the array. Use the other
form of LOOKUP when you want to specify the location of the column or row.
Syntax = LOOKUP(lookup_value, array)
VLOOKUP function
You can use the VLOOKUP(Vertical lookup) function to search the first column of a
range of cells, and then return a value from any cell on the same row of the range.
Syntax = HLOOKUP(lookup_value,table_array,row_index_num,range_lookup)
12
18
2019-20 www.educom.in
LAB WORK 5
The following table given to you
A B C D
1 Ad No Name of student Date of birth Fee paid
2 1001 ANIL 03/03/1990 1200
3 1005 BEENA 12/04/1991 1300
4 1234 AFSAL 15/08/1990 1350
5 1300 DINU 19/06/1991 1230
6 1020 SABU 26/08/1990 1500
7 1256 JHON 05/09/1990 1450
Find out
a) The name of student against Admission number 1005
b) Lookup value 1020 and locate the fee paid status by using VLOOKUP
c) Lookup name of student against ad.no 1300
PROCESS :
a) Type the formula, =LOOKUP(1005,A2:A7,B2:B7)
b) Type the formula, =VLOOKUP(1020,A2:D7,4,FALSE)
c) Type the formula, =HLOOKUP("Name of student",A1:D7,5,FALSE)
OUTPUT :
a)
b)
c)
Note: After the column index ,you can add “False”or “True”along with the formula.If you are giving
“False,it will consider only exact match,otherwise,it will consider approximate match.By default,it will
lookup only an approximate match.
FINANCIAL FUNCTION
FV function
PMT function
RATE function
PV function
NPV function
FV function
Returns the future value of an investment based on periodic, constant payments and a
constant interest rate.
Syntax : FV(rate,nper,pmt,pv,type)
Arguments :
Rate is the interest rate per period.
Nper is the total number of payment periods in an annuity.
Pmt is the payment made each period
Pv is the present value, or the lump-sum amount that a series of future payments is worth right now. If
pv is omitted, it is assumed to be 0 (zero), and you must include the pmt argument.
Type is the number 0 or 1 and indicates when payments are due. If type is omitted, it is assumed to be 0.
13
19
www.educom.in 2019-20
Set type equal to If payments are due
0 At the end of the period
1 At the beginning of the period
PMT function
The Excel PMT function is used to calculate loan repayments based on constant payments and a
constant interest rate
Syntax : PMT(rate,nper,pv,fv,type)
LAB WORK 6
Calculate the monthly payments on a loan of 1,00,000 which is to be paid off in full after 5
years.Interest is charged at a rate of 15% per year and the payment to the loan is to be made at the end
of each month.
PROCESS :
Step 1 : Enter the basic values as shown below in column B
OUTPUT :
Note: The minus sign simply represents monthly cash outflow. The interest rate is divided by 12 to get
a monthly rate. The number of years the money is paid out is multiplied by 12 to get the number of
payments.
RATE function
The excel RATE function is used to return the interest rate per period of a loan or
investment
Syntax : RATE(nper,pmt,pv,fv,type,guess)
PV function
Returns the present value of an investment. The present value is the total amount that a
series of future payments is worth now.
14
20
2019-20 www.educom.in
LAB WORK 7
Calculate the the present value of an annuity that pays Rs 1000 per month for a period of 5
years.Interest is charged at @ 10% per year and the payment to be made at the end of each month.
PROCESS :
Step 1 : Enter the basic values as shown below in column B
OUTPUT :
NPV function
Calculates the net present value of an investment by using a discount rate and a series of
future payments (negative values) and income (positive values).
Syntax : NPV(rate,value1,value2,.......)
ACCRINT function
ACCRINT means accrued interest.This function helps us to calculate interest accrued from
securities on account of sale of securities
Syntax=ACCRINT(issue, first_interest, settlement, rate, [par], frequency,[basis]))
issue The date the security is issued.
first_interest The date when the initial interest is paid.
settlement The settlement date of the security.
rate The annual interest rate or coupon when the security was issued.
par The par value of the security.
frequency The number of coupon payments per year: (1 = annual, 2 = semi annual (default), 4=quarterly)
basis The type of day count basis to use
15
21
www.educom.in 2019-20
CUMIPMT
Returns the cumulative interest paid on a loan between start_period and end_period.
Syntax
CUMIPMT(rate,nper,pv,start_period,end_period,type)
Cumulative interest
Step 2 Enter the values as assigned below
B2 = pv (amount borrowed)
B3 = rate (rate is for one year,hence convert to monthly rate divide it by 12)
B4 = nper (term is expressed in months,10*12=120)
B5 = start period (first year 1,second year 13,third year 37and so on...)
B6 = end period (first year 12,second year 24,third year 36 and so on...)
Type = 0 (0 assume payment at end by default,othewise 1)
Step3 Select cell B9 and Enter the formula:
=CUMIPMT(B3/12,B4*12,B2,B5,B6,B7)
OUTPUT
16
22
2019-20 www.educom.in
ONE VARIABLE DATA TABLE
To create a one-variable data table to perform what-if-analysis we may enter a series of input
values either across columns of a single row or down the rows of a single column.
LAB WORK 9
Consider the following information
Loan Amount Rs5,00,000
No.of payments 48
Annual rate 12%
Prepare a one vairable table showing the repayment of the above loan in different number
of payments such as 12 months,24 months,36,48,60and 72 months.Use PMT function
PORCESS:
Step 1 Type the following in appropriate cells
OUTPUT
17
23
www.educom.in 2019-20
TWO VARIABLE DATA TABLE
To create a two variable data table to perform what if analysis,we may enter two ranges of pos-
sible input values for the same formula.
1.A range of values across the first row of the table
2.A range of values down the first column of the table
LAB WORK 10
Consider the following information
Loan amount Rs.4,00,000
No.of payments 48
Interest rate 15%
Prepare two variable data Table showing the repayment of the above loan in different number
of payments such as months 12,24,36,48,60 and 72with various interest rates from 10% to15%.
Use PMT function
PROCESS :
OUTPUT :
18
24
2019-20 www.educom.in
PIVOT TABLE
Pivot table is a special type of table that allows easy compression, analysing and
presenting data. It allow us to create a cross tabulation summary.
LAB WORK 11
From the following information create a Pivot Table to give country wise sales of the products
OUTPUT
19
25
www.educom.in 2019-20
IMPORT/COPY DATA FROM OTHER SOURCES
Data entry can be done by importing data from external sources.These data files may
be either in text files or non-text files format.Text files can be directly read using a text editor in Calc
LAB WORK 12
Enter the details into a text file (Notepad/Text Editor) and import the same to a Spreadsheet
file
PROCESS
1) Open a Text Editor file. Applications >Accessories >Tex Editor
2) Enter the given data in the Tex Editor file. In the first line give the column headings
separated by coma.
3) In the next line onwards give the data separated by comma in each row .
4) Save the Text Editor file with a file name.
5) Open worksheet in Libre Office Calc.
6) File>open>(browse and select the note pad file) >Open
(Text import Note pad file dialogue box will be displayed)
then click OK
OR
Click on ‘Sheet from File’ option from Insert menu. Select
the text file or csv file with the
help of dialogue box appeared and press OK button.
OUTPUT
20
26
2019-20 www.educom.in
CONDITIONAL FROMATTING
Coditional Formatting allows us to change the appearance of a cell,depending
on certain conditions
LAB WORK 13
List of Debtors and the amount due from them are given below. Apply Conditional
formatting to high light receivables with date that have expired on 31/01/2016. Also highlight the debts more
than 35000 with red colour.
SlNo Name Amount 31/01/16(Due date)
1 JIBY 25000 28/01/16
2 JINU 30000 15/01/16
3 GRACE 45000 15/01/16
4 LUCY 37000 31/03/16
PORCESS:
5 BABU 32000 18/01/16
1) After entering the data,Select the range D2:D6, select Conditional Formatting from Format menu
click on ConditionSet the condition in dialogue boxSelect Cell value is >less than> click on the next
column and select Cell D1
New style > Background and select RED colour then Click on OK button.
2) Select the range C2:C6, Select > Format > Conditional Formatting >Condition
Cell value is > greater than and enter the amount in column 35000 Click on OK button.
OUTPUT :
LAB WORK 14
Consider the following list and highlight the top ten numbers
PORCESS:
1) After entering the data,Select the range A1:C6, select Conditional Formatting from Format menu
click on ConditionSet the condition in dialogue boxSelect Cell value is >top ten elements> 10 Select
Style andclick OK
OUTPUT
21
27
www.educom.in 2019-20
DATA VALIDATION
It can use to define restrictions on what data can should be entered in a cell.You
can configure data validation to prevent uses form entering data that is not valid.Besides these,we can
also provide messages to define what input we expect for the cell,and instuctions to help uses correct
any erros.
LAB WORK 15
Assume that your School have only Commerce and Science batches . You are required to
enter the following list of students after creating the data validation .
Data validation Rules are;
a) Age should be between 15 and 20
b) The options must limit to Commerce and Science
A B C D
1 Admission No Name Batches Age
2 1231 AYYOOB
3 1232 ARSHAD
4 1233 DONA
5 1234 FIDHA
6 1235 FADWA
PROCESS
1) Open the new spread sheet.
2) Enter all labels in the spread sheet. A1Admission No, B1Name,C1Batches,D1Age.
3) Enter Admission No from A2:A6 and Name from B2:B6
4) Select the range of cell C2:C6, then
5) Select validity from Data Menu then Set the dialogue box fields as
6) Allow cell ranges from validity window and input Source the ranges from F1 :F2
(the cells where Batches “Commerce”, and “Science” are entered.
PROCESS:
Step1 Select cell A1 to E1
Step 2 Click Data > Form
Step 3 An input Form(Sheet) appears
Step 4 Enter the values in each field
OUTPUT
23
29
www.educom.in 2019-20
COMMON ERRORS IN SPREADSHEET
ERROR CAUSES SOLUTION
#NULL Error Use incorrect range operators Ensure that we have mentioned
Eg:SUM(D30:D32 C31:C33) the ranges properly
# VALUE! Value error is shown when you use text Make sure your formula
parameters to a function that accepts parameters have correct data
numbers types
DATA FORMATTING
Formatting of spreadsheets makes easier to read and understand the important information e.g.
conditional formatting, number formatting, text and general spreadsheet formatting etc.).
Formatting Tools
Number formatting :
Number formatting includes adding per cent symbols (%), commas (,), decimal places, and currency
signs (‘, Rs. etc), date, time, scientific values and as well as some special formats to a spreadsheet. The type
of number format can be determined once the data is entered into the cell.
Currency :
If we enter a financial value complete with the Rupee/currency sign and two decimal places, Calc
assigns a Currency format to the cell along with the entry.
Percentages :
If we enter a value representing a percentage as a whole number followed by the percent sign without
any decimal places, Calc assigns to the cell the percentage format that follows this pattern along with the entry.
Dates :
If we enter a date (dates are values, too) that follows one of the built-in Calc number formats, such as
16/04/2009 or 16 Apr 2009 the program assigns a Date format that follows the pattern of the date.
26
30
2019-20 www.educom.in
COMPUTERISED ACCOUNTING SYSTEM