MS Excel (ICAP)
MS Excel (ICAP)
CHAPTER
Introduction to Information Technology
Contents
1 Introduction to Microsoft Excel
2 Creating a new workbook
3 Backstage view
4 Printing
5 Chapter review
Self-test
Section overview
Microsoft Excel 2016 is the official ‘number cruncher’ of the Microsoft Office 2016 suite. It is also
available in online versions of Word, Excel, PowerPoint and OneNote which work in the web
browsers like Internet Explorer, Firefox, Chrome and Safari.
Use Comment
Manage personal Track income and expenses by day, month or year. Use Excel’s built-in
finances mathematical functions to automatically calculate routine or complex
equations.
Manage business Track sales orders and purchase orders, monitor bank balances, create
finances forecasts and budgets
Create a Makes the entry of dates in an Excel worksheet quicker, easier and more
calendar intuitive. Uses might include using the calendar to track the progress of a
project, record important client events or track staff movements.
Plan and manage Whether you are planning a large work project, a wedding or holiday, you
a project or event could use Excel to keep track of multiple tasks and deadlines, and as a
central database of all information and files you need to execute the project
or event
Create lists Excel’s convenient tabular layout makes it easy to format many different
types of lists.
Maintain an Create an address book to manage your mailing labels. Functions such as
address book ‘filter’, ‘sort’ and ‘search’ make it easy to create and manage a large contact
list.
Display data in From using a pie-chart to show the share of votes in an election to a bar
charts chart showing average monthly rainfall and temperatures, charts and
graphs are an effective visual-aid available in Excel.
Log time in Many employees use an excel workbook to maintain timesheets. They will
timesheets log data such as time worked on each client, tasks performed and
expenses incurred.
Component Comments
Row An Excel 2016 worksheet has 1,048,576 rows numbered from 1 to 1,048,
576
Column An Excel 2016 worksheet has 16,384 columns ranging from column A to
XFD
Cell An Excel 2016 worksheet has 17,179,869,184 cells which are identified
by their column and row position. For example cells A1 and CF38. Cells
are where the user enters data.
Name box This is used to identify either individual cells or groups of cells.
Formula bar The formula bar shows the value or formula entered into the upper-left
most selected cell.
Ribbon and tabs The logical groupings (tabs) of commands that can be accessed from the
top of the Excel screen. Each tab relates to a type of activity – e.g. laying
out a page (Page layout), or writing (Home)
Menus A menu is a list of options that become available when you click on a
‘drop-down’ arrow
Column O
Row 15
Worksheet ‘Sheet1’
Click
If Excel is already open click New + Blank workbook on the File tab. This will open a new
workbook in addition to the already open workbook.
Click
You can also press CTRL +N whilst in an existing workbook to quickly create a new, blank
workbook. Initial new workbook will be created with name Book1, Book2 and so on. You
can save it with appropriate name.
Click
Browsing through previously used file from the Open other workbooks.
Select file
Definition: Template
A template is a preformatted workbook designed for a specific purpose such as tracking sales or
budgeting.
Using templates can remove much of the set-up and design effort where a template already
exists that suits your needs. Furthermore it will help achieve consistency in the ‘look and feel’ of
your workbooks. This may or may not be of benefit to you depending on how bespoke or
standard your situation is.
Templates exist for a wide range of uses such as budgets, agendas, inventories, invoices,
reports, receipts and schedules. To base a new workbook on a template do the following:
Open Excel
Recent
template
Available
Categories
Preview
screens
Browse
through other
options
Preview
screens
Create
1. ‘File tab’
2. ‘Save as’
5. Save
3. Select Excel
Template type
Your new template will appear now appear as an option in Personal when you next open a new
file from the File tab
Personal Tab
New Template
Created
File tab
Open
Browse
2. Select template to
open
1. Templates file
type
3. Open
You can now edit your previously saved template such as adding or deleting rows, columns, and
worksheets, changing the contents of cells and adjusting formatting. Once finished editing, simply
re-save the file by either:
Click File tab then Save; or
CRTL + S.
Template worksheet is required to be saved with appropriate name for your future use. User-
created Templates are most often used for distribution to other users for data collection in unified
format.
In summary, the Office Backstage view is everything that you do TO a file that you don’t do IN
the file.
You get to the Microsoft Office Backstage view when you click on the File tab within a Microsoft
Office document. Note the consistent layout of Office Backstage whether you’re using Microsoft
Excel, Microsoft Word or Microsoft PowerPoint.
Click
Office Backstage
view
Option Comment
Save Save the changes made in open Workbook
Save As Save the open Workbook (with the changes, if any) as a new file by giving another
filename
Open Open a Workbook from an existing file
Close Close the exiting Workbook. Note that if you try to close a Workbook that hasn’t
been saved since making modifications you will be asked whether you’d like to
save or discard changes before closing
Info A logistical interface allowing you to protect Workbooks, check for issues before
sharing workbooks, and manage different versions of the workbook
Share Share the file either via E-mail, or with others via web (One Drive or Cloud)
Help Access Microsoft Office help, contact Microsoft or check for updates
Options Set options applicable to the whole Workbook such as default font for new
workbooks, default number of Worksheets appearing in a new Workbook and
editing language
Explort Create other formats for example PDF/XPS from the workbook
Publish Publish workbook to share and organize data with other visual softwares incuding
Power BI.
4 PRINTING
Section overview
Click
‘File’ tab
Navigate multiple
Worksheets here
2. Select which
printer to print to
4. Single or
duplex printing?
6. Select
orientation 7. Select paper size
w
5 CHAPTER REVIEW
Chapter review
Before moving on to the next chapter check that you now know how to:
Open a new, blank workbook
Base a new workbook on an existing workbook
Base a new workbook on a template
Create and edit your own templates
Recognise and use some components of the Office Backstage view
Print from Microsoft Excel
SELF-TEST
Q1 Which of the below best describes a worksheet?
A The overall file that contains one or more spreadsheets
B A parameter that is used to identify either individual cells or groups of cells
C The logical groupings of commands that can be accessed from the top of the Excel screen
D Individual spreadsheets that belong to a workbook
Q2 Which of the below describes the shortcut for opening a new, blank workbook?
A CTRL + N whilst in an existing presentation
B Click New + Blank workbook on the File tab
C CTRL + N whilst in an existing workbook
D Click Microsoft Excel 2010 from the start menu
Q7 Microsoft Excel opens a new workbook with how many default worksheets?
(a) Only one worksheet
(b) Three worksheets
(c) Five worksheets
(d) Unlimited worksheets
Q8 Which of the following feature of Microsoft Excel that works behind the scenes, correcting different
types of common mistakes?
(a) Spelling
(b) AutoFormat
(c) AutoEdit
(d) AutoCorrect
Q9 The basic unit of a Microsoft Excel worksheet into which you enter data is called:
(a) Tab
(b) Range
(c) Address
(d) Cell
Q10 When you type data in Microsoft Excel, it will display in which of the following cell?
(a) Previous cell
(b) Active cell
(c) Reference cell
(d) Home cell
Q11 The horizontal and vertical lines on Microsoft Excel worksheet are called:
(a) Gridlines
(b) Rows and columns
(c) Margins
(d) Boundaries
Q12 To save Microsoft Excel workbook using the shortcut keys, you need to press:
(a) Alt + S
(b) Ctrl + S
(c) Shift + S
(d) Ctrl + A
Q13 The number of Microsoft Excel worksheets that you can add to a workbook is:
(a) 156
(b) 256
(c) 16384
(d) Limited by the available amount of memory
Q14 The default top and bottom page margins in Microsoft Excel for both portrait and landscape orientation
is:
(a) 0.50 inch
(b) 0.75 inch
(c) 1.25 inch
(d) 1.50 inch
Q16 In Microsoft Excel, a rectangular grid containing horizontal rows and vertical columns is called Microsoft
Excel:
(a) Table
(b) Gridlines
(c) Worksheet
(d) Datasheet
Q17 Microsoft Excel has a feature of shared workbook. Sometimes many users have changed the contents
of the same cell causing a conflict. In this conflicting situation Microsoft Excel will:
(a) Keep the first change
(b) Keep the last change
(c) Discard all the changes and keep original contents
(d) Inform the user for conflict
CHAPTER
Introduction to Information Technology
Contents
1 Entering, formatting and editing data
2 Conditional formatting
3 Selecting, navigating and managing worksheets
4 Chapter review
Self-test
Section overview
Entering data
Formatting data
Editing data
Viewing data
Copying and moving data
Formatting numbers
Time format
now saved
Date: Use a forward slash or hyphen to separate the parts of a date e.g. 01/06/2013;
here default date format is mm/dd/yyyy; date and time format can be changed at a
later stage as well.
To enter a time or date that stays current when you reopen a worksheet use the NOW or
TODAY functions
Select the cell or range in which you want to edit exiting data (or enter new data) on the
active worksheet
Type the new data or edit the existing data in the active cell.
Press ENTER or TAB to move the selection to the next cell.
The changes are applied to all the worksheets that you selected.
TIP: Click any unselected worksheet to cancel a selection of multiple worksheets. Alternatively,
right-click the tab of a selected worksheet and then click Ungroup Sheets
CTRL-D and CTRL-R short-cuts
Two highly useful short-cuts are CTRL-D and CTRL-R. These are used to copy a cell either
downwards or to the right across a highlighted range.
CTRL-D
Click the cell you wish to copy
Highlight the cells directly below that you want to copy to either using SHIFT-DOWN arrow
or dragging the mouse downwards.
Then press CTRL-D
CTRL-R
Click the cell you wish to copy
Highlight the cells directly to the right that you want to copy to either using SHIFT-RIGHT
arrow or dragging the mouse downwards.
Then press CTRL-R
Click
‘Wrap Text’
Insert sheet
row
Blank row
appears
2. Delete
Sheet Rows
3. Seven rows
were deleted
1. seven cells
are selected
3. Choose
border to add
2. Select cell to
add border to
1. No
borders… 4. Border
added!
Cell colouring
Select the cell or range of cells that you wish to colour
Select the colour you want (theme or standard) from the Fill Colour within the Font group
on the Home tab
1. No
shading…
3. Select
colour…
2. Select cells
to shade
4. Grey
Shading
added!
Text colouring
Select the cell or range of cells containing the text you wish to format.
Click the colour (either theme or standard) in the Font Colour drop-down in the Font
group on the Home tab.
Note: you can also select one or more parts of the text within a cell to apply different text colours.
Now red!
Starts as
black…
Text alignment
Select the cell or range of cells containing the text you wish to align.
Click the alignment option that you want in the Alignment group on the Home tab (see
illustration below for types of alignment)
Choose
alignment
here
Add or remove
background here
Gridlines
Gridlines are the faint lines that appear around cells in your worksheet to help you manage your
work by distinguishing cells.
Gridlines can be removed or reinstated by ticking or un-ticking the View option under Gridlines
in the Sheet Options group on the Page Layout tab.
Note that by default gridlines do NOT appear when printing. To show (or subsequently remove)
gridlines on printed output tick or un-tick the Print option under Gridlines on the Page Layout
tab.
Gridlines
switched on
Gridlines
switched off
Underlining
The quickest method is to use a keyboard shortcut. Highlight either the relevant text within a cell,
a cell or selection of cells, then press CTRL+U. To remove the underlining, press CTRL+U again.
Bold text
The quickest method is to use a keyboard shortcut. Highlight either the relevant text within a cell,
a cell or selection of cells, then press CTRL+B. To remove the bold effect, press CTRL+B again.
Indentation and orientation
Texts can be left/center/right and top/middle/bottom aligned. We’ve also seen how text can be
wrapped within a cell.
Other alignment options include indentation and orientation.
Increase or decrease indentation using the indentation buttons within the Alignment
group on the Home tab.
Change rotation by selecting an option from the Orientation drop-down in the Alignment
group on the Home tab.
Rotation
drop-down
Increase
indentation
Reduce
indentation
Merge
options
1. Click column
header to select
column for resize 2. Click Column
Width
4. Column has
3. Enter new been resized!
column width
Column not
wide enough
Autofit column
width
Tip: A really useful short-cut for auto-fitting a column is to double click the right-hand boundary in
the header row of the column that needs auto-fitting.
Double-click
here
Re-sized!
Insert a symbol
To enter a symbol:
Click Symbol in the Symbols group on the Insert tab
Click Wingdings in the Font box on the Symbols tab of the Symbol dialog box
Scroll the list to find the required symbol
Double-click the symbol that you want inserted
3. Double click a
symbol to insert
2. Replace
3. Enter parameters
4. Replace All
2. Hide
1. Select
rows to hide
A quicker way to hide/unhide is to right-click when columns either side of the hidden column (or
rows either side of the hidden row) are highlighted. The right-click offers the option to hide/unhide
as applicable.
To display all hidden rows and columns at the same time use the Select All button:
Click Select All
Right-click in the Worksheet
Click Unhide 1. Click here
to select all
3. Unhide
2. Right-click in
the Worksheet
2. In this example we
could either ‘Freeze
Panes’ or ‘Freeze
Top Row’
3. Now when we
scroll the first row
remains displayed
To un-freeze panes:
Click Freeze Panes within the Window group on the View tab
Select Unfreeze Panes
Splitting panes
To split panes:
Click Split in the Window group on the View tab
The split windows will appear differently depending on which was the active (selected) cell
at the time of splitting:
Once split you can change where the split occurs by clicking on the split line with your
mouse then dragging it in any direction.
1. Split
To remove a split:
Re-click Split in the Window group on the View tab
Hide worksheets
You may wish to hide worksheets for example to maintain confidentiality in the workplace, or to
help manage large workbooks. Note that the hide feature never closes or erases a worksheet, it
just disappears from the monitor screen but remains active in memory.
To hide a worksheet:
Select the worksheet(s) you wish to hide
Click Format in the Cells group on the Home tab
Click Hide Sheet under Hide & Unhide within Visibility
You can hide worksheet by Right Clicking the Sheet Tab and select Hide.
The ‘Unhide’
dialog box
Hide workbooks
When working with multiple workbooks simultaneously (e.g. with linked data) you may not need
them all visible. To better manage your workspace you can hide an entire workbook.
Click Hide in the Window group on the View tab. This will hide the current workbook
without actually closing it.
To subsequently unhide a hidden workbook click Unhide in the Window group on the
View tab then select the workbook to unhide from the unhide dialog box.
Hide or unhide a
workbook
Select workbook to
unhide from the
unhide dialog box
Custom views
You can save specific display settings such as hidden columns, filter settings and row heights in
a custom view. These can be later re-applied to quickly re-instate the same settings to that
worksheet. You can also create a library of multiple custom views but note that you can only
apply custom views to the same worksheets they were created in. Old custom views can be
deleted.
To create a custom view:
Arrange display and print settings as you wish them to be saved on a particular workbook
Click Custom Views in the Workbook Views group on the View tab
Click Add
Select the check boxes of the settings you want to include.
Type a name for the view in the Name box then click OK
Note that Custom Views isn’t available for workbooks that contain an Excel table anywhere in the
workbook (even if in a different worksheet!).
1. Click
2. Click
5. Ok
Delete an existing
custom view
Double-click to
apply a saved
custom view
Cut
Paste
Copy
When filters are applied or some columns or rows are hidden you have the choice of copying all
cells (as described above) or just the visible cells.
To copy just the visible cells:
Select the visible cells you want to copy
Click Go To Special within Find & Select in the Editing group on the Home tab
Click Visible cells only within Select. Then OK
Continue as if this was a normal copy/paste. i.e.
Click Copy in the Clipboard group on the Home tab (or use CTRL+C)
Select the destination area
Click Paste in the Clipboard group on the Home tab (or use CTRL+V)
Click
Click
Click
You can also move or copy part of the contents of a cell rather than the whole cell. Instead of
single-clicking a cell you now need to:
Double-click the cell that contains the data you wish to move or copy
Use the mouse to select the characters you want to move or copy within the cell
Continue as described earlier using the cut/copy/paste icons
Another variation rather than pasting the full contents and all other settings of a copied cell(s) is
to paste certain attributes (referred to as ‘Paste Special’) – values, formatting or formulas for
example. Note that when pasting formulas that contain relative cell references, Excel will adjust
the references in the copied formula.
Paste
special
Options
The most common Paste Special settings typically used by accountants include Formulas,
Values and formats.
Another useful setting is ‘Transpose’.
Select
worksheet to
move/copy
Select destination
Select location
Click
If you want to move or copy the worksheet to another workbook (either an open workbook or a
completely new workbook), select as appropriate from the ‘To book’ drop-down. i.e.
You can also use copy/move data to another worksheet or workbook (using the cut/copy/paste
buttons on the home tab). Another technique is to drag data between open workbook windows in
the same session of Excel.
Actual value
is 100.376
Select ‘Number’
format
‘Number’ format is
displayed (2dp)
If one of the many built-in formats does not meet your needs you can customize a built-in number
format to create your own. The best way to approach this is to select the closest built-in format
then change any one of the embedded code sections to create your own custom number format.
Resultant customized
format data
Click
Whilst the range of options for programming custom formats is broad the below table provides a
good overview of the most common custom format components.
Category Comment
Specify colours [Green], [Black], [Red], [White], [Blue], [Magenta], [Cyan], [Yellow]
Some characters E.g. $ + - ( ) : ^ ‘ = / ! ~ > <
are displayed
without using
quotation marks
0 (zero) Displays insignificant zeros if a number has fewer digits than there are
zeros in the format.
E.g. To display 5.4 as 5.40 use #.00
# Follows similar rule as 0 (zero). However, extra zeros are not added if the
number has fewer digits than there are # symbols in the format.
E.g. with a #.## format, 5.4 will still show as 5.4
? Follows same rules as 0 (zero) except that Excel adds a space for
insignificant zeros on either side of the decimal point so decimal points are
aligned in the column. E.g. 5.4 and 3.28 would be aligned as 5.40 and
3.28 with a 0.0? format.
Thousands , (comma) displays the thousands separator in a number.
separator Note that a comma that follows a digit placeholder scales the number by
1,000.
E.g.
To display 15000 as 15,000 use #,###
To display 15000 as 15 use #,
To display 15500000 as 15.5 use 0.0,,
Other examples To display 3456.78 as 3456.8 use ####.#
To display 4.9 as 4.900 use #.000
To display .324 as 0.3 us 0.#
Dates See below
The below table summarises all the available date format components. You should practice in
Excel to determine exactly how each one displays.
Category D
Day d, dd, ddd, dddd
Month m, mm, mmm, mmmm, mmmmm
Year yy, yyyy
Click
Note that Excel does not include special number formats for all locations (e.g. there are no UK or
Pakistan phone number formats).
To get around this problem:
Follow the above steps to customise a cell’s format into US Phone Number format
Re-open the Dialog Box Launcher in the Number group on the Home tab
This time, click Custom in the Category box
The custom equivalent of the US Phone Number is displayed. You can now edit this
Custom format into a format to match your requirements
The below illustration shows how this might look for a typical Pakistan phone number.
The following table also illustrates the link between custom formats and the resultant
presentation for formulating an appropriate custom format phone numbers.
2 CONDITIONAL FORMATTING
Section overview
Introduction
Using conditional formatting
2.1 Introduction
Conditional formatting is an excellent feature of Microsoft Excel allowing Users to visually and
quickly identify trends and exceptions. Conditional formatting helps bring the workbook to life and
assist in interpreting data.
Some of the many uses an accountant may find for conditional formatting might include:
Identifying overdue customer accounts for the credit controller to chase payment
Identifying variances where test results fall outside pre-determined parameters
Monitoring inventory levels and warning when too low
Managing cash balances within operating boundaries
Ensuring bank covenants are not breached
Which sales clerks achieved PKR 300,000 sales this month?
Which products exceeded 8% year-on-year growth
Illustration 1:
Illustration 1: Data
bars / Gradient fill /
light blue
Illustration 2:
Illustration 2: Colour
scales / red-white-blue
Illustration 3:
Illustration 3: Icon
sets / ratings / 5-
quarters
1. Highlight data to
apply conditional
formatting to
2. Select a logic
test
4. Choose
3. Set applicable
parameters format
5. Result – We can
quickly see that charitable
contribution, depreciation,
other liabilities all
exceeded 26 days credit
2. This time we
need to click
“More Rules…” to
create our own
4. Click ‘Format’ to
set an exception
format
1. Highlight
data to apply
conditional
formatting to
2. Select
‘Below
average’
3. Choose
applicable
format
1. Highlight
data to apply
conditional
formatting to
2. Select
‘Duplicate values…’
3. Select
parameters:
- Duplicate/Unique
- Format
Then click OK
4. Result – Commissions
has been identified as a
duplicate account (which
presumably now needs
investigating)
Use ‘clear
rules’ to delete
rules
Use ‘Manage
Rules…’ to open
the Rules
Manager
2. Set
parameters
then click OK
Set
parameters
You can identify hidden rows and columns as they are marked with a white border.
Change Increase or
settings as decrease font
applicable size one notch
at a time
2. Rename
1. Right-click
tab name
Click
To insert a worksheet in front of the existing worksheet, click Insert in the Cells group on
the Home tab. Then click Insert Sheet.
Click
To insert multiple worksheets at the same time hold down the SHIFT key, select the same
number of existing sheet tabs as you want new worksheets then follow the same
procedure as described above.
To change the order of worksheets in a workbook:
Click and hold the mouse button on the worksheet tab at the bottom of the screen then
drag it to its new location.
To delete a worksheet:
Click Delete Sheet from the Delete options in the Cells group on the Home tab.
Alternatively, Right-click on the tab name at the bottom of the screen and select Delete
Click
Cells with comments are identified with a red indicator in the upper right corner. The comment
appears when you rest the mouse pointer on the cell.
Add a comment
Right-click the cell you wish to add a comment to
Select ‘Insert Comment’
Enter your comment in the body of the comment
Click outside the comment box to save your comment
Select
‘Comments’
Print comments
There are two options for printing comments – either as they appear on the sheet, or at the end
of the sheet.
Select the worksheet containing the comments you wish to print
Next you need to display on the workhseet any comments you wish to print. Use the
techniques described above.
Launch the Page Setup dialog box in the Page Setup group on the Page Layout tab and
select the Sheet tab.
Select either ‘As displayed on sheet’ or ‘At end of sheet’ in the Comments box.
Print.
Note: By default Comment box is hidden and visible when the user place mouse pointer on
the Cell; only those comments will be printed which the user has opted to show comment.
1. Click
2. Select
Sheet tab
3. Select as
appropriate
4. Print
4 CHAPTER REVIEW
Chapter review
Before moving on to the next chapter check that you now know how to:
Enter, format and edit data
View, copy and move data
Format numbers
Apply conditional formatting
Add comments
Manage worksheets
Understand how to select items and navigate around a workbook
SELF-TEST
Q1 What are gridlines in Excel?
A Faint lines that appear around cells in a worksheet to distinguish cells
B A type of margin that assists with aligning borders in print preview mode
C The left and right cell edges along the column header row
D The spacing bars that appear when hovering the mouse over a cell
Q4 Which of the following is NOT correct regarding the hide worksheet facility?
A The hide feature creates worksheets in a large workbook
B The hide feature is useful in managing large and complex workbooks
C The hide feature erases worksheets from a large workbook
D The hide feature can assist in maintaining confidentiality in the workplace
Q6 To emphasize certain entries and make the Microsoft Excel worksheet easier to read and understand,
you can:
(a) Format the worksheet
(b) Edit the worksheet
(c) Print the worksheet
(d) Proofread the worksheet
Q7 To enter a number as text in Microsoft Excel worksheet, start the entry with:
(a) Apostrophe
(b) Hyphen
(c) Plus sign
(d) Inverted comma
Q9 Which keyboard key is used to display a key tip badge in Microsoft Excel?
(a) Esc key
(b) Alt key
(c) Ctrl key
(d) Home key
Q10 It is a predefined set of colors, fonts, cell styles, and fill effects that can be applied to an entire Microsoft
Excel workbook.
(a) Paste Special
(b) Theme
(c) Outlook
(d) Default
Q11 Microsoft Excel cells that you cannot change values in are called:
(a) Saved cells
(b) Closed cells
(c) Protected cells
(d) Hidden cells
Q12 Which of the following allows you to create Microsoft Excel rules that change the formatting of a cell
based on the value of a cell?
(a) Conditional formatting
(b) Formatting wizard
(c) Conditional rules
(d) Value formatting
Q13 Which of the follwing serves as a digit placeholder in format codes of Microsoft Excel?
(a) Ampersand (&)
(b) Dollar sign ($)
(c) Number sign (#)
(d) Question mark (?)
Q14 To copy the contents of Microsoft Excel cell to the cell directly below it, click in the destination cell and
press:
(a) Ctrl + Down Arrow
(b) Ctrl + D
(c) Ctrl + C
(d) Ctrl + V
Q15 Which of the following option on the Paste menu will paste the Microsoft Excel cell reference of the
source area in the destination area?
(a) Paste Special
(b) Paste Merge
(c) Paste Link
(d) Paste Simple
Q16 In MS Excel, if the number format of a cell has been customised to “+##-42-####-####” and 12325678
is entered in the cell, it will be displayed as:
(a) +12-42-3256-78
(b) 42-1232-5678
(c) +12-42-3256-78##
(d) +-42-1232-5678
Q17 To create an exact copy of Microsoft Excel formula without replication, hold down the following key
while dragging the fill handle.
(a) Ctrl key
(b) Alt key
(c) Shift key
(d) TAB key
Q18 With Microsoft Excel workbook sharing enabled, which of the following is/are disabled for the
workbook?
(a) Merge cells
(b) Removing passwords
(c) Creating data tables
(d) All of the above
Q20 To split a merged cells in Microsoft Excel, select the cell and click the following option on Home tab:
(a) Split
(b) Split and Merge
(c) Merge and Center
(d) Split and Center
Q21 In Microsoft Excel, the small black square located in the lower-right corner of the heavy border around
the active cell is called:
(a) Fill handle
(b) Range handle
(c) Resize handle
(d) View handle
Q22 To apply a percent style format to a cell in Microsoft Excel using shortcut keys, press the following:
(a) Alt + %
(b) Alt + Shift + %
(c) Ctrl + %
(d) Ctrl + Shift + %
Q23 Which of the following statements is correct regarding ‘hide’ feature of MS Excel?
(a) You can hide more than one worksheet
(b) You can hide an entire workbook without actually closing it
(c) Both (a) and (b)
(d) You cannot hide more than one worksheet
CHAPTER
Introduction to Information Technology
Contents
1 Introduction to formulas
2 Useful functions for accountants
3 Chapter review
4 Self-test
1 INTRODUCTION TO FORMULAS
Section overview
Introduction to formulas
Create your first formula
Using functions to create a formula
Nested formulas
Relative and absolute references
Avoiding common formula errors
Deleting a formula
Definition: Formula
A formula is a statement written by the user to be calculated. Formulas range from very simple to
highly complex. They can contain values, references to cells, defined names and functions.
All formulas must start with the equals sign, e.g. “=2+6”
Definition: Function
A function is a small program designed to calculate specific values. Many standard functions are
built into Excel such as a function to sum values or calculate the current time. Additional functions
can be defined using the Visual Basic programming language (which is outside the syllabus).
Functions are typed alongside parenthesizes within which the arguments are listed. E.g.
=NOW() returns the current time
=SUM(3+5+7)*3 will multiply the sum of 3, 5 and 7 by 3.
Formulas are constructed using Functions, Cell references, Constants and Operators. For
example:
Illustration: Formulas
= 2 * PI () * A1
This formula is constructed of the following:
A function - PI (). This function returns the value of pi (3.14159). Some functions require
‘arguments’ to be entered in an exact syntax between the brackets. For example the SUM()
function requires at least one argument to sum e.g. SUM(A1, B2, C5). Others such as PI do not
require arguments.
A cell reference – A1.
A constant – 2.
An operator - * (multiply). Operators are the symbols used to create a calculation such as *
multiply, + add, - subtract, / divide, ^ raise to the power of.
So the cell will show the result of multiplying 2 times pi times the value of cell A1. For example if
A1’s current value was 10, then the formula would return
= 2 * 3.14159 * 10
= 62.8319
Illustration: Formulas
=TODAY () – Returns the current date
=UPPER(“convert”) – Converts the text “convert” to “CONVERT”
=IF(C1<100) – tests cell C1 to see if it contains a value less than 100. The result will
show as TRUE or FALSE
=SQRT(E3) – Uses the SQRT function to return the square root of the value in cell E3
=(D4+(E4*F4)-G4)/3 – Adds D4 to the product of E4 and F4, then subtracts G4 before dividing
the whole result by 3
E.g. = 7 + 11
E.g. = 14 ^ 8
Click the cells OR type the address of the cell rather than typing a constant
E.g. = A1 + 11
E.g. = C1 ^ C2
Press ENTER
Note that there are almost limitless numbers of constants and operators that can be used
in a formula (subject to a maximum 8192 characters).
B10: We want
the sales total
(2500) here
B12: We want
the average
daily sales
here. Note:
2500/5 = 500
Insert Function
Use Insert Function to show the total of 5 day’s sales in cell B10:
Click B10
Click Insert Function (fx) on the formula bar (note that Excel inserts the equals sign
automatically)
Select the formula from the Dialog box then press ENTER. Note – if the function you need
is not showing you can use the search box (e.g. by typing the word “SUM” in the search
box) to generate suggestions.
3.Use ‘search’
to help find the
SUM function
2.Click Insert
Function fx
4.Select the
SUM formula
5.OK
1.Click B10
When you press ENTER after selecting the appropriate formula the Function Arguments
dialog box is displayed. This is where you enter the arguments. Note that with many
functions, Excel makes an attempt to enter the arguments for you. These may or may not
require amendment.
Pre-populated
arguments appear
i.e. the range of
cells from B4 to B9
inclusive (shown as
B4:B9)
Click OK to confirm the arguments. Note that in this example we could either use the
arguments: B4 + B5 + B6 + B7 + B8 + B9 or a single ARRAY argument B4:B9
The sum of 2500 is now displayed in B10.
2. Select the
Statistical group
within ‘More
Functions’
1. Click B12
3. Click AVERAGE
Once again when we select our function (AVERAGE) by clicking on it in the drop-down list
we’re presented with the arguments dialog box.
Note this time though that the auto-generated Excel-populated arguments list is wrong as it
shows B4:B11. You need to manually edit the correct range of B4:B8.
Click OK to confirm the newly edited arguments.
Need to manually
adjust the argument
to B4:B8
Now manually
adjusted Note how Excel gives
you a preview of the
result
Click to
confirm
Continuing our earlier example we could use column C to show whether each day’s sales are
higher or lower than the average for the week (which we calculated as 500).
Click cell C4
Select the IF function from the Logical drop-down on the Formulas tab
Type in the arguments in the Function Arguments dialog box
Click OK
1.Click D4
3.Type the
arguments
4.Click OK
However, so far we entered the average of 500 as the number 500. We can change this to use
the AVERAGE function instead so that the overall formula is dynamic and does not need
manually updating every week.
TIP – the least risky method of constructing an embedded formula is to build each formula
separately using the Insert Function process as described above, then cut+paste one formula
into the other to replace one of the arguments.
So in our example we have built the AVERAGE function in cell B12 and constructed a non-
embedded IF function in D4. We can simply copy the text of the function in cell B12 and replace
the constant 500 within the IF function arguments as follows:
Click B12
In the function bar highlight the function EXCLUDING THE EQUALS SIGN
3. CTRL+C to copy
4. ESCAPE
1.Click B12
Press CTRL+C (copy) to copy the contents of B12 (excluding the equals sign) onto the
clipboard
Press ESCAPE
Click cell D4
Click with the mouse in the function bar and delete the constant 500 replacing it with the
AVERAGE function text from B12 by pressing CTRL+V (paste).
Press ENTER
We have NESTED (embedded) the Average function within the IF function. If we replicate this for
all days our Worksheet would then appear as follows:
=A1 * A2
= D1 * D2
i.e. the relativity of multiplying a cell two rows above (D1) by a second cell one row above (D2)
has been retained.
The alternative to relative cell references is absolute reference. An absolute cell reference does
not change when you copy and paste the formula to another cell and is identified by the dollar $
prefix for both Row and Column. In the above example, the formula for average in cell C4, with
the help of both relative and absolute reference would be:
=IF(B4>AVERAGE($B$4:$B$8),"Higher","Lower")
When we copy the above formula in the subsequent cells the relative reference i.e., B4 will go on
changing from B5 to B8; however, the absolute reference i.e., $B$4:$B$8 will remain unchanged.
Relative references
retained
Function key F4
generates absolute
references
Absolute reference
retained when copied
Enter numbers without formatting e.g. PKR 50,000 should be entered as 50000 (no
comma for thousands or currency notation)
Include the path to external workbooks All external links should include a path to the source
workbook.
References to other worksheet names Note this is only necessary when the other worksheet
should be made in single quotation name includes a non-alphabetical character such as
marks a hyphen – or a plus sign +
You must enter exactly the required For functions that have a specified number of
number of arguments arguments you must enter exactly the required
number.
Use a colon to indicate a range Some users accidentally use the hyphen but
remember this is the subtraction operator in Excel. A
range should be for example A1:A4
Match all open and close parentheses Be careful when nesting functions. Ever open
parenthesis must be matched by a close parenthesis.
This is why it can be a useful technique to build
nested functions, function by function, as it can be
difficult to identify missing parentheses in multi-level
embedded functions.
2. Click
Paste Note cell contents is a
formula
4. Select ‘values’
5. OK
Introduction
Compatibility functions
Date and time functions
Financial functions
Information functions
Logical functions
Lookup and reference functions
Math and trigonometry functions
Statistical functions
Text functions
2.1 Introduction
Microsoft Excel functions are categorized by their functionality into the various groupings shown
in the Function Library on the Formulas tab.
Function library
Last section we introduced the mechanics of how to enter, edit and delete functions. In this
section we explore each of the function libraries for the functions most commonly used by
Accountants giving examples where appropriate.
Note that we have not covered all the available functions by any means, just those that you are
most likely to encounter as Accountants.
One really useful option in the functions library is the Recently Used category, which does
exactly what it says – lists your most recently used functions.
Note too that if you can’t remember which library a function belongs to you can click ‘Insert
Function’ either on the Formulas menu bar or at the foot of any of the drop-down Library menus.
Insert function
button
Function Comment
If the dataset C2:C1001 was simply a list of numbers from 1 to 1,000, the formulas and results
would be as follows:
Function Comment
Function Comment
COUPDAYS Returns number of days in the coupon period that contains the settlement date
CUMPRINC Returns the cumulative principal paid on a loan between two periods
IRR Returns the internal rate of return for a series of cash flows
PV Returns the present value of an investment: the total amount that a series of
future payments is worth now
NPV Returns the net present value of an investment based on a discount rate and a
series of future payments (negative values) and income (positive values)
PMT Calculates the payment for a loan based on constant payments and a constant
interest rate
Function Comment
IS functions Each IS function checks the specified value and returns TRUE or FALSE.
e.g. ISBLANK(A1) returns TRUE if cell A1 is blank, otherwise returns FALSE.
Typically these functions are used in IF statements.
e.g. =IF(ISERROR(C6),”Exception occurred”,C6*365). This would multiply C1
x 365 unless the value in C1 was an error, in which case the text string
“Exception occurred” would be displayed
IS functions ISBLANK(value)
– examples ISERR(value) – checks for any error except #N/A
ISERROR(value) – checks for any error
ISLOGICAL(value)- checks if it’s a logical value e.g. TRUE
ISNA(value) – checks if #N/A
ISNONTEXT(value) – checks if non-text
ISNUMBER(value)
ISREF(value) – checks if it’s a reference
ISTEXT(value)
Function Comment
[range_lookup] – an optional value. Use “TRUE” if you
want a ‘best-fit’ match to the data. Use “FALSE” if you
need an exact fit.
HLOOKUP – lookup_value, Works in an almost identical fashion to VLOOKUP except
table_array, row_index_num, rather than checking for a matching row then moving across
[range_lookup]) a certain number of columns, HLOOKUP checks for a
matching column then moves down a certain number of
rows.
VLOOKUP
The Vlookup function is used to search the first column of a range of cells and then returns a
value from any cell on the same row of the range.
This is best described by way of an illustration.
Illustration: VLOOKUP
Let’s say we have a list of 1,000 employees in a worksheet with columns arranged as follows:
A: Employee ID
B: Surname
C: Department
D: Salary
We could use the VLOOKUP function to search the records for employee XYZ2538 and return
their salary from the 4th column as follows:
=VLOOKUP("XYZ2538",A1:D1000,4,FALSE)
HLOOKUP
The Hlookup function is used to search the first row of a range of cells and then returns a value
from any cell in the same column of the range.
This is best described by way of re-arranging a subset of the data from the Vlookup illustration
into a columnar format.
Illustration: HLOOKUP
Let’s say we have a list of 100 employees in a worksheet with rows arranged as follows:
Row 1: Employee ID
Row 2: Surname
Row 3: Department
Row 4: Salary
We could use the HLOOKUP function to search the columns for employee XYZ2538 and return
their salary from the 4th row as follows:
=HLOOKUP("XYZ2531",D1:CZ4,4,FALSE)
ABS (number) Returns the absolute value of a number (i.e. the number without its
sign)
e.g. =ABS(-3) = 3
CEILING (number, Rounds a number up (away from zero) to the nearest multiple of
significance) significance.
e.g. =CEILING(7,2) = 8 i.e. rounds 7 up to the next multiple of 2
FLOOR (number, Rounds a number down (towards zero) to the nearest multiple of
significance) significance.
e.g. =FLOOR(7,2) = 6 i.e. rounds 7 down to the highest multiple of 2
MOD (number, Returns the remainder after a number is divided by the divisor. Note
divisor) the result has the same sign as the divisor.
e.g. =MOD(7,2) = 1 i.e. 7/2=3.5, so working backwards 3 x 2 = 6,
leaving one left over
Function Comment
SUM (number1, Adds all the numbers that are specified as arguments. Note that the
[number2], arguments can take many forms, e.g. a range, constants, cell
[number3]…) references).
e.g. =SUM(2,10,13) = 25.
If cells A1, A2 and A3 contained the values 2, 10 and 13 this could
also be written as:
=SUM(A1, A2, A3) or alternatively
=SUM(A1:A3) or alternatively
=SUM(A1:A2, A3)
SUMIF (range, This clever function sums the values in a range that meet criteria that
criteria, [sum_range]) you specify. For example in a list of employees and salaries you
might want to sum the salaries of all employees with manager grade.
See illustration SUMIF below.
Illustration: SUBTOTAL
Using a list of employees including their employee ID, surname, department and salary we can
perform 11 different functions on the salary column using the subtotal function.
The dataset is as follows:
Illustration: AutoSum
The quick method for summing data is to use the AutoSum function on the Formulas tab.
Let’s say a property developer has seven tenants and information about how much each tenant
owes for electric, gas and water:
We could add totals for electric, gas and water in cells B9, C9 and D9:
Click cells B9, C9 and D9
Click the AutoSum function on the Formulas tab
2. Click
AutoSum
1. Click cells
1. Click cells
Illustration: SUMIF
A human resources department wants to find out the combined salaries of all the employees in
the Manufacturing department. The dataset is as follows:
Function Comment
Function Comment
COUNT (value1, [value2], Counts the number of cells in a range that contain a number
[value3]…) (i.e. not text or logical values etc.) plus the number of
numbers entered as arguments.
e.g. If there are numbers in cells C3, C8 and C11 but text in
all other C-cells in the range C1 to C20, then
=COUNT(C1:C20,10,11,12) would return an answer of 6. i.e.
the three numbers in cells C3, C8 and C11 plus three
numbers entered as arguments 10, 11 and 12.
COUNTA (value1, [value2], Very similar to COUNT except that COUNTA simply counts
[value3]…) non-empty cells and arguments, irrespective of type.
COUNTIF (range, criteria) Countif returns a count of the number of cells in a range that
satisfy the criteria.
MAX (number1, [number2], Returns the largest value in a set of values. Note that the
[number3]…) arguments can either relate to cells or be constants.
e.g. if cells C1:C3 included the values 7, 11, 4
=MAX(C1:C3) = 11
But,
=MAX(C1:C3, 15) = 15
For example:
Function Comment
EXACT (text1, The Exact function is useful for testing that text entered into a document is
text2) accurate. Also useful when combined with the LEFT, MID and RIGHT
functions below for example for testing certain check-digits say in product
codes or invoice numbers.
Returns TRUE if the text strings are exactly the same. EXACT is case-
sensitive but ignores formatting such as bold or underline.
LEFT (text, Returns the left most character (or characters if num_chars is used) of a
[num_chars]) text string.
e.g. =LEFT(“Pakistan”,2) = Pa
MID (text, Returns a specific number of characters (num_chars) from a text string
start_num, (text), starting at the position you specify (start_num).
num_chars)
e.g. =MID(“Pakistan”,3,4) = kist
PROPER (text) Capitalizes the first letter in a text string plus any other text letters that
follow a character other than a letter. All other letters are converted to lower
case.
RIGHT (text, The opposite of the LEFT function - returns the right most character (or
[num_chars]) characters if num_chars is used) of a text string.
e.g. =RIGHT(“Pakistan”,2) = an
Function Comment
TEXT (value, TEXT allows us to convert a numeric value to text. The ‘format_text’
format_text) argument lets us specify the display formatting (e.g. m/d/yyyy, #,##0.00).
TRIM (text) TRIM is particularly useful for formatting data received from other sources
that may have irregular spacing.
TRIM removes all spaces from text except for single spaces between
words.
3 CHAPTER REVIEW
Chapter review
Before moving on to the next chapter check that you now know how to:
Understand and construct basic formulas
Work with date formulas
Use functions commonly used by accountants
4 SELF-TEST
Q1 If today was a Monday, what would be the output of the following function?
=WEEKDAY(TODAY()+3,2)
A 2
B 3
C 4
D 5
Q2 What function returns the yield on a security that pays periodic interest?
A RATE
B YIELD
C NPR
D YLD
Q3 Which parameter describes the dataset that is being searched in the below function?
= VLOOKUP(lookup_value,table_array,col_index_num,[range_lookup])
A lookup_value
B table-array
C col_index_num
D range_lookup
Q6 Which Microsoft Excel command in the AutoCalculate area displays the highest value in the selected
range?
(a) Largest
(b) Most
(c) Highest
(d) Maximum
Q8 Which sign tells Microsoft Excel that you are typing a formula or function and not text?
(a) Apostrophe
(b) Letter F
(c) Equal
(d) Colon
Q9 Which of the following checks the formulas of Microsoft Excel workbook in a manner similar to the spell
checker that checks misspelled words?
(a) Formula checker
(b) Calculation checker
(c) Arithmetic checker
(d) Math checker
Q10 You may use the following Microsoft Excel function on formulas that potentially can result in more
decimal places than the format display in a given cell.
(a) AVERAGE
(b) ROUND
(c) DECIMAL
(d) FIT
Q11 Which of the following Microsoft Excel feature would help you find the input values to reach the desired
result ?
(a) Goal seeking
(b) Result tracing
(c) Formula seeking
(d) Any of the above may be used
Q12 In Microsoft Excel “What IF analysis” is carried out using the following tool:
(a) Value Seek
(b) IF Seek
(c) Track Seek
(d) Goal Seek
Q13 You can set Microsoft Excel in Automatic or Manual calculation mode. If it is in manual mode which key
you will press to update the formula values of all worksheets in all open workbooks?
(a) F6
(b) F9
(c) F11
(d) F12
Q14 In Microsoft Excel, when all the numbers between 0 to 100 in a range are to be displayed in Red Color,
you may apply the following:
(a) Use =if() function to format the required numbers red
(b) Apply Conditional Formatting option from Home tab
(c) Select the cells that contain number between 0 to 100 then click Red color on Text Color tool
(d) Any of the above method may be used
Q15 To override the order of calculations in Microsoft Excel formula, you need to use:
(a) Single quotes
(b) Double quotes
(c) Brackets
(d) Parentheses
Q17 Which of the following Microsoft Excel function can be used to find out 20th percentile of values
available in data from cell C1 to cell C1000?
(a) =PERCENTILE(C1:C1000,0.2)
(b) =PERCENTILE(C1:C1000,20)
(c) =PERCENTILE20 (C1:C1000)
(d) =PERCENTILE(C1:C1000,2%)
Q18 If today is Saturday then what will be the result of this Microsoft Excel function
=WEEKDAY(TODAY(),1)
(a) Monday
(b) Saturday
(c) 1
(d) 7
Q21 In Microsoft Excel which chart style shows horizontal bars that compare two or more values to show
how the proportions relate to each other?
(a) Line chart
(b) Column chart
(c) Bar chart
(d) Pie chart
Q22 To select non-adjacent ranges in Microsoft Excel worksheet, select the first range, hold down the
following key, then select the next range.
(a) Alt key
(b) Ctrl key
(c) Shift key
(d) Tab key
Q23 Which of the following Microsoft Excel function is used when the table direction is horizontal, or across
the worksheet?
(a) VLOOKUP
(b) HLOOKUP
(c) ALOOKUP
(d) WLOOKUP
Q24 You can sort data in Microsoft Excel table using which of the following techniques?
(a) Click the Sort & Filter button on the Home tab on the ribbon
(b) Right-click the table and then point to Sort on the shortcut menu
(c) Use the sort button on the Data tab on the ribbon
(d) Any of the above methods may be used
CHAPTER
Introduction to Information Technology
Contents
1 Introduction to managing data
2 Importing and exporting data
3 Representing data
4 Data connections
5 Chapter review
Self-test
1. Data source such as a text file (.csv, .txt.), SQL Server or Microsoft Access.
2. Data source may have an associated Open Database Connectivity (ODBC) driver or Object
Linking and Embedding Database (OLE DB) provider. The terms ODBC driver and OLE DB
connection describe the interface that connects a database with an application such as an
Excel workbook. OLE DB is a more up-to-date and versatile method than ODBC.
3. A connection file is required which provides the bridge between the data source and the
workbook. This defines all the information needed to access and retrieve data from a data
source.
4. Connection information is copied from the connection file into a workbook. Users can then
access and edit the connection information from within the workbook.
5. Data is ultimately displayed into the workbook (all the way from the data source) and available
directly in the workbook for use.
We can see the difference by looking at the same data set in Microsoft Notepad in both .txt and
.csv formats as follows:
There are a number of methods for using this data in an Excel worksheet:
Method Comments
Open a .csv file This is the simplest method. You can either:
directly into Excel use the ‘File-Open’ function in Excel (changing file type from ‘All
Excel Files’ to ‘Text Files’ so you can find the .csv file’)
or
use Windows Explorer to find the .csv file then use the ‘Open
With…’ and select Microsoft Excel.
Note:
Opening a .csv file directly in Excel does NOT import the data
nor create a connection. You are literally in the live and original
.csv file so any changes you make will change the .csv file.
Import a .csv or .txt We can use the Text Import Wizard to generate a copy of the source
using the Text data from the .csv or .txt file in an Excel Workbook. The process is
Import Wizard explained in full detail below.
within Excel Note:
Importing data using the Text Import Wizard (for both .csv and .txt
files) creates a copy of the source data in your workbook and
also creates a connection back to the source file. The
connection can then be subsequently updated to reflect further
changes to the source data.
Click
The process is best illustrated by working through an example. Let’s import the below tab-
delimited text file (shown open in MS Notepad):
To start the process, double-click the text file to be imported from the Import Text File dialog
box:
Double Click
4. Preview
2. Start row 3. File origin
5. Next
1. Specify the
delimiter
3. Review
4. Next
Adjust as
appropriate
Adjust as
appropriate
2. Set an appropriate
data format for import
Final steps
Clicking the ‘finish’ button opens a final dialogue box seeking confirmation exactly where
you want the imported data importing to.
The imported text data has now populated into your workbook.
Imported
data
Click
2. Save
1. Choose
appropriate file
format
3 REPRESENTING DATA
Section overview
Use of Charts
Steps for Drawing up Charts
Types of charts
Elements of a Chart
Modifying Chart
Excel also provides recommended chart options together with all chart tools that may be used to
represent data visually.
3. Click Charts
2. Click Insert
Recommended/ All
charts
1. Select the
data
5. Click Ok
1 1 2 3
18 6
16
Score Board Highest 7
4
14
12 5
Scores
10
8 Pak
6
Ind
4
6
2
0
1 2 3 4 5 6 7 8 9 10
4
Overs
6
Chart Design:
Chart design tool has option to change
Color
Layout
Chart elements
Chart type
Switch rows/column
Change chart type: It consists of multiple options. If you have selected a Bar chart and now you
want to change it to Column chart then it could be done by using ‘change chart type’ option.
Quick layout: Another option in Chart design is that you can save the layout of a chart as a
template; hence you can apply same as for the other charts in future.
Switching data: Data being charted on the X-axis will move to Y-axis and vice versa.
Select data: Data being used in the chart can be changed by using Select data option.
Change color: A combination of color to choose from in modifying chart type.
Chart styles: For a selected chart type there are multiple styles available with different look and
formatting.
Move chart: Option moves your chart as an object or in another sheet which is a powerful option
to place a chart in another sheet.
Resize Chart: A chart can be resized by selecting it and then from all four corners cursors will
show and drag it to the desired size.
Chart Elements
Chart elements may be inserted using a plus (+) sign when selecting an inserted chart.
Chart title: To apply a title to the chart and it can be changed, removed and repositioned at right
or left side.
Axis title: To apply a title to X-axis and Y-axis, it is actually used to label each axis.
Legend: Legend contains the names of data series with their actual data values.
Data Table: Same data (as in the sheet) will be shown in tabular form with the chart.
Axes: Option is used to change layout and formatting of each axes.
Grid lines: Option is being used to show and hide the grid lines in the chart on horizontal and
vertical axes.
Plot Area: Option is being used to change the background of the chart with gradient and solid
colors etc.
Trend line: Shows the trends between data series from beginning to end.
4 DATA CONNECTIONS
Section overview
Introduction
Finding existing data connections
Editing connection properties
Refreshing data connections
Exchanging data with other data sources
Exporting data from Excel to Word
4.1 Introduction
In the earlier worked example in section 2.2 we used the Text Import Wizard to import a text file
(15 employee HR records) into Excel.
Behind the scenes Excel created connection data and a link between the Excel worksheet and
the source data. This is exactly as described in the illustration in section 1.1 earlier.
During the import process Excel makes a local copy within the workbook of the imported data.
However, Excel is clever in that the connection data means it remembers exactly where the
imported data came from.
If the source data is changed we can either continue working with the original imported data or
alternatively refresh the connection to pick up the updated source data.
This section explains how we can identify and manage existing data connections.
Click
List of connections
1. Click
2. Select a
connection to edit 3. Click
Usage
properties
Definition
properties
Change refresh
settings here
Some changes have been made in the underlying data files as follows:
Employees XYZ2505, RD3211 and RDD3212 have left
Employee XYZ2516 has joined
We therefore need to refresh connections to reflect these changes.
Method 1
Click
Method 2
1. Click
2. Click a
connection
3. Refresh
4. Repeat 2 and 3
for each
connection
Method 3
2. Click refresh
from the Data
menus
3. Repeat 1 and 2
for each dataset
1. Select a
cell in the
dataset
RDD3211 and
RDD3212
removed
XYZ2505
removed
XYZ2516 new
1. Click
2b. Go
4. Import
5. Select
destination for
imported data
7. Data
successfully
downloaded
(note: may
need to re-
size columns)
2. Copy
(clipboard icon or
CTRL+C)
1. Select data
3. Paste
(clipboard icon
or CTRL+V)
and re-format
In Word:
Highlight the imported comma-delimited text
Select Convert Text to Table in the Table drop-down on the Insert tab
Adjust ‘Convert Text to Table’ settings as appropriate then click OK
2. Select ‘Convert
Text to Table’
1. Highlight the
imported .CSV text
3. Adjust settings
as applicable
4. OK
5 CHAPTER REVIEW
Chapter review
Before moving on to the next chapter check that you know how to:
Understand the basics of data connections between Microsoft Excel and other applications
Import data from other applications and in alternative formats
Represent data using charts and graphs
Export data to other applications and in alternative formats
SELF-TEST
Q1 Which of the following best describes OLAP?
A Overall level of accountability protocol
B Online analytical processing
C Overt linked analytical process
D Overlapping level for analogue program
Q8 Which of the following is not amongst the options under ‘Data from other sources’ in Microsoft Excel?
A Analysis services
B Microsoft query
C XML data import
D Data axis
Q9 Which of the following elements contain names of data series with the actual data values?
A Grid lines
B Legend
C Title
D Axes
CHAPTER
Introduction to Information Technology
Contents
1 Protecting worksheets, workbooks and cells
2 Sharing and merging workbooks
3 Chapter review
Self-test
Click
1. Select
2. OK
3. OK
Read-only
1. Select
2. Enter case-sensitive
password
3. Re-enter case-
sensitive password
4. Type password to
subsequently open the
file
To remove password
encryption: Delete the
password (denoted by
asterisks) then click OK and
re-save
1. Select
3. Create a password
4. OK
5. Re-confirm
password then click
OK. The worksheet is
now protected.
To un-protect a
worksheet:
1. Click ‘Unprotect
Sheet’
2. Enter password.
3. OK
Create a password
Confirm the password
Click OK
The structure and/or windows are is/are now protected.
1. Select
2. Select structure
and/or Windows
3. Create a
password.
4. OK
5. Re-enter
password.
6. OK
The structure
and/or windows
is/are now
protected.
Unprotect a workbook
To unprotect a workbook:
On the Review tab click Protect Workbook (note – this is not a typo – it does say Protect
Workbook. However, when you click on it if the workbook is currently protected then the
Unprotect Workbook dialog box will open.
Enter password in Unprotect Workbook dialog box
Click OK
1. Click
2. Enter password.
3. OK
The workbook structure
and/or windows is/are now
unprotected.
1. Click
2. OK
3. Fill in the
Signature Setup
dialog box then
click OK
A digital signature
line has been
added.
A list of Signatures is
displayed. Click ‘Sign…’
under the appropriate
name.
Ok
Insert comments as
appropriate
(if available).
Click Sign
Confirmation is
displayed
Document is
‘Marked as
final’
Signature is
displayed ‘Requested
signatures’
has changed
to ‘Valid
Signatures’
Status is updated
in the Info group
(File tab)
Confirmation that
signatures have
been removed
Select
OK
Confirmation is
displayed. Click
OK.
Status is
updated in the
Info group
(File tab)
Re-open the Format Cells dialog box and tick Locked and/or Hidden as applicable. Click
OK.
Click Protect Sheet in the Changes group on the Review tab.
Select the elements that you want users to be able to change
Enter a password if you also want to password protect the worksheet
Note that if you do not password protect the worksheet then subsequent users can simply
unlock the worksheet and edit the previously locked cells.
Click OK
The cells are now locked and/or hidden.
If a user tries to edit a locked cell they receive an error message.
If a user clicks on a hidden cell then the formula is hidden from display on the formula bar.
6. Click
Click
Introduction
Sharing workbooks
Opening a shared workbook
Editing a shared workbook
Removing a user from a shared workbook
Resolving conflicting changes in a shared workbook
End the sharing of a shared workbook
Merging workbooks
2.1 Introduction
It may be useful for multiple users to have simultaneous access to the same workbook, for
example in project management in a manufacturing business. It may be necessary for project
managers to be able to access a central shared workbook containing a list of latest component
prices plus project status, costs and timings for each project.
To facilitate this we can create a shared workbook and place it on a network for multiple users to
access. The workbook owner controls user access and resolves any conflicting changes. At the
end of the process you can stop sharing the workbook.
The workbook is now shared. Note though that some productivity is suppressed in file sharing
mode. The below list is not comprehensive but gives some examples of suppressed functionality
in shared workbooks:
Delete worksheets
Add or change conditional formats Existing conditional formats will still update as cell
values change
Write, record, change, view or assign Existing macros that don’t access unavailable
macros features will still run.
1. Click
2. Select
3. Change
advanced
settings as
applicable
then click OK.
4. Click OK then
save to a network
location.
Click to
protect
Status Comment
OK No action required
Error: Source not Click Change Source and select another
found workbook.
Error: Workbook Click Change Source and select another
not found worksheet
Re-save the workbook using either the save icon or press CTRL+S.
1. Click to
verify links
Update as
necessary.
Click the Save icon or press CTRL+S to save your changes to the workbook and see changes
other users have made since your last save.
You will need to ‘resolve conflicts’ if the Resolve Conflicts dialog box appears.
When the Resolve Conflicts dialog box is displayed address the conflicts as follows:
Click Accept Mine or Accept Other for each conflict.
If there are multiple conflicts and your response will be the same for all conflicts you can
click Accept All Mine or Accept All Others.
You can make your changes override all other changes without displaying the Resolve Conflicts
dialog box. Do this by clicking The changes being saved win on the Advanced tab of the
Share Workbook dialog box.
Remember this is opened by clicking Share Workbook in the Changes group on the Review
tab.
1. Click
2. When = All
2. Select 3. Click
History is generated on
a new tab
Results of prior
conflict resolutions are
shown in Action Type
and Losing Action
columns
In detail:
Step 1 – Ensure all other users have completed their work – see Merging workbooks below.
Step 2 - To generate the history worksheet
Click Highlight Changes under Track Changes in the Changes group on the Review tab
Select (or type) “All” in the When list.
Clear the Who and Where check boxes
Select the List changes on a new sheet check box. Click OK
The change history appears in a new worksheet which you can then either print or copy to
another workbook.
1. Click
2. When = All
4. Select 5. Click
History is generated on
a new tab
History is generated on
a new tab
Click to unprotect
shared workbook
1. Click
3. Un-tick
4. Click
1. Click
3.Click Add
2. Select ‘Compare
and Merge
Workbooks’
4.Click OK
Merge workbooks
To merge workbooks:
Open the copy of the shared workbook into which you want to merge changes.
Click Compare and Merge Workbooks on the Quick Access Toolbar
Save the workbook if prompted
Click the copy (or multiple copies by holding down the CTRL or SHIFT key) of the
workbook that contains the changes that you want to merge.
Click OK.
Multiple copies of the shared workbook have now been merged into your current copy of the
shared workbook.
As usual you can use the Track Changes facility (from the Changes group on the Review tab)
to generate the change history relating to all the changes that have just been applied during
merging.
Note that the source copies of the shared workbook that you select for merging MUST be direct
copies of the destination shared workbook into which you are merging workbooks.
A second copy has been saved by another user as “B5 - Share and merge - Market data – V2.xls”
Cells E1
and B11
were
changed.
A third copy has also been saved by another user as “B5 - Share and merge - Market data –
V3.xls”
Cells E1
and D11
were
changed.
Open version 1 of the shared workbook and click Compare and Merge Workbooks on the Quick
Access Toolbar (OK to save if asked).
Click
OK
Select versions v2 and v3 by holding down the SHIFT key. Then click OK.
Choose files to
merge with V1
then click OK
The three files have now merged into the central V1 file resulting in the following worksheet.
Note how cell E1 was initially updated with the text string “Version 2” when file V2 was merged
but was then subsequently overwritten with “Version 3” when file V3 was merged.
Final
merged
worksheet
We can review all the changes by creating the history tab using Track Changes-Highlight Changes
from the Review tab:
Settings =
“All” and
“List
changes in
a new
sheet”
Change history
3 CHAPTER REVIEW
Chapter review
Before moving on to the next chapter check that you now know how to:
Protect worksheets and workbooks with passwords including
Password protect workbooks
Mark workbooks as final
Protect worksheets
Protect structures
Use digital signatures
Lock and hide cells
Manage the sharing and merging of workbooks including
Open a shared workbook
Edit a shared workbook
Remove users from a shared workbook
Resolve conflicting changes in shared workbooks
End the sharing of a shared workbook
Merge workbooks