LibreOffice - U3A Dacorum · LibreOffice LibreOffice – Windows, Mac, Linux – Writer...
Transcript of LibreOffice - U3A Dacorum · LibreOffice LibreOffice – Windows, Mac, Linux – Writer...
LibreOffice
● LibreOffice – Windows, Mac, Linux– Writer Wordprocessor– Impress Presentations– Calc Spreadsheet– Draw Drawings– Base Database manager
● Two versions– Still 5.2.6 Stable– Fresh 5.3.2 Cutting Edge
● Free, but donations requested
Download from libreoffice.org
Calc - Spreadsheet
● We are concentrating on some of the more advanced apects of spreadsheets.
● Using help● Summing columns● Sort Lists● Sorting by Columns● Change icon size● Selecting toolbars● Named ranges
● HLookup and Vlookup● Text boxes● Data Constraints● Conditional formatting● Linking data to graphs● A demo Inheritance Tax Calculator
Help <F1> Is Your Friend
Formulae List Separators
List separators shown in Help are semi-colons, but commas are now the default. Tools|Options|LibreOffice|Calc|Formula
Summing Columns 1
This is one way to sum a column of numbers.
Summing Columns 2
There are other ways to sum a column of numbers:
=SUM(A1,A3,B5) specific cells
=SUM(C1:C5) specified range
=SUM(A19:B21) specified range
Sort Lists
It is easy to drag and fill a series of numbers.
This can be extended to strings or words.
Type one piece of information in a cell, then drag it to fill in a consecutive list of items
See Tools|Options|LibreOffice| Calc|Sort Lists to create your own
1000 1000 Jan
1001 1100 Feb
1002 1200 Mar
1003 1300 Apr
1004 1400 May
1005 1500 Jun
1006 1600 Jul
1007 1700 Aug
1008 1800 Sep
Sorting by Columns
It is easy to sort blocks of data.
Select area, including headings.
Click Data|Sort…
Sort by ‘Rating’ descending and ‘Cost’ ascending.
Click OK.
Change Icon Size
● Click on Tools|Options...|LibreOffice|View● Select Toolbar icon size
Selecting Toolbars
● Select View|Toolbars|Form Controls
● The toolbar can now be dragged to anywhere
● Now you have access to conveniently grouped functions
Named Ranges
● Ranges are defined as (say) d20:g40
● They can also be given aname to use in formulae
● Select the range● Select Data|Define Range…● Provide a name● Click Add● Now use it in formulae
Hlookup and Vlookup 2
Rating Cost Item
5 23 Pear Enter rating
4
5 78 Apple Cost 56
4 56 Orange Item Orange
4 98 Pineapple
Search term Lookup values
Hlookup and Vlookup 1
● Here is a Vlookup example● H19 holds the search term - ‘4’● Vegetables is the named range of the table● The numerals 2 and 3 are the offsets to the
answers● The zeros indicate that the column is not in
ascending order● Cost: =VLOOKUP(H19,Vegetables,2,0)● Item: =VLOOKUP(H19,Vegetables,3,0)
Text Boxes
● Text boxes do not move like cells, or affect column widths.
● They can be formatted.
My text box. It stays where I put it.
It does not move like a cell does.
It can be formatted.It can be formatted.
Linking Data to Graphs
Enter some data.
Select Insert|Chart
Work through ● Chart Type● Data Range● Data Series● Chart Elements
Data Constraints 1
● Sometimes you need to restrict the entry to a field to certain values
● Examples are:– A range of dates
– “Y” or “N”
● The easiest way is to select the cell and then select Data|Validity to set the constraints.
● We have two examples.
Data Constraints 2
● “Y” or “N” example● Clicking on the cell displays
an arrow button andoffers two choices
● Select the cell andthen click on Data|Validity
● Enter the values and help
● Select text example● In this case a range of
dates from other cells● The worksheet is
$Actual● The cells are
$E$45:$E$48● Tip: place two
spaces before the full stop on thehelp caption
Data Constraints 3
Conditions – If This Then ...
● We sometimes need to change a formula, depending on another cell’s content.
● =IF(condition, do this if true, do this if false)● =IF(F9<=F11,"Valid Date","Invalid Date")● =IF($C$7="","Enter name in cell",$C$7)
Concatenate
● Joining strings together● CONCATENATE("Text1", "Text2", …)● CONCATENATE(“The result: “, B10, …)● More advanced:● Enter “Name” into cell C7● Enter the following into C8, C9, C10● =CONCATENATE(IF($C$7="","Nobody ",$C$7),"
has a birthday")
Nested Formulae
● IF(…..), OR(….), AND(….), CONCATENATE(….) etc can all be nested.
● Consider:● =CONCATENATE($C$6)," Dances: ")● What if $C$6 is blank?● Add a condition:● =CONCATENATE(IF($C$6="","Nobody",
$C$6)," Dances: ")
Truth Tables
● Making sure logic is correct can be a bit tricky● Use a truth table to check● =IF(A=”T”,IF(B=”T”,Result 1,Result 2),IF(B=”T”,
Result 3,Result 4))● Note the nesting of the
conditions
A B Result
T T Result 1
T F Result 2
F T Result 3
F F Result 4
Comparison Operators
Symbol Operator
= Equals
>= Greater than or equal to
<= Less than or equal to
<> Not equal to
Conditional Formatting
● Change cell colours to indicate an error● Click on Formatting|Conditional Formatting|
Condition● Multiple conditions can be set
Conditional Formatting 2
● Conditional formatting may depend on two conditions
● IF(AND(J10="N"),(K10="Y"))
● Cell contents: =IF($J10="N","SIPP (not left in will)",IF(K10="Y","SIPP (left to spouse)","SIPP (left to third party)"))
Bringing It All Togther
IHT Spreadsheet Disclaimer
● The results from this spreadsheet should be independently checked with a tax specialist or on the HMRC/IHT website and a probate form.
● It is offered for tuition purposes only and may contain errors.