Applied computer
Applied computer
(YIBS)
2 CREDITS
EDITED BY
Email : angeinformatique@yahoo.com
VERSION 2022
Course Delivery System: Theory 30% Practical 70%
National program
• Path to a file.
• Presentation ;
• Arithmetic operations.
5. Building a formula
NB: Assignments will be available after every class to make sure content was
well understood
Course outline
Week 1: Study of windows graphical environment
● Presentation
● Window management
● Files management
● Folder management
● Path of a file
● Save files
● Creating a document
● Case study
• Presentation ;
• Window management;
• File and folder management.
Introduction
Computing has allowed humans to automate tasks, be it work, study, and even entertainment. In
order to use computers, men must be provided with a computer equipped with different programs,
so they are pushed to learn how to use the computer tool, on the hardware and software side.
I. Presentation of Windows
a. Definition
Computer: it is the physical (hardware) part of computing, it is an automatic machine allowing
the processing of information, obeying programs formed by sequences of logical arithme tic
operations.
Software: it is the virtual (immaterial) part of computing. Software is a set of programs, which
allows the computer to perform a particular task or function.
Case: on a computer, a folder is a location in which one or more files can be stored. There is no
space limit apart from the size of our hard disk. To make an analogy with real life, a file is a drawer
in which we store documents, photos
…in this case, the file represents the document or photo. Also referred to as directory and sub-
directory. Folder and directory are synonymous.
b. Microsoft Windows
(Increase or decrease the size) of a window by placing the mouse pointer on his computer, the pointer
changes from to , then hold the click and move the pointer.
When working, it is possible to open several windows. So you can run multiple programs at once. For
each open window, there corresponds a type of button that will be displayed in the taskbar.
There will be as many buttons as there are open windows. So you can navigate from one window to
another by just clicking on the button of the window in question; we say that we are working in a multi-
window environment.
In the Windows operating system, there are two (02) types of windows which are:
• System windows such as My Computer window, My Documents, Control Panel, Recycle Bin.
• application windows : these are the installed software windows.
Handling files and folders
Course objective:
Introduction
The information on a disk is organized in a file grouped or not in folders or directories. To be
able to find the data stored in a storage device, we need to know how it is organized.
I. Concept of files and folders
a. Definition.
• A file: is an information-carrying object. It is a set of data grouped together and
stored under the same name.
• Folder: is also called directory. It is an object that can store files and even other
folders.
b. Presentation of a file
A file looks like this
A name: formed of a finite series of characters;
An extension: (or suffix) is used to identify the file type.
Example file: exercise.doc
File nameFile extension
II. The types of file
The most common file types are:
• executable files (with .exe extensions);
• image files (with the extensions .jpeg, .gif, .bmp, .png, .eps, .tif….);
• audio files (with the extensions .mp3, .wma, .wav. ….);
• video files (with extensions .mp4, .avi, .mpg, .mov….);
• text files (with extensions .doc, .txt, docx….);
• compressed files (.zip, .rar, etc.).
The base of the file system represented by (VS: \) is called the root of the disk. The route to
follow from the root to the file or folder sought in the tree structure is called the path.
1. Definition
Compression consists of reducing the physical size of blocks of information. A compressor
uses an algorithm that is used to optimize data using considerations specific to the type of data
to be compressed.
2. Types of compression
There are two types of compression:
Logical compression (reversible or lossless): which allows information to be replaced by
its shorter equivalent;
Physical compression (irreversible or lossy): which removes redundant data.
• Lossy compression
It only applies to perceptible data, generally sound or visual, which may undergo more or
less significant modifications. The original data is impossible to find.
• Lossless compression
A compression is said to be lossless if the data after decompression is identical to the
original data.
Exercise
1. Create a folder in the My Documents directory and give it the name TP LEVEL 2.
2. Give two examples of operations to perform on a file or folder.
3. What are the differences between a file and a folder?
4. How should the data be in our computer?
Conclusion
Tidying up your folders and files depends only on you. However, organizing them well into
directories and sub-directories respecting a logic (most often the files that contain the familiar data
are in the same directory, the familiar directories are in the same parent directory) allows you to
quickly find them.
Practical study of microsoft word
Course objectives :
Introduction.
Before the advent of ICT, writing a document was done by hand and using typewriters.
Nowadays with the arrival of computers, writing a written document has become a very convenient
task. For this, it would be necessary to install beforehand a software which makes this task possible,
which one generally calls software of word processing or texturizer.
I. Definitions of concepts
A text editor is word processing software that allows you to enter, correct spelling and grammar
errors and print written documents such as letters, press articles, invoices, presentations, memoirs ,
etc.
word processing is the set of operations that consist of composing, formatting, and layout of texts
using a computer application.
Formatting allows you to decorate the text in several ways: modify its font, size, color, underline
it, highlight it, capitalize it, etc.
Entry per kilometer: It is the fact of entering a text without worrying about line breaks and
formatting. It allows the user to save time.
❖ Home tab
The "Home" tab allows you to modify the fonts, paragraphs or styles of a selection. On the other
hand, this tab offers copy/paste and clipboard functions and allows you to apply formatting from
one selection to another. Thanks to the "Find and Replace" functionality, it is very easy to replace
a word or a phrase.
❖ Insertion tab
With the "Insert" tab, you place important elements in a document in order to complete the text.
For example, tables are used to organize data. The possibilities are diverse: images, clipart, shapes,
SmartArt and graphics. This tab facilitates the manageme nt of symbols. Also leverage the
QuickPart feature to organize your building blocks. Finally, easily insert symbols, equations or
other objects into your document.
❖ Creation or Design
The "Create or Design" tab lets you improve the overall look of a page or an entire document by
applying a theme, background color, or page border. You will also find the watermark option.
❖ Layout
Thanks to the “Layout” tab, it is easy to define options for margins, page breaks, columns,
indentation and spacing between lines. Finally, it is possible to align, group and manage the layers
of inserted objects and graphics and put them in the foreground or in the background.
❖ References
The "Reference" tab allows you to createprofessional documents with organized sections, tables of
contents or an index. Also consider managing sources, citations and a bibliography. If you have
inserted images, use the features of the table of illustrations and captions to manage these images
efficiently. Also add footnotes and endnotes as desired.
❖ Mailling
With the "Mailings" tab, you efficiently create your documents, labels and envelopes by merging
them with a data source, such as an address book or a database. Also, before you start printing,
you can preview results, filter and sort merged documents, or add, update, and correct fields.
❖ Revision
The "Revision" tab hosts the grammar and spelling command, as well as many search functio ns.
It also deals with proofreaders' marks of revision. Finally, we
uses the "Compare" feature to compare different versions of a document and combine them into
a final version.
❖ Display
The "View" tab includes the five main display modes, as well as ruler, grid, document explorer
and thumbnails. To view multiple open documents at the same time, alternate between differe nt
windows or display them on the same screen.
Conclusion
We can learn from this lesson that the appearance of ICT has facilitated the production of text
documents through the use of appropriate software. Thanks to its software, it is possible to perform
a large number of operations which we will discuss in a little more detail.
PRACTICAL STUDY OF MICROSOFT EXCEL
Course objective :
Microsoft Excel is an electronic spreadsheet. You can use it to organize your datainto rows and
columns. You can also use it to perform mathematical calculations quickly. This course teaches
Microsoft Excel basics as a prelude to the use of Statistical Analysis System (SAS) software in carrying
out more complex statistical analysis. Although knowledge of how to navigate in a Windows
environment is helpful, this manual is created for the computer novice.
At the end of the course, participants are expected to know how to use Microsoft Excel to:
This Section will introduce you to the Excel window. To begin this Section, startMicrosoft Excel
2007 as follows:
In the upper-left corner of the Excel 2007 window is the Microsoft Office button. When you click the
button, a menu appears. You can use the menu to create a new file, open an existing file, save a file,
print and perform many other tasks.
1.3 The Quick Access Toolbar
Next to the Microsoft Office button is the Quick Access toolbar. The Quick Access toolbar gives you
quick access to commands you frequently use.
1.4 The Title Bar
Next to the Quick Access toolbar is the Title bar. On the Title bar, Microsoft Excel displays the name
of the workbook you are currently using. At the top of the Excel window, you should see "Book 1 -
Microsoft Excel" or a similar name.
1.5 The Ribbon
In Microsoft Excel 2007, you use the Ribbon to issue commands. The Ribbon is located near the top of
the Excel window, below the Quick Access toolbar.
1.6 Worksheets
Microsoft Excel consists of worksheets. Each worksheet contains columns and rows. The columns are
lettered A to Z and then continuing with AA, AB, AC and so on; the rows are numbered 1 to 1,048,576.
The combination of a column coordinate and a row coordinate make up a cell address. For example,
the cell located in the upper-left corner of the worksheet is cell A1, meaning column A, row 1. Cell
E10 is located under column E on row 10. You enter your data into the cells on the worksheet.
1.7 The Formula Bar
If the Formula bar is turned on, the cell address of the cell you are in displays in the Name box which
is located on the left side of the Formula bar. Cell entries display on the right side of the Formula
bar.
1.8 The Status Bar
The Status bar appears at the very bottom of the Excel window and provides such information as the
sum, average, minimum, and maximum value of selected numbers.
By using the arrow keys, you can move around your worksheet. You can use the down arrow key to
move downward one cell at a time. You can use the up arrowkey to move upward one cell at a time.
You can use the Tab key to move across the page to the right, one cell at a time. You can hold down the
Shift key and then press the Tab key to move to the left, one cell at a time. You can use the right and
left arrow keys to move right or left one cell at a time. The Page Up and Page Down keys move up and
down one page at a time. If you hold down the Ctrl key and then press the Home key, you move to the
beginning of the worksheet.
1.10 EXERCISE 1
Move around the Worksheet using the Down and Up Arrow Keys, the Right and LeftArrow Keys, the
Tab Key, the Page Up and Page Down Keys and the (Ctrl) Home Key.
1.12 EXERCISE 2 Go to -- F5
If you wish to perform a function on a group of cells, you must first select those cellsby highlighting
them. The exercises that follow teach you how to select.
1.14 EXERCISE 3: Select Cells – F8
To select cells A1 to E7:
1. Go to cell A1.
2. Press the F8 key. This anchors the cursor.
3. Note that "Extend Selection" appears on the Status bar in the lower-leftcorner
of the window. You are in the Extend mode.
4. Click in cell E7. Excel highlights cells A1 to E7.
5. Press Esc and click anywhere on the worksheet to clear the highlighting.
Alternative Method: Select Cells by Dragging
1. Go to cell A1.
2. Press the left mouse button.
3. While holding down the left mouse button, use the mouse to move from cell
A1 to C5.
4. Release the left mouse button.
5. Hold down the Ctrl key until step 9.
6. Using the mouse, place the cursor in cell D7.
7. Press the left mouse button.
8. While holding down the left mouse button, move to cell F10. Release the left
mouse button.
9. Release the Ctrl key. Cells A1 to C5 and cells D7 to F10 are selected.
10.Press Esc and click anywhere on the worksheet to remove the highlighting.
1.15 Enter Data
In this section, you will learn how to enter data into your worksheet. First, place the cursor in
the cell in which you want to start entering data. Type some data, and then press Enter. If
you need to delete, press the Backspace key to delete one character at a time.
1.16 EXERCISE 4: Enter Data
6. Click the Wrap Text button . Excel wraps the text in the cell.
1.2 Delete a Cell Entry
To delete an entry in a cell or a group of cells, you place the cursor in the cell or
select the group of cells and press Delete.
1.3 EXERCISE
7 Delete a Cell
Entry
1. Select cells A1 to A2.
2. Press the Delete key.
1.4 Save a File
This is the end of Section 1. To save your file:
1. Click the Office button. A menu appears.
2. Click Save. The Save As dialog box appears.
3. Go to the directory in which you want to save your file.
4. Type Section1 in the File Name field.
5. Click Save. Excel saves your file.
1.5 Close Excel
Close Microsoft Excel.
1. Click the Office button. A menu appears.
2. Click Close. Excel closes.
Section 2: Entering Excel Formulas and Formatting Data
Section 1 familiarized you with the Excel 2007 window, taught you how to move around
the window, and how to enter data. A major strength of Excel is that you can perform
mathematical calculations and format your data. In this Section, you will learn how to
perform basic mathematical calculations and how to format textand numerical data. To
start this Section, open Excel.
2.1 Perform Mathematical Calculations
In Microsoft Excel, you can enter numbers and mathematical formulas into cells. Whether
you enter a number or a formula, you can reference the cell when you perform
mathematical calculations such as addition, subtraction, multiplication, or division. When
entering a mathematical formula, precede the formula with an equal (=) sign. Use the
following to indicate the type of calculation you wish to perform:
+ Addition
– Subtraction
* Multiplication
/ Division
^ Exponential
In the following exercises, you practice some of the methods you can use to perform
mathematical calculations.
2.2 EXERCISE 1
2.2.1 Addition, Subtraction, Multiplication and Division of Numbers
1. Type: Add, Subtract, Multiply, and Divide in cells A1, B1, C1, and D1
respectively
2. Type: 12, 25, 11 and 75 in cells A2, B2, C2 and D2 respectively
3. Type: 8, 13, 6 and 5 in cells A3, B3, C3 and D3 respectively
4. Type: = A2 + A3 in cell A5 and press Enter
5. Type: = B2 + B3 in cell A5 and press Enter
6. Type: = C2 + C3 in cell A5 and press Enter
7. Type: = D2 + D3 in cell A5 and press Enter
When creating formulas, you can reference cells and include numbers. All of the
following formulas are valid:
(a) =A2/B2; (b) =A2+12-B3; (c) =A2*B2+12; (d) =24+53/B2
To change the order of calculation, use parentheses. Microsoft Excel calculates the
information in parentheses first.
1. Double-click in cell A7.
2. Edit the cell to read =(3+3+12)/2*4.
3. Press Enter.
Note: Microsoft Excel adds 3 plus 3 plus 12, divides the answer by 2, and then
multiplies the result by 4. The answer, 36, displays in cell A7.
2.4 AutoSum
You can use the AutoSum button on the Home tab to automatically add a column or
row of numbers. When you press the AutoSum button , Excel selects the numbers it
thinks you want to add. If you then click the check mark on the Formula bar or press the
Enter key, Excel adds the numbers. If Excel's guess as to which numbers you want to add
is wrong, you can select the cells you want.
2.5 EXERCIS
E 3AutoSum
The following illustrates AutoSum:
1. Go to cell F1.
2. Type 3.
3. Press Enter. Excel moves down one cell.
4. Type 3.
5. Press Enter. Excel moves down one cell.
6. Type 3.
7. Press Enter. Excel moves down one cell to cell F4.
8. Choose the Home tab.
9. Click the AutoSum button in the Editing group. Excel selects cells F1
through F3 and enters a formula in cell F4.
10. Press Enter. Excel adds cells F1 through F3 and displays the result in cell F4.
Note that you can click on the arrow next to AutoSum to access other automatic
calculations like average, minimum and maximum values, count numbers, etc.
2.6 Align Cell Entries
When you type text into a cell, by default your entry aligns with the left side of the cell.
When you type numbers into a cell, by default your entry aligns with the right side of the
cell. You can change the cell alignment. You can center, left-align, or right-align any cell
entry. Look at cells A1 to D1. Note that they are aligned with the left side of the cell.
2.7 EXERCISE 4
5. Click the Paste button . Excel moves the contents of cells D9 to D12 to
cells G1 to G4.
2.9 Insert and Delete Columns and Rows
You can insert and delete columns and rows. When you delete a column, you delete
everything in the column from the top of the worksheet to the bottom of the worksheet.
When you delete a row, you delete the entire row from left to right. Inserting a column or
row inserts a completely new column or row.
2.10 EXERCISE 5
Insert and Delete Columns and Rows
To delete columns F and G:
This is the end of Section 2. You can save and close your file. See Section 1
(Subsections 1.23 and 1.24) to learn how to save and close a file.
Section 3: Creating Excel Functions, Filling Cells, and Printing
By using functions, you can quickly and easily make many useful calculations, such as
finding an average, the highest number, the lowest number, and a count of the number of
items in a list. Microsoft Excel has many functions that you can use.
3.1 Using Reference Operators
To use functions, you need to understand reference operators. Reference operators refer
to a cell or a group of cells. There are two types of reference operators: range and union.
A range reference refers to all the cells between and including the reference. A range
reference consists of two cell addresses separated by a colon. The reference A1:A3
includes cells A1, A2, and A3. The reference A1:C3 includes cells A1, A2, A3, B1, B2,
B3, C1, C2, and C3.
A union reference includes two or more references. A union reference consists of two or
more numbers, range references, or cell addresses separated by a comma. The reference
A7,B8:B10,C9,10 refers to cells A7, B8 to B10, C9 and the number 10.
3.2 Understanding Functions
Functions are prewritten formulas. Functions differ from regular formulas in that you
supply the value but not the operators, such as +, -, *, or /. For example, you can use the
SUM function to add. When using a function, remember the following:
1. Use an equal sign to begin a formula.
2. Specify the function name.
3. Enclose arguments within parentheses. Arguments are values on which you
want to perform the calculation. For example, arguments specify the numbers
or cells you want to add.
4. Use a comma to separate arguments.
Here is an example of a function:
=SUM(2,13,A1,B2:C7)
In this function, known as the SUM function:
1. The equal sign begins the function.
2. SUM is the name of the function.
3. 2, 13, A1, and B2:C7 are the arguments. Parentheses enclose the arguments.
4. Commas separate the arguments.
After you type the first letter of a function name, the AutoComplete list appears. You
can double-click on an item in the AutoComplete list to complete your entry quickly.
Excel will complete the function name and enter the first parenthesis.
3.3 EXERCIS
E 1 Functions
The SUM function adds argument values.
You can use the MAX function to find the highest number in a series of numbers.
You can use the count function to count the number of numbers in a series.
3.9 EXERCISE 2
(a) Fill Cells Automatically
The following demonstrates filling the days of the week:
1. Go to cell E1.
2. Type Section 1.
3. Grab the fill handle and drag with your mouse to highlight cells E1 to E14.
The cells fill in as a series: Section 1, Section 2, Section 3, and so on.
3.13 EXERCISE 4
Print Preview
To create the column chart shown above, start by creating the worksheet below exactly
as shown.
After you have created the worksheet, you are ready to create your chart.
4.2 EXERCISE 1
Create a Column Chart
.
1. Select cells A3 to D6. You must select all the cells containing the data you
want in your chart. You should also include the data labels.
2. Choose the Insert tab.
3. Click the Column button in the Charts group. A list of column chart sub-types
types appears.
4. Click the Clustered Column chart sub-type. Excel creates a Clustered Column
chart and the Chart Tools context tabs appear.
4.3 Apply a Chart Layout
Context tabs are tabs that only appear when you need them. Called Chart Tools, there
are three chart context tabs: Design, Layout, and Format. The tabs become available
when you create a new chart or when you click on a chart. You can use these tabs to
customize your chart.
4.4 EXERCISE 2
Apply a Chart Layout
4.8 EXERCISE 4
Change the Size and Position of a Chart
By default, when you create a chart, Excel embeds the chart in the active worksheet.
However, you can move a chart to another worksheet or to a chart sheet. A chart sheet
is a sheet dedicated to a particular chart. By default Excel names each chart sheet
sequentially, starting with Chart1. You can change the name.
4.10 EXERCISE 5
Move a Chart to a Chart Sheet
You have reached the end of Section 4. You can save and close your file.
Section 5: More on Entering Excel Formulas
This Section looks at more examples of how to enter and execute Excel Formulas.
5.1 The SUMIF Function
Syntax
SUMIF(range,criteria,sum_range)
Range is the range of cells where Excel searches for the criteria that you want evaluated.
Cells in each range must be numbers or names, arrays, or references that contain
numbers. Blank and text values are ignored.
Criteria is the criteria in the form of a number, expression, or text that defines which
cells will be added. For example, criteria can be expressed as 32, "32", ">32", or
"apples".
Sum_range are the actual cells to add if their corresponding cells in range match criteria.
If sum_range is omitted, the cells in range are both evaluated by criteria and added if
they match criteria.
Example
200,000 14,000
300,000 21,000
400,000 28,000
Formula Description
Sum of the (Result)
commissions for
property values over 160,000
(63,000)
=SUMIF(A2:A5,">160000") Sum of the property values over
160,000 (900,000)
=SUMIF(A2:A5,"=300000",B2:B3) Sum of the commissions for
property values equal to 300,000 (21,000)
5.2 The AVERAGEIF Function
Returns the average (arithmetic mean) of all the cells in a range that meet a given
criteria.
Syntax AVERAGEIF(range,criteria,average_range)
Criteria is the criteria in the form of a number, expression, cell reference, or text
that defines which cells are averaged. For example, criteria can be expressed as 32, "32",
">32", "apples", or B4.
MidWest 9,678
Formula Description (result)
=AVERAGEIF(A2:A6,"=*West",B2:B6) Average of all profits for the
West and MidWest regions
(16,733.5)
Average of all profits for all
regions excluding new
=AVERAGEIF(A2:A6,"<>*(New offices (18,589)
5.3 The COUNTIF Function
Counts the number of cells within a range that meet the given criteria.
Syntax: COUNTIF(range,criteria)
Range is one or more cells to count, including numbers or names, arrays, or references
that contain numbers. Blank and text values are ignored.
Criteria is the criteria in the form of a number, expression, cell reference, or text
that defines which cells will be counted. For example, criteria can be expressed as32,
"32", ">32", "apples", or B4.
Remark
You can use the wildcard characters, question mark (?) and asterisk (*), in criteria.
A question mark matches any single character; an asterisk matches any sequence of
characters. If you want to find an actual question mark or asterisk, type a tilde (~)
before the character.
=COUNTIF(A2:A5,A3)+COUNTIF(A2:A5,A2)
Example 2: COUNTIF formulas using wildcard characters and handling blank values
A B
1 Data Data
2 apples Yes
3 oranges NO
4 peaches No
5
apples YeS
6
Formula Description (result)
7
=COUNTIF(A2:A7,"*es") Number of cells ending with
the letters "es" in the firstcolumn above (4)
=COUNTIF(A2:A7,"?????es") Number of cells ending with
the letters "es" and having exactly 7 letters in the first column above (2)
=COUNTIF(A2:A7,"*") Number of cells containing
text in the first column above (4)
=COUNTIF(A2:A7,"<>"&"*") Number of cells not containing
text in the first column above (2)
=COUNTIF(B2:B7,"No")/ROWS(B2:B7) The average number of No
votes including blank cells in the second column above formatted as a percentage with
no decimal places (33%)
=COUNTIF(B2:B7,"Yes")/(ROWS(B2:B7)- The average number of Yes votes
COUNTIF(B2:B7,"<>"&"*")) excluding blank cells in the second
column above formatted as a
percentage with no decimal places
(50%)
You can view the number as a percentage. Select the cell, and then on the
NOTE
Sheet tab in the Number group, click Percentage Style .
Logical_test is any value or expression that can be evaluated to TRUE or FALSE. For
example, A10=100 is a logical expression; if the value in cell A10 is equal to 100, the
expression evaluates to TRUE. Otherwise, the expression evaluates to FALSE.
Score
45
90
78
Formula Description (Result)
Assigns either a pass or fail
=IF(A2<50,"FAIL","PASS")
remark to the first score (FAIL)
=IF(A2>89,"A",IF(A2>79,"B",
Assigns a letter grade to the
IF(A2>69,"C",IF(A2>59,"D","F"))))
first score (F)
=IF(A3>89,"A",IF(A3>79,"B",
Assigns a letter grade to the
IF(A3>69,"C",IF(A3>59,"D","F"))))
second score (A)
=IF(A4>89,"A",IF(A4>79,"B", Assigns a letter grade to the
IF(A4>69,"C",IF(A4>59,"D","F")))) third score (C)
5.5 The AND Function
Returns TRUE if all its arguments are TRUE; returns FALSE if one or more argument is
FALSE.
Syntax
AND(logical1,logical2, ...)
Logical1, logical2, ... are 1 to 255 conditions you want to test that can be either
TRUE or FALSE.
Example 1
Example 2
Data
50
104
Description (Result)
Formula
Because 50 is between 1 and 100
=AND(1<A2,A2<100) (TRUE)
"The Displays the second number above,
if it is between and 100,
otherwise displays a message (The
=IF(AND(1<A3,A3<100),A3,
value is out of range.)
=IF(AND(1<A2,A2<100),A2, "The Displays the first number above, if it
value is out of range.") is between 1 and 100, otherwise
displays a message (50)
5.6 The FREQUENCY Function
Calculates how often values occur within a range of values, and then returns a vertical
array of numbers. For example, use FREQUENCY to count the number of test scores
that fall within ranges of scores. Because FREQUENCY returns an array, it must be
entered as an array formula.
Syntax: FREQUENCY(data_array,bins_array)
Data_array is an array of or reference to a set of values for which you want to count
frequencies. If data_array contains no values, FREQUENCY returns an array of zeros.
Bins_array is an array of or reference to intervals into which you want to group the
values in data_array. If bins_array contains no values, FREQUENCY returns the number
of elements in data_array.
Remarks
FREQUENCY is entered as an array formula after you select a range ofadjacent
cells into which you want the returned distribution to appear.
The number of elements in the returned array is one more than the number of
elements in bins_array.
Example
A B
1 Scores Bins
2 79 70
3 85 79
4 78 89
5 85
6 50
7 81
8 95
9 88
10 97
Formula Description (Result)
=FREQUENCY(A2:A10,B2:B4) Number of scores less than or equal to 70 (1)
Number of scores in the bin 71-79 (2)
Number of scores in the bin 80-89 (4)
Number of scores greater than or equal to 90 (2)
NOTE
The formula in the example must be entered as an array formula. After copying the
example to a blank worksheet, select the range A12:A15, press F2, and then press
CTRL+SHIFT+ENTER. If the formula is not entered as an array formula, there will be only
one result in cell A12 (1).
5.7 The TREND Function
Returns values along a linear trend. Fits a straight line (using the method of least squares)
to the arrays known_y's and known_x's. Returns the y-values along thatline for the
array of new_x's that you specify.
Known_x's is an optional set of x-values that you may already know in the relationship
y = mx + b.
The array known_x's can include one or more sets of variables. If only one variable is
used, known_y's and known_x's can be ranges of any shape, as long as they have
equal dimensions. If more than one variable is used, known_y's must be a vector (that
is, a range with a height of one row or a width of one column).
If known_x's is omitted, it is assumed to be the array {1,2,3,...} that is thesame size
as known_y's.
New_x's are new x-values for which you want TREND to return corresponding y-
values.
New_x's must include a column (or row) for each independent variable, just as
known_x's does. So, if known_y's is in a single column, known_x's and new_x's must
have the same number of columns. If known_y's is in a single row, known_x's and
new_x's must have the same number of rows.
If you omit new_x's, it is assumed to be the same as known_x's.
If you omit both known_x's and new_x's, they are assumed to be the array
{1,2,3,...} that is the same size as known_y's.
NOTE
The formula in the example must be entered as an array formula. After copying the
example to a blank worksheet, select the range C2:C13 or B15:B19 starting with the
formula cell. Press F2, and then press CTRL+SHIFT+ENTER. If the formula is not entered
as an array formula, the single results are 133953.3333 and 146171.5152.
5.8 The ZTEST Function
You have reached the end of Section 5. You can save and close your file.
NOTE: The Excel Functions discussed in Section 5 are only a few of the numerous Excel
Functions available in Microsoft Office 2007. More assistance and exposure can be obtained
through the Microsoft Excel Help (F1)
BUILDING A FORMULA
I. The functions
Course objective
• Use built-in functions:
a. Definition
A function is a predefined formula allowing you to perform more or less complex calculatio ns.
A function is usually composed of a name and a couple of parentheses surrounding the arguments
which can be cell references or constants.
When several arguments are necessary for the calculation of a function, these are separated by
the sign [;] (semicolon).
Excel offers more than 400 functions divided into different categories: financial, mathematics
and trigonometric, statistics, logic, texts, date/time, etc.
Example of function:
In the function = SUM(C5;A1 : A8;24): Sum is the name of the function and C5,A1:A8,24 are
the arguments.
− Nested Conditions
It is possible to nest IS inside each other. Up to seven IF functions can be nested as value_if_true
and value_if_false arguments to build more complex tests.
= IF (CONDITION, VALUE_IF_TRUE, IF (CONDITION, VALUE_IF_TRUE, IF
(CONDITION, VALUE_IF_TRUE, VALUE_IF_FALSE)))
− The SUM IF function
Conditional sum is used to sum a range of cells based on a criterio n that must be verified in another
range that matches it.
• The first argument is the range of cells that contains the values to compare against the criterion.
• The second argument is the criterion that will make the element located in the third
argument participate or not in the summation.
The third argument is the range of numbers that can be part of the summation.
2) Absolute references
If you want the reference to cell C2 to remain when copying the formula, you must neutralize this
principle of relative reference. For this, when constructing the formula
=B6*C2, the reference C2 must be made absolute.
• Click cell C6 to edit the formula
• In the formula bar, select C2
• Press the F4 key on the keyboard
Note the result: we get =B6*$C$2. The C2 cell has become an absolute reference. The $ (dollars)
symbols will freeze the reference.
Now, if you copy the formula down to C7 and C8, you will get:
• In C7: =B7*$C$2
• In C8: =B8*$C$2
Dollar symbols can also be added to the keyboard.
SYNTHESIS CASE.
TP 01
Mrs. Sali's triplet children, returning from school, gave copies of the sequence to their mother.
Sequence where they had respectively:
• Kamga: French 13, English 11, History 18, IT 14 and Mathematics 12;
• Eva: French 7, English 17, History 19, IT 12 and Mathematics 16;
• Aymrick: French 17, English 15, History 15, IT 18 and Mathematics 18.
TP 02
Covid 19 is a pandemic that has been raging in the world since 2019, and Cameroon is not
spared. Following recent cases due to the mutation of this virus, the Minister of Health asked
the population to be tested. After the tests were done, he then did a statistical study on the
population tested positive by age group and gender. The data studied and taken from the Ms
Excel software are recorded in the table below:
According to the Minister of Health, the first 3 regions which will present the number of most
infected people will be given priority for the distribution of vaccines.
Order :Using your knowledge of computers and documentation, help the Minister of Health
to use the table above by:
Part I
1) Reproducing the statistical table of people tested positive for Covid 19 in MS Excel.
2) Introducing into cell J3, the formula = SUM(B3:I3)to calculate the total of positive cases in
the North region, then obtain for the other regions by copying.
3) Introducing in cell K3, the formula =RANG(J3;J$3:J$12;0) allowing to calculate the rank
of the North region, then to obtain for the other regions by copying.
Part II
1) Applying the sort function to sort the region names in alphabetical order.
2) Using the filter function on the rank, display only the 3 regions most affected by Covid 19.
3) Representing the histogram and the pie chart to visualize the regions, the total positive cases
per region and the rank of the most affected regions.
TP 03
1- Launch Excel 2007 and create a new document
2- Name your document: “transcript”
3- In the first line: Merge cell A1:I1 and type the title RELEVE DE NOTES
4- In the second line: Merge cell A2:I2 and type CLASS OF 3M2 5- From the third line to
the twelfth line enter the information in the table
6- Use the borders for the grid: for this select the range A1:I10 and then choose all the borders then
select the range A10:F12 and choose all the borders
Calculation programming
1) In cell E4 use the Sum function to calculate the total of the student SIMALEU and copy it to
calculate the total of the other students: =Sum (E4:D4)
2) In the cell F4 use the Average function to calculate the average of the student SIMALEU and
copy it to calculate the total of the other students: =AVERAGE (E4:D4)
3) In cell G4 use the SI function for the mention of the student SIMALEU and make there copy
for lamenting waves others students
=IF(F4<7;"Weak";IF(F4<8.99;"Insufficient";IF(F4<10;"Poor";IF(F4<12;"Passable";IF(F4<
14; "Fairly Good";IF(F4<16;"Good";"Very Good"))))))
4) In cell G4 use the IF function for student SIMALEU's decision and copy it for the other
students' decision: =IF(F4<10;"Fail";"Pass")
5) In cell I4, use the rank function for the rank of the student SIMALEU and copy it for the rank
of the other students: =RANG(F4;$F$4:$F$10;)
6) In cell B11 use the Min function for the minimum math mark and do the copy for the other
marks, total and average
7) In cell B12 use the Max function for the maximum math mark and do the copy for the other
marks, total and average
8) Save your work and close Excel
TP 04
1- Reproduce the table below in sheet 3 and program the calculations
NB: Total = Quantity*Unit price (use the copy formula to calculate the other designations)
• Total Gross =Sum of totals
• Discount = Total Gross * Discount rate
• Net Commercial= Total Gross – discount
• Discount = Net Commercial * Discount Rate
• Net Financial = Net Commercial - Discount
• VAT= Net Financial * VAT rate
• Net to Pay = Financial Net + VAT