chapter 2 _spreadsheet
chapter 2 _spreadsheet
THE WORKSHEET
The worksheet is a place where you enter data or records and perform various
operations .The worksheet consists of column,row and cell
Column : It is referred by alpha character from left to right
Rows : Rows are numbered numerically from top to bottom
Cell : The intersection point of row and column is called a Cell.
click the insert worksheet tab at the bottom of the screen or right click the mouse, select the insert option
and click or Press shift + f11
LABELS
A text or a special character will be treated as labels for rows or columns or descriptive
information. Labels cannot be treated mathematically-multiplied, subtracted, etc.
For example: Name of Employees, DOB
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)
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 numbe(12)r 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.
Spreadsheet Navigation
Moves the cursor to the bottom edge of the current data Ctrl + Down arrow
range. If the row below the cell that contains the cursor is
empty, the cursor moves down to the next row that contains
data.
Beginning of the Row Home key orCtrl + Left arrow
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.
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
1) Equal sign
2) Function name
3) Opening bracket
4) Arguments
5) Closing Brackets
Functions
The name of function indicates what operation it will perform,Calc provides many functions
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 =IF(A1<100,IF(A1<90,IF(A1<80,IF(A1<70,IF(A1<60,IF(A1<50,IF(A1<40,
IFs 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)
Syntax =OR(LogicalValue1,LogicalValue2,......)
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
DATE AND TIME FUNCTIONS
TODAY function
NOW function
DAY,MONTH,YEAR function
DATEVALUE function
TODAYfunction
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
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 :
MATHEMATICAL FUNCTIONS
SUM function
SUM IF function
ROUND function
SUM function
To sum a range of cells,use the sum function
Auto Sum
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)
LAB WORK 3
Given below is a table showing the name,Designation and Monthly salary paid for
different employees in Rajan Traders
EMPNANE DESIGNATION MONTHLY SALARY
JOSE CEO 80000
CICY AO 50000
SIJO FM 40000
ALEX FM 15000
JOMY MM 45000
SIMI FM 30000
Find out the following :
A) The Total Monthly Salary by ‘naming range(TOTAL SALARY)
B) The Total monthly salary paid to finance manager(FM)in the firm
C) The name of employee with monthly salary of Rs.40,000 by using LOOK UP function
PROCESS :
a) : Select the block of cells (Monthly salary) to be named.Type ‘TOTAL SALARY'
in the name box and press enter Key.
b) : Type the following formula
=SUMIF(B3:B8,”FM”,C3:C8)
c) : Type following formula for LOOK UP
=LOOKUP(40000,MONTHLY_SALARY,A3:A8)
OUTPUT :
a)
b)
c)
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,...)
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)
1
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.
CONCATENATE function
The CONCATENATE function joins up to 255 text strings into one text string. The
joined items can be text, numbers, cell references, or a combination of those items.
Syntax : CONCATENATE(text1, [text2], ...)
For example, if your worksheet contains a person's first name in cell A1 and the
person's last name in cell B1, you can combine the two values in another cell by using the following
formula:
=CONCATENATE(A1,” “,B1)
LOOKUP AND REFERENCE FUNCTION
LOOKUP function
VLOOKUP function
HLOOKUP function
LOOKUP function
The LOOKUP function returns a value either from a one-row or one-column or from an
array .The LOOKUP function has two syntax forms: the vector form and the array form.
A vector is a range of only one row or one column. The vector form of LOOKUP looks
in a one-row or one-column range (known as a vector) for a value and returns a value from the same
position in a second one-row or one-column range. Use this form of the LOOKUP function when you
want to specify the range that contains the values that you want to match.
Syntax : = LOOKUP(SearchCriterion,SearchVector,ResultVector)
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)
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.
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.
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
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
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
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 :
1
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
PROCESS
Step 1 Input the entire data into
cells
Step 2 Select the entire data to create the pivot table
Step 3 Select Pivot Table from Data menu and then click on Create
Step 4 In the Pivot Table Layout, drag the available fields to the row field and data field
(only numerical values) in the desired position.
OUTPUT
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
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
5 BABU 32000 18/01/16
PORCESS:
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
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
2
COMMON ERRORS IN SPREADSHEET
ERROR CAUSES SOLUTION
# VALUE! Value error is shown when you use Make sure your formula
text parameters to a function that parameters have correct data
accepts 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.
COMPUTERISED ACCOUNTING SYSTEM – extra questions