Professional Documents
Culture Documents
unit 2 data analytics
unit 2 data analytics
unit 2 data analytics
Since you’re now able to insert your preferred formulas and function correctly, let’s check some
fundamental Excel functions to get you started.
1. SUM
The SUM function is the first must-know formula in Excel. It usually aggregates values from a
selection of columns or rows from your selected range.
=SUM(number1, [number2], …)
Example:
=SUM(A2:A7, A9, A12:A15) – A sophisticated collection that sums values from range A2 to
A7, skips A8, adds A9, jumps A10 and A11, then finally adds from A12 to A15.
=SUM(A2:A8)/20 – Shows you can also turn your function into a formula.
2. AVERAGE
The AVERAGE function should remind you of simple averages of data, such as the average
number of shareholders in a given shareholding pool.
=AVERAGE(number1, [number2], …)
Example:
The COUNT function counts all cells in a given range that contain only numeric values.
=COUNT(value1, [value2], …)
Example:
COUNT(A:A) – Counts all values that are numerical in A column. However, you must adjust
the range inside the formula to count rows.
Like the COUNT function, COUNTA counts all cells in a given rage. However, it counts all
cells regardless of type. That is, unlike COUNT that only counts numerics, it also counts dates,
times, strings, logical values, errors, empty string, or text.
=COUNTA(value1, [value2], …)
Example:
The IF function is often used when you want to sort your data according to a given logic. The
best part of the IF formula is that you can embed formulas and functions in it.
Example:
=IF(C2<D3,“TRUE”,”FALSE”) – Checks if the value at C3 is less than the value at D3. If the
logic is true, let the cell value be TRUE, otherwise, FALSE
The TRIM function makes sure your functions do not return errors due to extra spaces in your
data. It ensures that all empty spaces are eliminated. Unlike other functions that can operate on a
range of cells, TRIM only operates on a single cell. Therefore, it comes with the downside of
adding duplicated data to your spreadsheet.
=TRIM(text)
Example:
The MAX and MIN functions help in finding the maximum number and the minimum number in
a range of values.
=MIN(number1, [number2], …)
Example:
=MIN(B2:C11) – Finds the minimum number between column B from B2 and column C from
C2 to row 11 in both columns B and C.
=MAX(number1, [number2], …)
Example:
=MAX(B2:C11) – Similarly, it finds the maximum number between column B from B2 and
column C from C2 to row 11 in both columns B and C.
More Resour
Use cell references
in a formula
When you create a simple formula or a formula by that
uses a function, you can refer to data in worksheet cells
by including cell references in the formula arguments.
For example, when you enter or select the cell
reference A2, the formula uses the value of that cell to
calculate the result. You can also reference a range of
cells.
4. Press Enter.
Insert a formula in a table cell
1. Select the table cell where you want your result. If the
cell is not empty, delete its contents.
2. On the Table Tools, Layout tab, in the Data group,
click Formula.
3. Use the Formula dialog box to create your formula.
You can type in the Formula box, select a number
format from the Number Format list, and paste in
functions and bookmarks using the Paste
Function and Paste Bookmark lists.
1. Select the table cell where you want your result. If the
cell is not empty, delete its contents.
2. On the Table Tools, Layout tab, in the Data group,
click Formula.
3. In the Formula dialog box, do one of the following:
The formula =C2/B2 should be entered in cell D2 and copied to any number of rows you require.
You can view the resulting decimal fractions as percentages by clicking the Percent Style button (Home tab
> Number group).
As explained in Percentage tips, you should add more decimal places if necessary.
Or,
The Excel formula for calculating percentages is (without multiplying by 100) Numerator/Denominator. You can
convert the output to a percentage by pressing CTRL+SHIFT+%, or by clicking "%" under the "number" group
on the Home tab.
Percentage formula in excel: A percentage can be calculated using the formula=part/total. Imagine you are
trying to apply a discount and you would like to reduce the amount by 25%. The formula for this calculation will
be =Price*1-Discount %. (Imagine the "1" as a representation of 100%.)
The Percentage is a mathematical operation that involves multiplying the fraction by a hundred. The word
percent belongs to the Latin language, where it was called "Per-Cent."
For example, consider you are in school and you have six subjects in total. You are asked to write an exam for
each subject, and every subject has 100 marks to score. The total marks for all the subjects included sums up
to 600.
Let us imagine you scored 475 out of 600. Now, calculate the average of your scores.
The average is calculated by dividing your score by the total number of marks and multiply the fraction by 100.
That is,
(475/600)*100 = 79.16
Excel ROUND Function
Summary
The Excel ROUND function returns a number rounded to a given number of digits. The ROUND function
can round to the right or left of the decimal point.
Purpose
Round a number to a given number of digits
Return value
A rounded number.
Syntax
=ROUND (number, num_digits)
Arguments
number - The number to round.
num_digits - The place at which number should be rounded.
Version
Excel 2003
Usage notes
The ROUND function rounds a number to a given number of places. ROUND rounds up when the last
significant digit is 5 or greater, and rounds down when the last significant digit is less than 5.
ROUND takes two arguments, number and num_digits. Number is the number to be rounded,
and num_digits is the place at which number should be rounded. When num_digits is greater than zero,
the ROUND function rounds on the right side of the decimal point. When num_digits is less or equal to
zero, the ROUND function rounds on the left side of the decimal point. Use zero (0) for num_digits to
round to the nearest integer. This behavior is summarized in the table below:
Digits Behavior
=0 Round to nearest 1
Round to right
To round values to the right of the decimal point, use a positive number for digits:
=ROUND(A1,1) // Round to 1 decimal place
=ROUND(A1,2) // Round to 2 decimal places
=ROUND(A1,3) // Round to 3 decimal places
=ROUND(A1,4) // Round to 4 decimal places
Round to left
To round down values to the left of the decimal point, use zero or a negative number for digits:
=ROUND(A1,0) // Round to nearest whole number
=ROUND(A1,-1) // Round to nearest 10
=ROUND(A1,-2) // Round to nearest 100
=ROUND(A1,-3) // Round to nearest 1000
=ROUND(A1,-4) // Round to nearest 10000
Nesting inside ROUND
Other operations and functions can be nested inside the ROUND function. For example, to round down
the result of A1 divided by B1, you can ROUND in a formula like this:
=ROUND(A1/B1,0) // round result to nearest integer
Any formula that returns a numeric result can be nested inside the ROUND function.