Suman Harjit Excel Formulas and Functions Simplified The Ultimate Microsoft Excel For Beginners Bo
Suman Harjit Excel Formulas and Functions Simplified The Ultimate Microsoft Excel For Beginners Bo
Excel Operators
Named Ranges
Lookup Functions
VLOOKUP Function
HLOOKUP Function
XLOOKUP Function
INDEX Function
MATCH Function
INDEX-MATCH Functions
XMATCH Function
LOOKUP Function
Logical Functions
IF Function
AND Function
OR Function
IFS Function
IFERROR Function
Text Functions
LEFT Function
RIGHT Function
MID Function
LEN Function
CONCAT Function
TEXTJOIN Function
TRIM Function
LOWER Function
UPPER Function
PROPER Function
SUBSTITUTE Function
FIND Function
SEARCH Function
REPT Function
EXACT Function
DATE Function
DAY Function
DAYS Function
DAYS360 Function
MONTH Function
YEAR Function
DATEVALUE Function
DATEDIF Function
EDATE Function
NETWORKDAYS Function
EOMONTH Function
TIME Function
TIMEVALUE Function
HOUR Function
MINUTE Function
SECOND Function
WEEKNUM Function
WEEKDAY Function
NOW Function
TODAY Function
Maths Functions
ROUND Function
ROUNDUP Function
ROUNDDOWN Function
SUM Function
SUMIF Function
SUMIFS Function
SUMPRODUCT Function
ABS Function
EVEN Function
MOD Function
RAND Function
RANDBETWEEN Function
Statistical Functions
AVERAGE Function
AVERAGEIF Function
AVERAGEIFS Function
COUNT Function
COUNTA Function
COUNTBLANK Function
COUNTIF Function
COUNTIFS Function
LARGE Function
SMALL Function
MAX Function
MAXA Function
MAXIFS Function
MIN Function
MINIFS Function
MEDIAN Function
FREQUENCY Function
Information Functions
ISBLANK Function
ISERROR Function
ISFORMULA Function
ISNUMBER Function
ISEVEN Function
ISODD Function
ISTEXT Function
ISNONTEXT Function
CELL Function
INFO Function
ERROR.TYPE Function
As a small token of thanks for buying this book, I would like to offer a
FREE bonus gift to all my readers. I am offering a FREE online
VBA macros course called How to Record Macros in Excel.
Once you have completed the course you will be able to:
Automate Excel tasks easily
Save valuable time
Advance your Excel skills
You can register for this FREE online VBA course by clicking the
link below.
https://bit.ly/2JLFosd
Introduction
Welcome to my Excel Formulas and Functions book!
Version
This Excel Formulas and Functions book uses the latest version of
Excel, ensuring that readers have access to all the latest tools and
features that Excel has to offer. The book has been written using
Excel 365, which is the most recent version of Excel at the time of
writing. This means that readers will be able to follow the examples
and tutorials in the book using the most up-to-date version of Excel,
ensuring that they can take full advantage of all the latest features
and capabilities of the software. Whether readers are new to Excel or
experienced users, this book will help them to stay up-to-date with
the latest tools and techniques for working with data in Excel.
https://bit.ly/3KSPIhP
Contact me on my Website
I have a website dedicated to Excel which is
www.excelmasterconsultant.com where readers can find more
resources and information to enhance their Excel skills. My website
is a valuable resource for anyone looking to improve their Excel
skills, from beginners to advanced users. It offers a variety of Excel
tutorials, tips, and tricks, as well as online courses to help readers get
started with their projects. Additionally, readers can contact me
through the website to ask questions or provide feedback on the book
or the website. I look forward to hearing from readers and helping
them to excel in their use of Excel!
Now, if you're ready to take your Excel skills to the next level and
become a master of spreadsheet calculations, then let's dive in!
Excel Formulas and
Functions Basics
Before we learn about all the different Excel functions that are
available and how to create formulas in your worksheets, you first
need to understand the basics. In this section, you will learn all the
fundamentals of Excel formulas and functions.
Step 3: Select the cell where you want to display the result of your
formula. For example, if you want to display the result in cell C1,
select that cell.
Step 5: Type or select the cell reference for the first cell you want to
add. For example, to add the value in cell A1, type or select cell A1.
Step 6: Type a plus sign (+) to indicate that you want to add another
cell.
Step 7: Type or select the cell reference for the second cell you want
to add. For example, to add the value in cell B1, type or select cell B1.
The result of your formula will now be displayed in the selected cell.
The formula "=A1+B1" will display the result 15 in cell C1.
Follow the prompts to enter the arguments. For example, if you want
to sum cells A1 and B1, then select this range in the Number1
argument field and then press the OK button. The result will be
displayed in the selected cell.
Excel functions can be found in the Formula tab under the Function
Library group in the Ribbon, and they can also be typed directly into
a cell. Some examples of commonly used Excel functions include
SUM, AVERAGE, IF, VLOOKUP, and COUNT. Each function has its
own syntax and set of arguments, which must be entered correctly
for the function to work properly. Later in this book, you will learn
about all the best and most commonly used Excel functions and how
to apply them to your worksheets.
Excel Operators
In Excel, operators are symbols or characters that are used to
perform mathematical, logical or reference operations on values or
cell references within a formula. Here are some common examples of
operators in Excel and their meanings:
1. Arithmetic Operators:
Addition (+): adds two or more values.
Subtraction (-): subtracts one value from another.
Multiplication (*): multiplies two or more values.
Division (/): divides one value by another.
Exponentiation (^): raises a value to a power.
2. Comparison Operators:
Equal to (=): tests if two values are equal.
Not equal to (<>): tests if two values are not equal.
Greater than (>): tests if one value is greater than another.
Less than (<): tests if one value is less than another.
Greater than or equal to (>=): tests if one value is greater
than or equal to another.
Less than or equal to (<=): tests if one value is less than or
equal to another.
3. Logical Operators:
AND: returns TRUE if all the conditions are TRUE.
OR: returns TRUE if any of the conditions are TRUE.
NOT: returns the opposite of a logical value.
4. Reference Operators:
Range operator (:): creates a range of cells between two
cell references.
Intersection operator (space): returns the intersection of
two ranges.
Example:
Suppose you want to test if the value in cell A1 is less than the value
in cell B1. To do this, you would use the less than operator “<” in the
formula “=A1<B1”. The formula will return either TRUE if the value
in cell A1 is less than B1 or FALSE if the value in cell A1 is larger than
the value in cell B1.
Let's say we want to add up the values in the first row in columns A
to C. We can use the SUM function in cell D1 with a relative cell
reference like this “=SUM(A1:C1)”.
When we copy this formula to the next row, the cell reference adjusts
accordingly, so the formula in cell D2 would become
“=SUM(A2:C2)”.
Suppose we have the total of the values in the first column in cell A4
which is 120, and we want to divide each cell value in that column by
the total and enter the results in column D.
We can use an absolute cell reference for the total value like this
=$A$4. The formula in cell D1 would be “=A1/$A$4”.
When we copy this formula to the next row, the cell reference to the
total remains the same, so the formula in cell D2 would be
“=A2/$A$4”. When the cell reference is copied to the third row in
cell D3, the formula would be “=A3/$A$4”.
A mixed cell reference can be created by using the dollar sign ($) to
fix either the column or row in a reference while allowing the other
part to change. For example, if you want to fix the column reference
but allow the row reference to change, you would use a mixed
reference like this: $A1. This means that the column reference will
always refer to column A, but the row reference will change when the
formula is copied to other cells.
Similarly, if you want to fix the row reference but allow the column
reference to change, you would use a mixed reference like this: A$1.
This means that the row reference will always refer to row 1, but the
column reference will change when the formula is copied to other
cells.
Named Ranges
In Excel, a named range is a defined name given to a specific cell or
range of cells. Named ranges are important because they make it
easier to refer to a specific cell or range of cells in your formulas.
Step 2: Click on the Formulas tab on the ribbon at the top of the
Excel window.
Step 4: In the Name field, type a name for the range. Make sure to
use a name that is descriptive and easy to remember.
Step 5: In the Scope field, select the option that determines the
range's visibility. Workbook will make the range visible throughout
the entire workbook, while Sheet will make it visible only within the
current worksheet.
Step 6: In the Refers to field, you can either enter the cell or cell
range you want to name or use the mouse to select the cells by
clicking and dragging over them.
VLOOKUP Function
What is it?
VLOOKUP is a function in Microsoft Excel that allows you to search
for a specific value in a table or range of cells, and return a
corresponding value from a different column in that same table. It is
one of the most commonly used functions in Excel for data analysis
and lookup tasks. The V stands for Vertical.
Syntax
=VLOOKUP(lookup_value, table_array, column_index_num,
[range_lookup])
Arguments
lookup_value (required): This is the value that you want
to look up in the first column of the table or range of cells.
Example:
Let's say you have a table of sales data that looks like this:
You want to find out how much money was made from selling
bananas. You can use VLOOKUP to do this. Below are step-by-step
instructions on how to do this:
Step 1: Select a cell where you want to display the result of the
VLOOKUP formula. In this example, I select cell F3.
Step 2: Type the VLOOKUP formula
“=VLOOKUP(E3,B2:C6,2,FALSE)” in the selected cell.
Note: If the lookup value is not found in the leftmost column of the
table, VLOOKUP will return an #N/A error.
To Summarise
VLOOKUP is a very useful function in Microsoft Excel that allows
you to search for a specific value in a table or range of cells, and
return a corresponding value from a different column in that same
table. By using the VLOOKUP formula, you can quickly and easily
retrieve data from large tables, without having to manually search for
the data yourself. The syntax of the VLOOKUP formula consists of
four main arguments, including the lookup value, table_array,
col_index_num, and range_lookup, which all work together to help
you find the data you need. With its powerful capabilities and ease of
use, VLOOKUP is a valuable tool for anyone who needs to analyse or
work with data in Excel.
HLOOKUP Function
What is it?
HLOOKUP is a function in Microsoft Excel that is used to search for
a specific value in the top row of a table, and then return the value
from a cell in the same column from a row specified by the user. The
H stands for Horizontal.
Syntax
=HLOOKUP(lookup_value, table_array, row_index_num,
[range_lookup])
Arguments
lookup_value (required): This is the value that you want
to search for in the top row of the table. It can be a value, a
reference to a cell, or a text string enclosed in double
quotation marks.
Example:
Below we have a table of grades for three students.
We want to return the grade for student A for Math. Below are step-
by-step instructions on how to do this using the HLOOKUP function:
Step 1: Select a cell where you want to display the result of the
HLOOKUP formula. In this example, I select cell I2.
Step 3: Press Enter to execute the formula. The result should be the
value 75%, which is the grade for Math in row 2 of the table.
You can now use this same formula with different search values to
retrieve grades for other subjects from the same table.
To Summarise
The HLOOKUP function in Excel is a powerful tool that allows you to
search for a value in the top row of a table or range, and then return a
corresponding value from a specified row within that range. By
following the steps outlined above, you can easily use the HLOOKUP
function in your own Excel spreadsheets to retrieve specific data
based on search criteria. Whether you're working with grades, sales
data, or any other type of data that is organised in rows and columns,
the HLOOKUP function can help you quickly and efficiently find the
information you need.
XLOOKUP Function
What is it?
XLOOKUP is a powerful function in Microsoft Excel that allows you
to search for a value in a table or array and return a corresponding
value in the same row, column or intersecting cell. It is a new and
improved version of the VLOOKUP and HLOOKUP functions, which
can be used in more flexible ways and has several additional features.
Syntax
=XLOOKUP(lookup_value, lookup_array, return_array,
[if_not_found], [match_mode], [search_mode])
Arguments
lookup_value (required): The value or cell reference you
want to search for in the lookup_array. This argument can
be a value, a cell reference, or a formula that returns a
value or reference.
Example:
Let's say you have a table with employee information, and you want
to find an employee's salary based on their ID number. Here's what
the data might look like:
Suppose you want to look up the salary for ID 101. Below are the
steps to achieve this using the XLOOKUP function:
Step 1: Select a cell where you want to display the result of the
XLOOKUP formula. In this example, I select cell H3.
Step 2: Type the XLOOKUP formula “=XLOOKUP(G3,B2:B6,
E2:E6)” in the selected cell.
Step 3: Press Enter to execute the formula. Excel will search for the
value “101” in the ID column of the employee table and return the
corresponding value from the Salary column, which is $60,000.
You can find the salaries of other employees by changing the lookup
value in the XLOOKUP formula to the desired ID number.
To Summarise
XLOOKUP is a powerful function in Microsoft Excel that allows you
to search for a specific value in a table or range and return a
corresponding value from another column in the same table or
range. It's a very useful tool for tasks such as finding salaries or other
relevant information for a particular employee based on their ID. By
using the XLOOKUP formula and specifying the lookup value,
lookup array, and return array, you can quickly and easily retrieve
the data you need. With its flexibility and ease of use, XLOOKUP is a
valuable tool for anyone who works with data in Excel.
INDEX Function
What is it?
The INDEX function in Excel is a built-in function that returns the
value of a cell within a specified range, based on the row and column
numbers provided as arguments. It is commonly used to extract a
specific value or a range of values from a larger table or array.
Syntax
=INDEX(array, row_num, [column_num])
Arguments
array (required): This is the range or array of cells from
which you want to extract the value. The array can be a
single row or column, a range of cells, or an entire table.
Example:
Suppose you have a table of sales data for different products, and you
want to retrieve the sales data for a particular product in a specific
month. Here's the sample data:
To retrieve the sales data for Product B in February, you can use the
INDEX function by specifying row and column numbers. Below are
the steps to do this:
Step 1: First, select a cell where you want to display the result. In
this example I select cell H3.
To Summarise
The INDEX function in Excel is a powerful tool for retrieving specific
data from a table or range of cells. By specifying the row and column
numbers of the cell you want to retrieve, you can quickly and easily
extract information from large datasets. The example provided
demonstrates how the INDEX function can be used to retrieve sales
data for a particular product in a specific month. By following the
step-by-step instructions above and understanding the arguments of
the function, you can apply this tool to your own data analysis needs.
The INDEX function is just one of many functions in Excel that can
help streamline data analysis and make working with large datasets
more efficient.
MATCH Function
What is it?
The MATCH function is a built-in function in Excel that returns the
relative position of a specified value within a range of cells. The
function can be used to search for a value within a row or column
and return its position or index number.
Syntax
=MATCH(lookup_value, lookup_array, [match_type])
Arguments
lookup_value (required): This is the value that you want
to search for in the lookup_array. It can be a number, text,
or logical value.
Example:
Suppose you have a list of names in column B and their
corresponding ages in column C, and you want to find the position of
a specific name in the list. Below is what the data looks like:
To retrieve the position for Jane in the table using the MATCH
function, follow the steps below:
Step 1: First, select a cell where you want to display the result. In
this example I select cell F2.
Step 2: In the selected cell, enter the following formula
“=MATCH(E2,B3:B9,0)”.
To Summarise
The MATCH function is a powerful tool in Microsoft Excel that
allows you to find the position of a value within a range of cells. By
using this function with a lookup value, lookup array, and match
type, you can quickly and easily retrieve the position of a specific
value in a table, list, or database. This can be especially useful when
working with large datasets or when you need to locate specific
information within a worksheet. By following the step-by-step
instructions provided above, you can use the MATCH function in
your own Excel spreadsheets to search for specific values and
retrieve the position of those values within a range of cells.
INDEX-MATCH Functions
What is it?
You have learnt what the INDEX and MATCH functions are and how
they work with examples. However, by combining the INDEX and
MATCH functions together, you can perform even more powerful
lookups. As you have discovered, the INDEX function returns the
value of a cell in a table based on its row and column numbers, while
the MATCH function searches for a specified value in a range and
returns its position.
Example:
Suppose you have a table of employee data that looks like this:
Step 1: Select a cell where you want to display the result of the
lookup. In this example, I select cell G3.
Step 2: In that cell, type the following formula
“=INDEX(D3:D6,MATCH(F3,C3:C6,0))”.
Let’s break this formula a bit further to see exactly what’s happening:
Step 3: Press Enter to execute the formula. The result should be the
Department associated with the Employee ID you looked up. In this
case, if you looked up Employee ID 23456, the result should be
"Marketing".
The example above shows you how to perform a row lookup. Here is
another example of how to combine the INDEX and MATCH
functions to create a more powerful formula by looking up both the
row and column position of an array.
Let's say we have a table that shows the scores of different students
in different subjects:
We want to find the scores of a specific student, let's say Sarah for
Science. We can use the following steps to do this:
To Summarise
The combination of INDEX and MATCH functions in Excel is a
powerful tool that allows users to perform lookups and retrieve data
from tables. This function is useful when searching for specific data
in large datasets or when you need to retrieve a row or column of
data based on a specific value. By using the MATCH function to find
the position of the data in the table and the INDEX function to
retrieve the data, users can perform complex lookups with ease. This
function is a great addition to the Excel toolset and can help users
save time and increase their productivity.
XMATCH Function
What is it?
The XMATCH function is a new and improved version of the
MATCH function in Microsoft Excel, which allows for more
flexibility and power when searching for values in a range or array.
The XMATCH function was introduced in Excel 365, so it may not be
available in earlier versions of Excel.
Syntax
=XMATCH(lookup_value, lookup_array, [match_mode],
[search_mode])
Arguments
lookup_value (required): This is the value you want to
search for in the lookup_array.
Example:
Suppose you have the following data in cells B2:C7:
You want to find the position of Cherry in the Item column. Here are
the steps to do this using the XMATCH function:
Step 1: Click on an empty cell where you want to display the result.
In this example, I select cell F3.
B3:B7 is the lookup array where you want to search for the
value.
To Summarise
Overall, the XMATCH function is a powerful tool for searching and
matching values in Excel, and it can be very useful for a wide range of
applications, including data analysis, financial modelling, and more.
LOOKUP Function
What is it?
The Excel LOOKUP function is used to search for a value in a sorted
array or range, and then returns the corresponding value in a
specified column or row. This function is useful when you need to
find a specific value in a large set of data.
Syntax
=LOOKUP(lookup_value, lookup_vector, [result_vector])
Arguments
lookup_value (required): This is the value you are
looking for in the lookup_vector. It can be a value,
reference, or cell.
Example:
Suppose we have a table of data that shows the letter grades
corresponding to different numerical scores as shown below:
We want to use the LOOKUP function to find the letter grade for a
given score, let’s say 85. We will insert the letter grade for the score
in cell E3. Below are the steps to do this:
Step 1: First, select a cell where you want to display the result. In
this example, I select cell E3.
To Summarise
Overall, the LOOKUP function can be a valuable tool for anyone
working with Excel who needs to search for values within a large
dataset. With a basic understanding of the syntax and how the
function works, users can quickly and easily find the information
they need without having to manually search through large amounts
of data.
Logical Functions
Excel logical functions return either a TRUE or FALSE value based on a
logical test or comparison. They are commonly used in Excel formulas and
conditional formatting to automate decision-making processes. By using
Excel logical functions, users can perform powerful calculations and make
informed decisions based on data. In this chapter we will explore the most
commonly used logical functions.
IF Function
What is it?
Syntax
Arguments
Example 1:
Suppose you have a list of exam scores and you want to check which
students scored above 80. Here is what the data looks like:
Step 1: In the first cell in C3 in the Above 80 column, type the following
formula “=IF(B3>80, "Yes", "No")”.
Cell B3 is used as the logical_test argument and will check if the exam
score is greater than 80.
Step 3: Copy the formula down to the rest of the cells in column C in the
Above 80 column. The cells will display a “Yes” if any score in column B
is over 80 and “No” if it is below 80.
Example 2:
This next example will use the IF function to calculate a bonus amount
based on sales performance.
Suppose you have a list of salespeople in column B and their sales figures
in column C, and you want to calculate a bonus amount based on their
performance. If the salespersons sales figure is above 10,000, then you give
a 10% bonus otherwise there is no bonus. You can use the IF function to do
this.
Step 1: In the first cell of the Bonus column, type the following formula
“=IF(C3>10000, C3*0.1, 0)”.
Cell C3 is used as the logical_test argument and will check if the sales
figure is greater than 10000.
Step 3: Copy the formula down to the rest of the cells in the Bonus column.
The formula will calculate a bonus of 10% for all salespeople with sales
above 10,000. The bonus will be allocated to “John”, “Mark” and “Tom”.
Example 3:
Step 1: In the first cell of the Commission column, type the following
formula “=IF(D3>10000, IF(C3="Product A", 0.15, 0.1), IF(C3="Product
A", 0.1, 0.05))”.
The formula will first check if the sales figure in cell D3 is greater
than 10000. If it is, it will check if the product type in cell C3 is
"Product A". If it is, it will calculate a commission rate of 15%. If it
isn't, it will calculate a commission rate of 10%.
If the sales figure in cell D3 is not greater than 10000, the formula will
check if the product type in cell C3 is "Product A". If it is, it will
calculate a commission rate of 10%. If it isn't, it will calculate a
commission rate of 5%.
Step 3: Copy the formula down to the rest of the cells in the Commission
column.
Note: The logical_test argument can be any logical expression that returns
TRUE or FALSE. For example, you can use comparison operators such as
>, <, >=, <=, =, or <>, as well as logical operators such as AND, OR, or
NOT.
To Summarise
AND Function
What is it?
The AND function is a logical function in Excel that returns TRUE if all
the arguments provided to it are TRUE, and FALSE if any of the arguments
are FALSE. It is commonly used in combination with other logical
functions to evaluate complex conditions in Excel.
Syntax
Arguments
Example:
Suppose we have a table of sales data for different products, and we want to
identify the products that sold more than 100 units in both Q1 and Q2 and
then display the results in column E. Here is what the data looks like:
C3>100: This is the first condition being tested. It checks if the sales
in Q1 for Product A is greater than 100.
The AND function then checks whether both of the conditions are
true.
If just one or no conditions are true, the AND function returns FALSE,
indicating that Product A does not meet both criteria (Q1 sales greater
than 100 and Q2 sales greater than 100). If both conditions are TRUE,
the AND function returns TRUE, indicating that Product A meets both
of the criteria.
Step 3: Copy the formula down to the other rows in the table. The result in
each row will be either TRUE or FALSE, depending on whether the
product sold more than 100 units in both Q1 and Q2. In the example above,
the AND function in cells E3, E4 and E6 returns FALSE because products
A, B and D did not sell more than 100 units in both Q1 and Q2. The AND
function in cell E5 returns TRUE because product C sold more than 100
units in both Q1 and Q2.
To Summarise
The AND function in Excel is a logical function that allows you to test
multiple conditions and return a TRUE or FALSE result based on whether
all the conditions are met. The function takes one or more arguments that
can be either logical values (TRUE or FALSE), expressions that evaluate to
logical values, or cell references that contain logical values. When all the
arguments evaluate to TRUE, the function returns TRUE; otherwise, it
returns FALSE. The AND function is a powerful tool that can be used in a
variety of scenarios, such as checking if two conditions are both true or
testing if multiple conditions are met before taking a certain action. By
understanding how to use the AND function in Excel, you can save time
and streamline your spreadsheet calculations.
OR Function
What is it?
Syntax
Arguments
To Summarise
IFS Function
What is it?
The IFS function in Microsoft Excel is a logical function that allows you to
test multiple conditions and return a value based on the first true condition.
It replaces the need for nested IF statements, making complex logical tests
easier to write and read.
Syntax
Arguments
Example:
Suppose you have a dataset that contains the names of different fruits and
their corresponding prices, and you want to categorise the fruits based on
their prices into three categories: "Expensive", "Moderate", and "Cheap".
Below is what the data set looks like:
The first condition is C3>=5, which checks whether the price in cell
C3 is greater than or equal to 5. If this condition is met, the formula
returns "Expensive".
If the first condition is not met, the formula moves on to the next
condition, which is C3>=2. This condition checks whether the price in
cell C3 is greater than or equal to 2. If this condition is met, the
formula returns "Moderate".
If neither of the first two conditions are met, the formula moves on to
the final condition, which is C3<2. This condition checks whether the
price in cell C3 is less than 2. If this condition is met, the formula
returns "Cheap".
So, in short, the IFS function checks the price of each fruit in the
dataset and assigns it to one of three categories based on its price. If
the price is greater than or equal to 5, it's categorised as "Expensive".
If it's greater than or equal to 2 but less than 5, it's categorised as
"Moderate". If it's less than 2, it's categorised as "Cheap".
Step 2: Press Enter to apply the function to the first cell. The result should
show the category of the fruit based on its price.
Step 3: Copy the formula from the first cell to the rest of the cells in the
Category column. Each fruit is now categorised based on its price.
To Summarise
The IFS function in Excel is a powerful tool that allows you to categorise
data based on multiple conditions. By using the IFS function, you can
quickly and easily categorise data into different groups, making it easier to
analyse and make decisions based on the data. In the example provided, we
saw how the IFS function was used to categorise fruits based on their prices
into three categories: "Expensive", "Moderate", and "Cheap". By following
the steps provided, you can use the IFS function to categorise your own
data based on the conditions that are important to you.
IFERROR Function
What is it?
=IFERROR(value, value_if_error)
Arguments
Example:
This formula divides the value in cell A1 by the value in cell B1.
Step 3: Copy the formula from cell C1 and paste it into cells C2 to C5.
In this example, the IFERROR function helps to handle any errors that may
occur in the division calculation. If there is an error, it returns the text
"Error" instead of the error message, making the spreadsheet more readable
and easier to understand.
To Summarise
The Excel IFERROR function is a useful tool that allows users to handle
errors that may occur in their calculations. By using this function, users can
specify what value to display when an error occurs, rather than seeing the
error message in the cell. This not only makes the spreadsheet more
organised and readable but also helps to avoid confusion and mistakes that
could occur when dealing with error messages. Overall, the IFERROR
function is a simple yet powerful tool that makes your worksheets look
more clean and presentable.
Text Functions
Excel text functions are a group of built-in functions that are
designed to manipulate and analyse text strings in Microsoft Excel.
These functions are useful when you need to extract, combine,
format, or analyse text data in your worksheets.
LEFT Function
What is it?
The Excel LEFT function is a text function that allows you to extract
a specified number of characters from the left side of a text string.
This function is useful when you need to extract a specific part of a
longer string of text, such as a name or a code, and use it elsewhere
in your spreadsheet.
Syntax
=LEFT(text, [num_chars])
Arguments
text (required): This is the text string that you want to
extract characters from. It can be a cell reference, a text
string in quotation marks, or the result of another
formula.
Follow the steps below to extract the first three characters of the first
name:
Step 1: In cell B2, enter the LEFT function and specify the cell you
want to extract the characters from (in this case, A2), and the
number of characters you want to extract (in this case, 3). The
formula will be “=LEFT(A2,3)”.
Step 3: Copy the formula down to the other cells in column B. Once
you've copied the formula to all the cells in column B, the result
should be the first three characters of each name in column A.
To change the number of characters you want to extract from the left,
just change the value in the num_chars argument. For example, if
you want to extract 4 characters from the left, just change the value
to 4.
To Summarise
The Excel LEFT function is a powerful tool that allows you to extract
a specific number of characters from the left side of a text string.
With this function, you can easily extract and manipulate data in
your spreadsheet, making it more useful and relevant to your needs.
By providing the text string and the number of characters to extract,
you can quickly obtain the desired information from a larger text
string. This can be particularly useful in situations where you need to
extract names, codes, or other information from a larger dataset.
With its simple syntax and easy-to-use arguments, the LEFT
function is a valuable tool for any Excel user who needs to work with
text strings in their spreadsheets.
RIGHT Function
What is it?
The Excel RIGHT function is a built-in text function that allows users
to extract a specified number of characters from the right end of a
text string. For example, if you have a list of product codes and you
want to extract the last two digits to identify the product type, you
can use the RIGHT function to extract those characters.
Syntax
=RIGHT(text,[num_chars])
Arguments
text (required): This is the text string that you want to
extract characters from. It can be entered directly into the
formula or referenced from a cell.
num_chars (optional): This argument specifies the
number of characters that you want to extract from the
right end of the text string. If this argument is omitted, the
function will extract one character by default.
Example:
Suppose we have the following data in an Excel spreadsheet which
shows a list of product names in column B and the SKU’s in column
C:
We want to extract the last two characters of the SKU number for
each product. Here's how we can do this using the RIGHT function:
Step 1: In cell D3, enter the formula “=RIGHT(C3,2)”.
Step 2: Press Enter to complete the formula for the first row. The
result should be the last two characters of the SKU in cell C3, which
in this case is 10.
Step 3: Copy the formula down to the other cells in column D. Once
you've copied the formula down in the column, the result returns the
last two characters of each SKU in column C.
To Summarise
The RIGHT function in Excel is a useful tool for extracting a
specified number of characters from the right-hand side of a string.
By following the step-by-step instructions above, we were able to use
the RIGHT function to extract the last two characters of the SKU
number for each product in our example data set. The result was a
new column that displayed the extracted characters, which can be
used for further analysis or sorting purposes.
MID Function
What is it?
The Excel MID function allows users to extract a specific number of
characters from a text string, starting at a specified position. The
function stands for "middle" since it can be used to extract a portion
of text from the middle of a longer string. To use the MID function,
you need to provide a text string, a starting position, and the number
of characters to extract.
Syntax
=MID(text, start_num, num_chars)
Arguments
text (required): The text string that contains the substring
you want to extract. This can be entered directly into the
formula or can be referenced from a cell.
Example:
Suppose you have a list of names in column A. The goal is to extract
three characters after the second character in each name into column
B using the MID function. The sample data looks like this:
Step 3: Copy the formula down to the other cells in column B. The
MID function has extracted the first three letters of each name after
the second character and displayed them in column B.
Note: The MID function can be used to extract both text and
numbers from a string.
To Summarise
The MID function in Excel is a powerful tool for extracting specific
characters from a text string. By specifying the starting position and
number of characters to extract, you can quickly and easily
manipulate data in your spreadsheets to meet your needs. With the
step-by-step instructions and example provided earlier, you should
be able to use the MID function to extract data from your own
spreadsheets with ease.
LEN Function
What is it?
The Excel LEN function is a text function that returns the number of
characters in a given text string. It can be used to count the number
of characters in a cell or a range of cells. It includes spaces and any
other non-printable characters. It is useful when you want to count
the number of characters in a cell or verify if a text string meets
certain length criteria.
Syntax
=LEN(text)
Arguments
text (required): Specifies the text string that you want to
count the number of characters. It can be a cell reference,
a text string enclosed in quotation marks, or a
combination of both.
Example:
Suppose we have a list of names in column A of an Excel
spreadsheet, and we want to find out the length of each name and
enter it in column B.
Step 2: Press Enter to apply the formula. The result should be the
length of the name in cell A2 which is 4.
Step 3: Copy the formula down to the other cells in column B. The
LEN function has calculated the length of each name in column A
and displayed them in column B.
To Summarise
The LEN function is a very useful Excel function and can be used for
a wide variety of reasons. For example, if you want to make sure that
a password is at least 8 characters long, you can use the LEN
function to check the length of the password and return an error
message if it does not meet the criteria.
CONCAT Function
What is it?
The CONCAT function in Microsoft Excel is a text function that
allows you to combine two or more text strings into a single string.
The resulting text string is created by joining the strings together in
the order that they are listed. The CONCAT function can be used to
concatenate text strings, cell references, and other text or numeric
values.
Syntax
=CONCAT(text1, [text2], ...)
Arguments
text1 (required): The first text string that you want to
concatenate. This can be entered as a string of text
enclosed in quotation marks (" "), or as a cell reference to
a cell that contains the text you want to concatenate.
Example:
Let's say we have a table of data that contains first names and last
names in separate columns. The goal is to join the first and last
names and enter the full name in column C.
To illustrate this point, let’s say we have a list of first names again in
column A and we want to combine these names into one in cell C2.
TEXTJOIN Function
What is it?
The Excel TEXTJOIN function is used to concatenate text from
multiple cells or ranges, with a specified delimiter separating each
piece of text. It was introduced in Excel 2019 and Excel 365.
Syntax
=TEXTJOIN(delimiter, ignore_empty, text1, [text2], ...)
Arguments
delimiter (required): The character or characters to use
as a separator between each text value. This can be any
text value, including spaces, commas, semicolons, etc.
This argument cannot be empty, and it is always treated as
text.
Example:
Let's say you have a list of fruits and you want to combine them into
a single cell separated by commas. Here is what the data looks like:
Follow the below steps to join all the fruits in one cell separated by
commas using the TEXTJOIN function:
Step 1: Select the cell where you want the combined text to appear.
In this example, we'll select cell C2. Type the following formula,
“=TEXTJOIN(",",TRUE,A2:A5)”.
To Summarise
The TEXTJOIN function in Excel is a useful tool for combining text
strings in a range of cells into a single cell, separated by a specified
delimiter. By using the TEXTJOIN function, you can save time and
effort in manually joining text strings, especially when dealing with
large amounts of data. The function is flexible and can be customised
to meet your specific needs, whether you want to include or exclude
empty cells, or use a different delimiter.
TRIM Function
What is it?
The Excel TRIM function is used to remove leading and trailing
spaces from a given text string. It can also remove other non-
printable characters such as line breaks, tabs, and carriage returns.
Syntax
=TRIM(text)
Arguments
text (required): The text string that you want to trim. It
can be a cell reference, or a text string enclosed in
quotation marks.
Example:
Suppose you have a list of names in an Excel spreadsheet with
leading and/or trailing spaces, like this:
You can use the TRIM function to remove those spaces and get a
clean list of names. Here's how:
Cell A2 contains the text string that you want to clean up.
Step 2: Press Enter to confirm the formula. Excel will now display
the cleaned up name for John McDonald in cell B2.
To Summarise
The trim function is an excellent tool to clean text and therefore
make your data easier to work with. Below are a few examples of
when you might use the TRIM function in Excel:
LOWER Function
What is it?
The Excel LOWER function is a text function used to convert letters
in a given text string to lowercase. It returns the text in all lowercase
letters.
Syntax
=LOWER(text)
Arguments
text (required): This is the text string that you want to
convert to lowercase. It can be a reference to a cell or a
text string enclosed in double quotation marks.
Example:
Suppose we have a list of products in both uppercase and lowercase
letters in column A, and we want to convert them all to lowercase
using the LOWER function and display the results in column B.
Step 2: Press Enter to confirm the formula. Excel will convert the
text in cell A2 which is all uppercase, to lowercase in cell B2.
Step 3: Copy the formula to the rest of the cells in column B. The
LOWER function has changed the text in column A to all lowercase
text in column B.
To Summarise
By using this function, users can quickly and easily transform text to
lowercase letters. This can be helpful in a variety of scenarios, such
as when dealing with data that was entered in all caps. The process of
using the LOWER function is simple and straightforward, and it can
be applied to a range of cells to quickly convert large amounts of
data. It can save time and effort by automating the process of
converting text to lowercase, and it can help to ensure that data is
consistent and easily readable.
UPPER Function
What is it?
The Excel UPPER function is a text function used to convert letters
in a given text string to uppercase. It returns the text in all uppercase
letters.
Syntax
=UPPER(text)
Arguments
text (required): This is the text string that you want to
convert to uppercase. It can be a reference to a cell or a
text string enclosed in double quotation marks.
Example:
Suppose you have a list of names in column A that are all in
lowercase, and you want to convert them to uppercase using the
UPPER function and display the results in column B.
Step 2: Press Enter to apply the formula. Excel will convert the text
in cell A2 which is all lowercase, to uppercase in cell B2.
Step 3: Copy the formula to the rest of the cells in column B. The
UPPER function has changed the text in column A to all uppercase
text in column B.
To Summarise
The UPPER function is a useful tool for converting text to a
consistent format, especially when working with large amounts of
data. If you have a column of text in lower case or mixed case format,
you can use the UPPER function to convert all the text to uppercase
so that they are consistent and easier to read.
PROPER Function
What is it?
The Excel PROPER function is a text function used to convert the
first letter of each word in a given string to uppercase, while
converting all other letters to lowercase.
Syntax
=PROPER(text)
Arguments
text (required): The text or reference to a cell containing
text that you want to convert. This argument can be up to
255 characters long.
Example:
Suppose you have a list of names in column A that are all in
lowercase, and you want to properly capitalise the names so it is in
the correct format and display the results in column B. Below is the
data:
To do this, use the PROPER function using the steps below:
Step 3: Copy the formula to the rest of the cells in column B. The
PROPER function has changed the text in column A to proper case
text in column B.
Note: The PROPER function only converts the first letter of each
word to uppercase, so be careful if you have text with acronyms or
text that needs to be in all caps.
To Summarise
The Excel PROPER function is a useful tool that can save time and
effort when working with text data in a spreadsheet. By capitalising
the first letter of each word in a text string, the PROPER function can
help standardise the formatting of data and make it easier to read
and understand. Whether you are creating titles and headings, or
simply cleaning up messy text data, the PROPER function can be a
valuable tool in your Excel toolbox. By following the step-by-step
instructions provided above, you can easily use the PROPER
function to capitalise text in your own spreadsheets and improve the
clarity and organisation of your data.
SUBSTITUTE Function
What is it?
The Excel SUBSTITUTE function is a text function used to replace
one or all occurrences of a specified text string within a larger text
string. It is commonly used to manipulate and clean data in
spreadsheets.
Syntax
=SUBSTITUTE(text, old_text, new_text, [instance_num])
Arguments
text (required): This is the text string that contains the
characters you want to replace.
Example:
Suppose you have a list of email addresses that you need to clean up.
The email addresses have an underscore (_) in the middle of the
name, and you want to replace the underscore with a dot (.). Here's
the data:
To replace the underscores with a dot, you can use the SUBSTITUTE
function by following the steps below:
"." is the new text you want to replace the old text with.
Step 3: Copy the formula in cell C3 to the rest of the cells in column
C. The column now contains the cleaned up email addresses.
To Summarise
The SUBSTITUTE function in Excel is a useful tool for replacing text
in a cell with new text. By specifying the cell reference or text to be
modified, the old text to be replaced, and the new text to replace the
old text with, you can easily modify large sets of data in just a few
clicks. In the example provided, we used the SUBSTITUTE function
to replace the underscores in a list of email addresses with dots,
showing how this function can be used to quickly and efficiently
clean up data.
FIND Function
What is it?
The Excel FIND function is used to search for a specific character or
substring within a larger string of text, and it returns the position of
the first character of the found text. This function is useful when you
need to find the location of a specific character or substring within a
larger text string.
Syntax
=FIND(find_text, within_text, [start_num])
Arguments
find_text (required): This is the text or character that
you want to find within the larger text string.
Step 2: Press Enter to calculate the formula. Excel will display the
position of the space character in cell A2 (which is 6, since the space
is the sixth character in the string Bobby Stevens).
Step 3: Copy the formula in cell B2 to the rest of the cells in the
column B. This will apply the formula to each cell in column B, and
display the position of the space character in each name.
To Summarise
The Excel FIND function is a powerful tool that allows users to
search for a specific character or text string within a larger text
string, and return the position of the first occurrence of that
character or string. It is a useful function for manipulating and
analysing data in Excel, and can be used in a variety of ways to
perform tasks such as parsing text, extracting data, and cleaning up
data. By following the step-by-step instructions and understanding
how the formula works, users can effectively use the FIND function
to meet their data analysis needs in Excel.
SEARCH Function
What is it?
The Excel SEARCH function is a text function used to find the
position of a specified character or a string of characters within a text
string. It returns the position of the first character of the found text.
Syntax
=SEARCH(find_text, within_text, [start_num])
Arguments
find_text (required): This is the substring or the text you
want to find within the larger string. It can be a string,
number or cell reference.
Example:
Suppose we have a list of employee names in a column and we want
to find out the position of the substring "son". Here is what the data
looks like:
The formula will locate the first position of when the text
“son” starts within the name in cell A2.
Step 2: Press Enter. The result will be a number that represents the
position of the substring "son" within the text in cell A2, which in
this case is 3.
Step 3: Copy the formula down to the remaining cells in column B.
If the substring is not found, the function will return the #VALUE!
error as shown in cell B8 because the text “Emma” does not contain
the substring “son”.
REPT Function
What is it?
The Excel REPT function is used to repeat a given text string a
certain number of times. It can be used to create repeated characters,
symbols, or words to fill a cell or range of cells.
Syntax
=REPT(text, number_of_times)
Arguments
text (required): This specifies the text string to be
repeated. It can be a cell reference, a text string, or a
formula that returns a text string.
Example:
Suppose we have a list of fruit and the numbers sold. Here is what
the data looks like:
Step 3: Copy the formula to the rest of the cells in column C. Here
we can see the number of asterisks for each item based on the
number sold.
To Summarise
The REPT function in Excel is a powerful tool that can be used to
repeat a text string a specified number of times. By using this
function, you can display a visual representation of data in your
worksheet using any symbol or text string of your choice. The
example provided above shows how to use the REPT function to
display the quantity of different fruits sold as a string of asterisks,
making it easy to quickly compare the quantity of each item at a
glance. Whether you're working with large or small datasets, the
REPT function is a useful tool to have in your Excel toolkit.
EXACT Function
What is it?
The Excel EXACT function is a text function that compares two text
strings and returns a Boolean value of TRUE or FALSE, depending
on whether the strings are exactly the same or not. It is case-
sensitive, meaning that uppercase and lowercase letters are treated
as different characters.
Syntax
=EXACT(text1, text2)
Arguments
text1 (required): The first text string to compare.
Example:
Suppose we have a list of fruits in column A and B. Here is what the
data looks like:
To Summarise
The Excel EXACT function is a powerful tool that allows users to
compare two strings of text and determine whether they are exactly
the same or not. This function is particularly useful for tasks such as
data validation, error checking, and text formatting. By following the
step-by-step instructions provided in this example, users can easily
incorporate the EXACT function into their Excel spreadsheets to
enhance their data analysis capabilities.
Date and Time Functions
Excel provides several built-in functions for working with dates and
times. They are useful because they allow you to work with date and
time values in a variety of ways, making it easier to analyse and
manipulate data. In this chapter, we will explore the most commonly
used date and time functions to save you time and effort when
performing calculations or analyses.
DATE Function
What is it?
The Excel DATE function is a built-in function that returns the serial
number of a date based on the specified year, month, and day. It is
commonly used to perform calculations with dates. This number can
be formatted as a date using the cell formatting options in Excel.
Syntax
=DATE(year, month, day)
Arguments
year (required): Specifies the year of the date. It can be a
number or a reference to a cell that contains a number.
The year argument should be in the range of 1900 to 9999.
Example:
Let's say that you have a dataset that includes information about
different dates and you want to use Excel's DATE function to
combine the information into a single date value. For example, let's
assume that you have the following information:
Step 2: Press Enter to calculate the formula. Excel will display the
combined date value in the cell that you entered the formula into,
which in this case is 15/02/2022.
Step 3: If you want to format the date value you can do so in the
Format Cells dialog box. To do this select the cell with the date
value (in this example, cell D2) and then open the Format Cells
dialog box by right-clicking the mouse and selecting Format Cells.
Select the Number tab and then Date in the left hand side pane and
choose the date format you require under Type.
To Summarise
The Excel DATE function is a useful tool for combining separate
year, month, and day information into a single date value. By
following the steps outlined above, you can easily use this function to
create a new date value in your Excel worksheets. With the ability to
format the date value to suit your needs, the DATE function is a
versatile tool that can be used in a wide range of Excel applications.
Whether you're using it to track project deadlines, schedule
appointments, or analyse data over time, the Excel DATE function is
a valuable resource that can help you save time and work more
efficiently in your Excel workbooks.
DAY Function
What is it?
The Excel DAY function is a built-in function that is used to extract
the day of the month from a given date. It returns an integer value
between 1 and 31, depending on the day of the month.
Syntax
=DAY(serial_number)
Arguments
serial_number (required): This argument represents
the date whose day you want to extract. It can be entered
as a serial number that Excel recognises as a date (e.g.,
44219 for 1/1/2021). As a reference to a cell that contains
a date or as a formula that returns a valid date.
Example:
Suppose you have a list of dates in column A, and you want to extract
the day value from each date and display it in column B.
To do this we use the Excel DAY function. Here are the steps to do
this:
Step 1: In cell B2, enter the formula “=DAY(A2)”.
This formula will extract the day value from cell A2 and
display it in cell B2.
Step 2: Press Enter and the formula result will be displayed in cell
B2.
Step 3: Now, copy the formula to the rest of the cells in column B.
You should now have the day value extracted from each date in
column A, displayed in column B.
To Summarise
The Excel DAY function is a useful tool for extracting the day value
from a date. By using this function, you can quickly and easily extract
the day value from a date and use it in other calculations or analyses.
In this example, we demonstrated how to use the Excel DAY function
step-by-step to extract the day value from a list of dates and display
them in a separate column. With this knowledge, you can now use
the Excel DAY function to extract the day value from dates in your
own spreadsheets.
DAYS Function
What is it?
The Excel DAYS function is a built-in date and time function used to
calculate the number of days between two dates. This function
returns the number of days between two dates based on a 365-day
year, with 12 months of varying days.
Syntax
=DAYS(end_date, start_date)
Arguments
end_date (required): This is the end date for which you
want to calculate the number of days. It must be a valid
Excel serial number or a reference to a cell containing a
date.
Example:
Suppose you want to calculate the number of days between two dates
as shown below and enter the result in cell C2.
Step 2: Press Enter and the result will appear in cell C2. The result
should be 72 days, which is the number of days between January 1,
2023, and March 14, 2023.
To Summarise
The DAYS function in Excel is a useful tool for calculating the
number of days between two dates. By following the simple steps of
entering the start and end dates into cells, and then using the DAYS
function, Excel can quickly and easily calculate the number of days in
between. This can be especially helpful for tracking durations of
projects, calculating interest, or creating schedules.
DAYS360 Function
What is it?
The DAYS360 function in Excel is a date and time function that
calculates the number of days between two dates based on a 360-day
year, where each month has 30 days. This function is commonly used
in financial calculations such as interest accruals and amortisation
schedules.
Syntax
=DAYS360(start_date, end_date,[method])
Arguments
start_date (required): This is the starting date of the
period for which the days are being calculated.
Example:
Let's say we have two dates and we want to calculate the number of
days between them using the 360-day year method and enter the
result in cell C2.
Step 2: Press Enter. The result should appear in cell C2, which is
the number of days between the start and end dates using the 360-
day year method which is 73.
Note: The DAYS360 function does not take into account leap years
and assumes that each year has 360 days, which is not accurate.
Therefore, this function is not recommended for general-purpose
date calculations.
To Summarise
The Excel DAYS360 function is a useful tool for calculating the
number of days between two dates using a 360-day year method,
which is commonly used in financial calculations. By assuming that
each year has 360 days and each month has 30 days, the function
allows you to quickly and easily calculate the number of days
between two dates, making it useful for a variety of financial
applications. Understanding how the function works can help you to
accurately calculate interest accruals, amortisations, and other
financial metrics in Excel.
MONTH Function
What is it?
The Excel MONTH function returns the month portion of a date, as
an integer value ranging from 1 (January) to 12 (December).
Syntax
=MONTH(serial_number)
Arguments
serial_number (required): This argument represents
the date whose month you want to extract. It can be
entered as a serial number that Excel recognises as a date
(e.g., 44946 for 20/1/2023). As a reference to a cell that
contains a date or as a formula that returns a valid date.
Example:
Suppose you have a list of dates in column A, and you want to extract
the month value from each date and display it in column B. Here is
what the data looks like:
To do this we use the Excel MONTH function. Here are the steps to
do this:
Step 1: In cell B2, enter the formula “=MONTH(A2)”.
Step 2: Press Enter to apply the formula to cell B2. The result
should be the number 1, which corresponds to the month of January.
Step 3: Copy the formula down to the rest of the cells in column B.
The resulting data in the column should now display the month
number for each date in column A.
Below are some points you need to note regarding the MONTH Excel
function:
YEAR Function
What is it?
The Excel YEAR function is a built-in function that extracts the year
from a given date and returns it as a four-digit integer. It is useful
when you need to work with the year component of a date separately
from the rest of the date.
Syntax
=YEAR(serial_number)
Arguments
serial_number (required): This is the date from which
you want to extract the year. It can be entered as a serial
number that Excel recognises as a date (e.g., 44946 for
20/1/2023). As a reference to a cell that contains a date or
as a formula that returns a valid date.
Example:
Suppose you have a list of dates in column A, and you want to extract
the year value from each date and display it in column B. This is what
the data looks like:
To do this we use the Excel YEAR function. Here are the steps to do
this:
Step 1: In cell B2, enter the formula “=YEAR(A2)”.
Step 2: Press Enter to apply the formula to cell B2. The result
should be the number 2019, which corresponds to the year of the
date in cell A2.
Step 3: Copy the formula down to the rest of the cells in column B.
The resulting data in the column should now display the year for
each date in column A.
Like with the Excel DAY and MONTH functions, the YEAR function
also has some limitations:
To Summarise
The Excel YEAR function is a powerful tool that allows you to extract
the year component of a given date quickly and easily. By providing a
valid date input in the serial_number argument, the function
extracts the year component of the date and returns it as a four-digit
integer. The YEAR function is particularly useful when you need to
work with the year component of a date separately from the rest of
the date. Overall, the YEAR function is a valuable function in Excel
that can save you time and effort when working with dates and
analysing data.
DATEVALUE Function
What is it?
The Excel DATEVALUE function is a built-in function that converts a
date in text format to a serial number representing the date in
Microsoft Excel. This is useful when you have dates in text format
and you need to perform calculations or formatting based on the
actual date values.
Syntax
=DATEVALUE(date_text)
Arguments
date_text (required): This is the text string that
represents the date you want to convert. It can be entered
as a string enclosed in quotation marks (" "), a reference to
a cell containing the text string, or a formula that returns a
text string. The date_text argument must be in a format
that Excel recognises as a valid date, such as "31/12/2022"
or "31-Dec-2022".
Example:
Here we have a list of dates in column A which are in text format.
Step 2: Press Enter to apply the formula to cell B2. Excel will
display the serial number for the date in cell B2, which should be
44489.
Step 3: Copy the formula down to the rest of the cells in the column.
The resulting data in column B should now contain the values for
each date in column A.
To Summarise
The DATEVALUE function is useful because it allows you to convert
dates that are represented as text into a format that Excel can
recognise as a date. This can be helpful when you are working with
data that has been imported from another source or entered
manually as text. Once you have converted the text to a serial
number using the DATEVALUE function, you can perform various
calculations and analysis on the dates, such as finding the difference
between two dates, calculating the number of days between two
dates, or determining the day of the week that a date falls on.
DATEDIF Function
What is it?
The Excel DATEDIF function is a date function used to calculate the
difference between two dates in years, months, or days. The function
is particularly useful when you need to calculate the duration
between two events, such as the number of days between a project's
start and end dates.
Syntax
=DATEDIF(start_date, end_date, unit)
Arguments
start_date (required): The starting date of the period
you want to calculate the difference for. This argument
can be entered as a reference to a cell containing a date, or
it can be entered as a date entered directly in the formula
using double quotes, e.g. "2023-01-01".
To Summarise
Overall, the DATEDIF function in Excel is a useful tool for
calculating the difference between two dates in various units of time
such as days, months, and years. By using the DATEDIF function,
Excel takes the two input dates and subtracts the start date from the
end date to determine the difference between them in the specified
unit. Although the DATEDIF function has some quirks and
limitations, it can be a helpful function for most simple date
calculations in Excel.
EDATE Function
What is it?
The Excel EDATE function is a built-in date and time function that
allows you to add or subtract a specified number of months from a
given date.
Syntax
=EDATE(start_date, months)
Arguments
start_date (required): The starting date from which the
function will calculate the result. This argument must be a
valid Excel date or a reference to a cell that contains a
date.
months (required): The number of months you want to
add or subtract from the start_date. This argument must
be a positive or negative integer or a reference to a cell
that contains a positive or negative integer. A positive
value for the months argument will add the specified
number of months to the start_date, while a negative
value will subtract the specified number of months from
the start_date.
Example:
Suppose you have a list of dates in column A, and you want to add 3
months to these dates and display the results in column B. This is
what the data looks like:
Step 2: Press Enter to calculate the formula in cell B2. The formula
should now display the date that is 3 months after the start date,
which in this case is 05/09/2022.
Step 3: Copy the formula down to the rest of the cells in column B.
The dates should be 3 months after the dates in column A.
To subtract the months from the start date, then simply add a minus
before the number in the months argument.
To Summarise
As you have seen, the EDATE function is a useful tool for calculating
dates that are a specified number of months before or after a given
date. With this function, Excel users can save time and effort by
automating date calculations and avoiding the need for manual
calculations. By following the steps outlined in the examples above,
users can easily use the EDATE function to calculate the desired
date.
NETWORKDAYS Function
What is it?
The Excel NETWORKDAYS function is a built-in function that
calculates the number of working days between two given dates,
excluding weekends and holidays. It returns a numerical value that
represents the number of working days between the start and end
dates.
Syntax
=NETWORKDAYS(start_date, end_date, [holidays])
Arguments
start_date (required): This is the starting date of the
time period you want to consider.
Example:
Suppose you have a list of start dates in column A and end dates in
column B. This is what the data looks like:
You want to calculate the number of working days between the start
and end dates (excluding weekends) and enter the results in column
C. Here are the steps to do this:
Step 1: In cell C2, enter the formula
“=NETWORKDAYS(A2,B2)”.
The formula takes the start date in cell A2 and the end
date in cell B2 and calculates the number of working days
between them.
To Summarise
The NETWORKDAYS function in Excel is a useful tool for calculating
the number of working days between two dates. By using this
function, you can easily exclude weekends and holidays to get an
accurate count of the number of days that employees have worked or
will work. Understanding how to use this function is particularly
important for business and financial analysts who need to calculate
the number of working days for a variety of purposes such as project
timelines, payroll calculations, and performance metrics.
EOMONTH Function
What is it?
The Excel EOMONTH function returns the last day of the month that
is a specified number of months before or after a given date.
"EOMONTH" stands for "End Of MONTH."
Syntax
=EOMONTH(start_date, months)
Arguments
start_date (required): This is the date for which you
want to calculate the end of the month. This argument
must be a valid Excel date or a reference to a cell that
contains a date.
Example:
Suppose you have a list of dates in column A, and you want to find
the last day of the month for each date in column B. This is the
sample data:
So, the EOMONTH function will return the last day of the
month for the date in cell A2.
Note: To return the last day of the month in the past from the start
date, simply add a minus before the number in the months
argument.
To Summarise
The EOMONTH function in Excel is a powerful tool that can help
you easily calculate the last day of the month for a given date. By
using this function, you can save time and effort that would
otherwise be spent manually finding the last day of the month. This
function is particularly useful for financial and accounting
applications where end-of-month calculations are frequently needed.
TIME Function
What is it?
The Excel TIME function is used to create a time value from
individual hour, minute, and second components. It takes in the
individual hour, minute, and second components as arguments and
returns the corresponding time value.
Syntax
=TIME(hour, minute, second)
Arguments
hour (required): This argument specifies the hour
component of the time. The value must be an integer
between 0 and 23, or a decimal value that represents a
fraction of a 24-hour day.
Example:
Here we have values as hours, minutes and seconds in column B.
We want to create a time value from the individual hour, minute, and
second components and display it in cell B5. Here are the steps to do
this:
Step 2: Press Enter to calculate the formula. Cell C5 will display the
time value in the default time format.
If you want to change the format of the time value, you can do so by
selecting cell B5 and using the Format Cells dialog box. For
example, you could format the time value as "h:mm:ss AM/PM”.
To Summarise
The Excel TIME function is a useful tool for creating time values
from individual hour, minute, and second components. The function
takes in the individual components as arguments and returns the
corresponding time value. The TIME function can be especially
useful when working with time-based data and calculations in Excel,
allowing you to combine separate hour, minute, and second values
into a single time value. By understanding the syntax and arguments
of the TIME function, you can harness the full power of Excel's time-
based functionality in your data analysis and calculations.
TIMEVALUE Function
What is it?
The Excel TIMEVALUE function is a built-in function that converts a
time string into a decimal number that represents the fraction of a
day. This function is useful for converting text representations of
time into a numerical format that can be used in calculations.
Syntax
=TIMEVALUE(time_text)
Arguments
time_text (required): The text string that represents the
time you want to convert. The text string must be in a
format that Excel can recognise as a time. The format can
be either 12-hour time or 24-hour time, and it can include
seconds, as well as AM/PM if the time is in 12-hour
format.
Example:
Suppose you have a list of time values in your Excel worksheet in
column A, but they are currently formatted as text. Here is what the
data looks like:
When you enter the formula into the cell, Excel evaluates
the formula and returns the serial number that
corresponds to the time value in the referenced cell. Excel
then displays the serial number as a formatted time value,
using your chosen time format.
HOUR Function
What is it?
The Excel HOUR function is a built-in function used to extract the
hour from a given time value. It returns a whole number
representing the hour portion of the time value, ranging from 0 to
23.
Syntax
=HOUR(serial_number)
Arguments
serial_number (required): This is the time value from
which the hour is to be extracted. It can be entered
directly as a time value (in the format "hh:mm:ss"), or it
can be a reference to a cell containing a time value. The
serial_number argument is mandatory, and it must be a
valid Excel serial number representing a time between
0:00:00 (12:00:00 AM) and 23:59:59 (11:59:59 PM).
Example:
Let's say you have a column of timestamps in Excel that you'd like to
extract the hour from and display it in column B.
Here's how you could use the HOUR function to do that:
Step 1: In cell B2 where you want to display the hour, enter the
formula “=HOUR(A2)”.
To Summarise
The HOUR function in Excel is a useful tool for extracting the hour
component from a time value. It takes a single argument, which is
the time value from which you want to extract the hour, and returns
the hour as an integer value. By using this function, you can easily
extract the hour from a column of timestamps and display the results
in a separate column. This can be particularly helpful for analysing
time-based data, such as monitoring daily or hourly trends.
MINUTE Function
What is it?
The Excel MINUTE function is a built-in function that returns the
minute component of a given time value. The minute component
represents the minute of the hour as an integer value ranging from 0
to 59.
Syntax
=MINUTE(serial_number)
Arguments
serial_number (required): This argument represents
the time value for which you want to extract the minute
component. It can be supplied as either a valid Excel serial
number, a text string representing a time value, or a
reference to a cell containing a time value. If the supplied
value is not a valid time value, the MINUTE function will
return the #VALUE! error.
Example:
Suppose you have a column with times in Excel that you'd like to
extract the minute from and display it in column B. Below is the
sample data:
Here's how you could use the MINUTE function to do that:
Step 1: In cell B2 where you want to display the minute, enter the
formula “=MINUTE(A2)”.
To Summarise
The MINUTE function takes a time value as its input and returns the
minute value as its output. By applying this function, users can
quickly extract minute values from their time data for use in various
calculations and analysis. The MINUTE function can be used in
conjunction with other Excel functions to perform more complex
operations involving time data. Overall, the MINUTE function is a
powerful tool for anyone who needs to work with time data in Excel.
SECOND Function
What is it?
The Excel SECOND function is a built-in function that returns the
seconds of a given time value. It is useful when you need to extract
the seconds portion of a time or when you want to perform
calculations based on seconds.
Syntax
=SECOND(serial_number)
Arguments
serial_number (required): This argument can be any
valid Excel time format or reference to a cell containing a
time value. The function returns the second value of the
time provided.
Example:
Let's say we have the following data in an Excel spreadsheet:
Step 2: Press Enter to apply the formula in cell C2. The SECOND
function will return the number of seconds in the time value in cell
B2.
Step 3: Copy the formula from cell C2 to cells C3 and C4. As you can
see, the SECOND function has extracted the seconds from the time
values in column B and displayed them in column C.
To Summarise
The SECOND function takes only one argument, which is the time
value you want to extract the seconds from, and returns the seconds
as a number. The function is useful for performing time-based
calculations and analysis in Excel. By following the step-by-step
instructions provided, users can easily use the SECOND function to
extract seconds from time values in their Excel spreadsheets.
WEEKNUM Function
What is it?
The Excel WEEKNUM function returns the week number of a given
date. The week number indicates the week of the year in which the
date falls. This function is useful in various scenarios, such as project
planning, resource allocation, and reporting.
Syntax
=WEEKNUM(serial_number,[return_type])
Arguments
serial_number (required): The date for which you want
to get the week number. The date can be entered as a
reference to a cell containing a date, a serial number
representing a date, or a text string that can be recognised
as a date by Excel.
Example:
Suppose you have a list of dates in column A and you want to
determine the week number of each date and place it in column B.
Step 2: Press Enter. The week number for the date in cell A2 should
now appear in cell B2. In this case, it is 51.
Step 3: Copy the formula in cell B2 down to the rest of the cells in
column B. The week numbers are extracted from the dates in column
A.
To Summarise
The Excel WEEKNUM function is a useful tool for determining the
week number of a given date based on the ISO week numbering
system. By following a few simple steps as shown above, you can
easily calculate the week number for each date in your list. This
function can be especially useful for tasks such as project
management or scheduling, where it may be necessary to track the
progress of tasks over a period of weeks. Overall, the WEEKNUM
function is a great example of how Excel can help automate tasks and
save time for users.
WEEKDAY Function
What is it?
The Excel WEEKDAY function returns a number representing the
day of the week (as a serial number) for a given date. By default, the
function considers Sunday as the first day of the week and assigns it
a value of 1, Monday is 2, and so on.
Syntax
=WEEKDAY(serial_number,[return_type])
Arguments
serial_number (required): This is the date for which
you want to find the day of the week. It can be entered as a
reference to a cell that contains a date or as a direct input
of a date value in the form of a serial number or a text
string in a recognised Excel date format.
Example:
Suppose we have a list of dates in column A, and we want to
determine which day of the week each date falls on, using the
WEEKDAY function.
To do this, follow these steps to enter the day of the week in column
B:
Step 3: Copy the formula in cell B2 down to the rest of the cells in
column B. The week days are extracted from the dates in column A.
To Summarise
The WEEKDAY function in Excel is a useful tool for calculating the
day of the week for a given date. It returns a numerical value
between 1 and 7, representing the day of the week based on the
specified return_type argument. By using this function, you can
easily analyse data based on the day of the week, such as calculating
weekly trends or organising data by day.
NOW Function
What is it?
The Excel NOW function returns the current date and time, as a
serial value.
Syntax
=NOW()
Arguments
The NOW function does not require any arguments because it
automatically returns the current date and time. The value returned
by this function is updated every time the worksheet is calculated.
Example:
Suppose you have a date in cell A2 like this:
You want to enter the current date and time in cell B2. To do this
follow these steps:
Step 1: In cell B2 enter the formula “=NOW()”.
Step 2: Press Enter to apply the formula in cell B2. The cell should
now display the current date and time.
To do this you:
5. Click "OK".
The date and time will be formatted according to the format you
specified.
To Summarise
The Excel NOW function is a simple but useful tool for displaying the
current date and time in a worksheet. It's a volatile function that
updates automatically every time the worksheet is recalculated, and
it returns the date and time based on the computer's system clock. By
customising the format of the date and time using the Format Cells
dialog box, you can display the information in a way that best suits
your needs. Keep in mind that the accuracy of the NOW function is
dependent on the accuracy of the system clock, so it's important to
ensure that your computer's clock is set correctly.
TODAY Function
What is it?
The Excel TODAY function is a built-in date and time function that
returns the current date (today's date) in a cell. It is a useful function
for tracking dates, calculating intervals, or for automating certain
operations that rely on the current date.
Syntax
=TODAY()
Arguments
The TODAY function does not require any arguments, it only takes
an empty pair of parentheses because it automatically returns the
current day.
Example:
Here we want to enter the current date in cell A2.
Step 2: Press ENTER to see the result, which will be today's date in
the format of dd/mm/yyyy.
Note: As with the NOW function, you can change the formatting of
the date using the Format Cells dialog box.
To Summarise
The TODAY function in Excel is a useful tool for quickly and
accurately obtaining the current date. By using this function, users
can save time and avoid errors that may occur when manually
entering the date. Additionally, the TODAY function can be
combined with other functions to perform calculations based on the
current date. It takes no arguments and is therefore very simple to
use.
Maths Functions
Excel is a powerful tool for mathematical calculations and analysis. It
includes a range of built-in functions that can help you perform
mathematical calculations with ease. In this chapter, we will discuss
the most common mathematical functions that are used.
ROUND Function
What is it?
The Excel ROUND function is a mathematical function used to
round a given number to a specified number of decimal places. It is
useful in financial modelling and data analysis where the accuracy of
decimal places is crucial. The function rounds numbers to the
nearest even number when the decimal is 5 (also known as bankers'
rounding).
Syntax
=ROUND(number, num_digits)
Arguments
number (required): This is the number that you want to
round. It can be a reference to a cell containing a numeric
value, or a numerical value typed directly into the formula.
Example:
Suppose you have a list of numbers in column A that you want to
round to two decimal places in column B using the ROUND function.
Step 2: Press Enter to calculate the result. This will round the
number in cell A2 to two decimal places and display the result in cell
B2.
Step 3: Copy the formula in cell B2 down to the rest of the cells in
column B. The numbers all now have two decimal places.
To Summarise
The Excel ROUND function is a powerful tool that allows you to
easily round numbers to a specified number of decimal places. By
providing the number to be rounded and the number of decimal
places as arguments to the ROUND function, you can quickly round
a list of numbers to the desired precision. The ROUND function is
particularly useful when dealing with financial data, where rounding
to a certain number of decimal places is often required. By following
the simple steps outlined in the example above, you can easily round
numbers in Excel and improve the accuracy of your calculations.
ROUNDUP Function
What is it?
The Excel ROUNDUP function is used to round a given number up to
a specified number of digits. It works by rounding a number to a
specified number of digits (the precision argument), and then
rounding up to the next highest value. If the decimal value of the
number is greater than or equal to 0.5, the function rounds up the
number to the next integer value. If the decimal value of the number
is less than 0.5, the function leaves the number as it is.
Syntax
=ROUNDUP(number, num_digits)
Arguments
number (required): This is the number you want to
round up. It can be a cell reference, a named range, or a
constant value.
Example:
Suppose you have the following data in cells A2 through A6:
We want to round each of these numbers up to the nearest integer
and display them in column B. Here's how you can do this using the
ROUNDUP function:
To Summarise
The ROUNDUP function in Excel is a useful tool for rounding
numbers up to a specified number of digits. It works by taking a
number and rounding it up to the next integer, based on the
specified number of digits. By using this function, you can easily
round up numbers in your Excel spreadsheets without having to
manually adjust them.
ROUNDDOWN Function
What is it?
The Excel ROUNDDOWN function is used to round down a given
number to a specified number of decimal places. It is a mathematical
function that is commonly used in financial and accounting
applications.
Syntax
=ROUNDDOWN(number, num_digits)
Arguments
number (required): This is the number that you want to
round down. It can be a cell reference, a formula, or a
constant value.
Example:
Suppose we have a list of numbers in column A and we want to
round down all the numbers to the nearest integer value and display
them in column B.
Here's how you can use the ROUNDDOWN function to achieve this:
To Summarise
The ROUNDDOWN function in Excel is a useful tool for rounding
numbers down to a specified number of digits. By specifying the
number of decimal places to round down to, you can quickly and
easily round down numbers in a given column or cell reference. The
function always rounds down to the nearest specified number of
digits, regardless of whether the decimal portion of the number is
greater than or equal to 0.5. The ROUNDDOWN function is just one
of many mathematical functions available in Excel, and can be
combined with other functions and formulas to perform complex
calculations and data analysis tasks.
SUM Function
What is it?
The Excel SUM function is a built-in mathematical function that is
used to add up a range of numbers in a given spreadsheet. It is one of
the most commonly used functions in Excel and is useful for
calculating totals and subtotals.
Syntax
=SUM(number1,[number2],...)
Arguments
number1 (required): This argument represents the first
number or range of cells that you want to add up. You can
enter a single value or a range of cells separated by
commas or semi-colons.
We want to find the total quantity of items in our list and enter the
total in cell B6. Here's how you can do this using the SUM function:
Step 2: Press Enter. The result, 18, will appear in cell B6.
Note: You can also use the SUM function with a range of cells that
aren't next to each other. For example, you could use
=SUM(B2,B4,B5) to add up the values in cells B2, B4, and B5, but
not in cell B3.
To Summarise
The SUM function in Excel is a simple and powerful tool for adding
up ranges of numbers in a spreadsheet. Whether you need to add up
a few cells or a large range of data, the SUM function can make the
process quick and easy. By understanding how the formula works
and following the steps outlined in the above example, you should be
able to use the SUM function to add up data in your own Excel
spreadsheets.
SUMIF Function
What is it?
The Excel SUMIF function is used to sum a range of values that meet
a specific criterion or condition. This function is useful when you
want to add up only the values that meet a certain criteria in a range
of data.
Syntax
=SUMIF(range, criteria, [sum_range])
Arguments
range (required): The range of cells that you want to
apply the criteria against.
Example:
Suppose you have a table of sales data for a store, and you want to
calculate the total sales for a particular product, let’s say Apples. We
want to enter the sales of Apples in cell E2.
To Summarise
The SUMIF function in Excel is a powerful tool that allows you to
calculate the sum of values based on a specified criteria or condition.
It is particularly useful when you need to analyse large datasets or
filter data based on specific criteria. By following the steps outlined
in the example, you can easily use the SUMIF function in your own
spreadsheets to perform calculations and analyse data.
Understanding how the function works and the syntax involved can
help you to make the most of this tool and improve your productivity
in Excel.
SUMIFS Function
What is it?
The Excel SUMIFS function is a mathematical function that allows
you to sum values that meet multiple criteria. It is useful when you
need to add up values based on several conditions that must be met
simultaneously.
Syntax
=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2,
criteria2], ...)
Arguments
sum_range (required): The range of cells that you want
to sum.
Example:
Let's say you have a table of sales data for different products in
different regions. The table has columns for Product, Region, and
Sales, like this:
You want to find the total sales for Product A in the East region and
enter the result in cell F3. Here's how you can use the SUMIFS
function to do that:
Step 1: In cell F3 enter the formula
“=SUMIFS(C2:C8,A2:A8,F1,B2:B8,F2)”.
Excel then finds the cells that meet these criteria, and
adds their values together to get the result.
Step 2: Press Enter to calculate the result. Cells C2 and C8 are
added together, as these are the cells that meet the criteria and
returns the result 175.
To Summarise
The SUMIFS function in Excel is a powerful tool for quickly
summing values in a range that meet multiple criteria. By using the
SUMIFS function, you can easily filter and analyse large data sets
without having to manually search for and add up individual values.
With the step-by-step example provided above, you should now have
a good understanding of how to use the SUMIFS function in your
own Excel worksheets.
SUMPRODUCT Function
What is it?
The Excel SUMPRODUCT function is a powerful math and statistical
function that allows users to multiply corresponding elements in
arrays and then sum the results. It is useful for performing
calculations on datasets that contain multiple variables and can be
used in a variety of applications such as financial analysis, data
analysis, and more.
Syntax
=SUMPRODUCT(array1, [array2], [array3], ...)
Arguments
array1 (required): This is the first array or range of cells
that will be multiplied and summed.
Example:
Let's assume you have the following data in an Excel spreadsheet and
you want to calculate the total revenue:
To calculate the total revenue for each product, you can use the
SUMPRODUCT function, which multiplies corresponding elements
in arrays and returns the sum of those products. We want to return
the total sales in cell B6. Here are the steps to do this:
Step 1: In cell B6 enter the formula
“=SUMPRODUCT(A2:A5,B2:B5)”.
Step 2: Press Enter, and the total revenue for all products will be
displayed in cell B6.
To Summarise
The SUMPRODUCT function is a useful tool in Excel for multiplying
corresponding elements in arrays and obtaining their sum. It can be
used for various types of calculations, such as calculating total
revenue or finding the weighted average of a set of values. By using
this function, you can save time and avoid the need for complicated
formulas that involve multiple steps. Overall, understanding how to
use the SUMPRODUCT function can help you work more efficiently
in Excel and get more out of your data.
ABS Function
What is it?
The Excel ABS function is a built-in mathematical function that
returns the absolute value of a number, which is the value of a
number without its sign. This means that if a number is negative, the
ABS function returns the positive value of that number.
Syntax
=ABS(number)
Arguments
number (required): This is the numeric value for which
you want to find the absolute value. If the number is
positive or zero, the ABS function returns the same
number. If the number is negative, the ABS function
returns the positive value of that number. If the argument
is not a numeric value, the ABS function returns a
#VALUE! error.
Example:
Suppose we have a list of numbers in column A and we want to
return the absolute value of these numbers and display them in
column B.
Here's how you can do this using the ABS function:
Step 3: Copy the formula in cell B2 down to cells B3 to B5. Excel will
now calculate the absolute value of each number in column A and
display the results in column B.
To Summarise
The ABS function in Excel is a simple yet powerful tool that can be
used to calculate the absolute value of a number. This function is
particularly useful when dealing with datasets that contain both
positive and negative numbers, as it allows you to easily convert
negative values to their positive counterparts. By using the ABS
function in Excel, you can quickly and easily calculate the absolute
value of a range of numbers, saving you time and reducing the
likelihood of errors.
EVEN Function
What is it?
The Excel EVEN function is a built-in function that is used to round
a given number up to the nearest even integer. The function takes a
numeric value as an input and rounds it up to the nearest even
integer.
Syntax
=EVEN(number)
Arguments
number (required): This is the value or reference to a cell
that you want to round up to the nearest even integer. The
value must be a numeric value. The number can be
entered directly into the function, or it can be a reference
to a cell that contains the number you want to round up.
Example:
Here we have a list of numbers in column A and we want to return
the next nearest even number and display them in column B. Here is
a sample dataset:
Here's how you can do this using the EVEN function:
The EVEN function takes the number that you specify and
checks if it's already an even integer. If it is, it simply
returns that number.
To Summarise
The Excel EVEN function is a useful tool for rounding a number up
to the nearest even integer. It works by checking if the number is
already even and returning it if it is. If the number is odd, the
function adds 1 to the number and then rounds it down to the
nearest integer to get the next even number. This function is
particularly helpful when working with sets of data where even
numbers are preferred or required.
MOD Function
What is it?
The Excel MOD function is a mathematical function that calculates
the remainder when one number is divided by another number. The
MOD function is useful in a variety of situations where you need to
perform calculations involving remainders. For example, you can use
it to determine whether a number is even or odd, or to calculate the
number of working days between two dates. It can also be used in
financial calculations, such as calculating the interest on a loan or the
yield on a bond.
Syntax
=MOD(number, divisor)
Arguments
number (required): This is the numeric value that you
want to divide. It can be a number, cell reference, or
formula that evaluates to a number. The number can be
positive, negative, or zero.
Example:
Suppose you have a list of numbers from 1 to 10 in column A, and
you want to find the remainder when each number is divided by 3
and display the results in column B.
Here's how you can do this using the MOD function:
Step 1: In cell B1 enter the formula “=MOD(A1,3)”.
To Summarise
The Excel MOD function is a useful tool for finding the remainder
when one number is divided by another. By using the MOD function,
we can easily perform calculations on large datasets and quickly
determine the remainder for each number in a list. This can be
especially useful in fields like finance, where calculating interest
payments or loan repayments often involves finding the remainder
when a number is divided by a given period. Overall, the MOD
function is a versatile and powerful tool that can help us perform
complex calculations in Excel with ease.
RAND Function
What is it?
The Excel RAND function is a built-in function that generates a
random number between 0 and 1. This function is commonly used in
simulations, games, and other applications that require
randomisation.
Syntax
=RAND()
Arguments
The RAND function has no arguments.
Example:
Suppose you want to create some random numbers between 0 and 1
in the range A1:10. Here is how you can do this using the RAND
function:
To Summarise
The Excel RAND function is a useful tool for generating random
numbers in a spreadsheet. By following the steps outlined above, you
can easily use this function to generate a set of random numbers in
Excel. The RAND function is useful in a variety of applications,
including statistical analysis, simulations, and modelling. It should
be noted, however, that the RAND function generates new random
numbers each time the sheet is recalculated, so if you need to keep
the same set of numbers, you can copy and paste them as values.
RANDBETWEEN Function
What is it?
The Excel RANDBETWEEN function is a built-in function that
generates a random integer between two specified numbers.
Syntax
=RANDBETWEEN(bottom, top)
Arguments
bottom (required): This is the bottom or minimum value
of the range from which a random number is to be
generated.
Example:
Suppose you want to create some random numbers in column C
between the numbers under the Value 1 and Value 2 columns.
Here is how you can do this using the RANDBETWEEN function:
Step 1: In cell C2 enter the formula
“=RANDBETWEEN(A2,B2)”.
The value of the cell will change each time the worksheet
is calculated, which can be triggered by various events
such as entering new data or pressing the F9 key.
To Summarise
The RANDBETWEEN function is a useful tool in Excel for
generating random numbers between a specified range. By following
the steps outlined above, you can easily use this function to generate
random numbers for a variety of purposes, such as creating
randomised data sets for statistical analysis or generating lottery
numbers.
Statistical Functions
Statistical Excel functions are a set of built-in functions in Microsoft Excel
that allow you to perform statistical analysis on your data. These functions
enable you to perform various statistical calculations such as average,
standard deviation, variance, correlation, regression analysis, etc.
AVERAGE Function
What is it?
Syntax
Arguments
Example:
Let's say you have a list of numbers that represent the sales for each month
of the year, and you want to find the average monthly sales. Here is an
example of what the data might look like:
You want to work out the average sales for the year and enter the result in
cell E2. Here's how you can do this using the AVERAGE function:
Excel calculates the sum of the numbers in the specified range (B2
through B13) and then divides that sum by the total number of cells in
the range (12 in this case, since we have 12 months of data).
The result is the average monthly sales for the year, which is displayed
in the cell where we entered the formula.
Step 2: Press Enter to complete the formula. The cell should display the
average monthly sales, which in this case is 210. You can also format the
cell to display the result in a particular format, such as a currency or with a
specific number of decimal places, if desired. You can do this using the
Format Cells dialog box.
Note: The AVERAGE function ignores text values, empty cells, and cells
that contain logical values or errors. If all the arguments are non-numeric,
the AVERAGE function returns the #DIV/0! error.
To Summarise
AVERAGEIF Function
What is it?
Syntax
Arguments
range (required): This is the range of cells that you want to evaluate
based on a given condition. It can contain both numbers and text.
criteria (required): This is the condition that you want to apply to the
range. It can be a number, text, cell reference, or an expression that
evaluates to a number or text. The criteria can also include logical
operators (such as >, <, >=, <=, <>, and =) to make more complex
conditions.
Example:
You want to calculate the average score for Alice and display it in cell E2.
Here's how you can do this using the AVERAGEIF function:
The AVERAGEIF function checks each cell in the range A2:A7 to see
if it contains the value Alice. If it does, the corresponding value in the
range B2:B7 is included in the average.
Once all the eligible values have been identified, the function
calculates the average of those values and returns the result.
In this case, the formula will find the scores of the two students named
Alice (90 and 95) and ignore the scores of the other students. It will
then calculate the average of those scores (which is (90+95)/2 = 92.5)
and return the result.
Step 2: Press Enter to calculate the result. The average score for Alice
should appear in the selected cell (E2 in this example), which is 92.5.
You can use the AVERAGEIF function to calculate averages for other
names as well, simply by changing the criterion in the cell, in this case cell
D2.
To Summarise
AVERAGEIFS Function
What is it?
Syntax
Arguments
average_range (required): This is the range of cells that contain the
values to be averaged.
Example:
Let's say we have a dataset that contains information about the number of
products sold, the revenue generated, and the region where the sales were
made. We want to calculate the average revenue generated by a certain
region for a certain range of products.
We want to calculate the average revenue generated by the North region for
Product A and enter the result in cell F4. Here is how to do this using the
AVERAGEIFS function:
Step 2: Press Enter to calculate the result. The average score for the North
region for Product A should appear in the selected cell F4, which is $450.
Note: The AVERAGEIFS function can take up to 127 criteria ranges and
criteria arguments, making it a very powerful function for analysing data in
Excel.
To Summarise
COUNT Function
What is it?
The Excel COUNT function is used to count the number of cells that
contain numbers within a given range or array. It does not count blank or
text cells.
Syntax
=COUNT(value1,[value2],...)
Arguments
Example:
Let's say you have a list of students and their grades in a class as shown
below:
You want to find out how many students received a grade, i.e., how many
cells in the Grade column are not blank and then enter the result in cell E2.
Here's how you can use the COUNT function to achieve this:
The range B2:B11 is the argument for the COUNT function, which
tells Excel what cells to count.
Excel scans the range B2:B11 and counts the number of cells that
contain numeric values. In this case, there are 8 cells with numeric
values (i.e., grades).
The COUNT function then returns the result in the selected cell.
Step 2: Press Enter to calculate the result. In this case, the result should be
8 since there are 8 cells in the Grade column that are not blank.
Note: If a cell reference or range contains an error value such as #VALUE!
or #DIV/0!, it will not be counted.
To Summarise
The COUNT function in Excel is a useful tool for quickly counting the
number of cells in a range that contain numeric values. Its simple syntax
and straightforward use make it a popular function for data analysis and
statistical calculations. The COUNT function is also versatile and can be
used in combination with other functions to count cells that meet specific
criteria or to perform more complex calculations.
COUNTA Function
What is it?
The Excel COUNTA function is a built-in function that counts the number
of cells in a range that are not empty. It can count cells that contain any
type of data, including text, numbers, logical values, and errors. If a cell
contains a formula that returns an empty string (" "), the COUNTA function
will count it as a non-empty cell.
Syntax
=COUNTA(value1, [value2], …)
Arguments
Example:
Let's say you have a table of employee data, including their names,
departments, and job titles.
We want to know how many employees there are in total and display the
result in cell F2. To do this, you can use the COUNTA function as follows:
The range A2:A8 is the argument for the COUNTA function, which
tells Excel what cells to count.
Step 2: Press Enter to calculate the result. The result should be displayed in
cell F2, which in this case is 7.
Note: The COUNTA function differs from the COUNT function, which
only counts cells that contain numerical values. The COUNTA function can
be useful for counting the number of cells that contain any type of data,
including text and logical values.
To Summarise
The COUNTA function in Excel is a useful tool for counting the number of
non-blank cells in a given range. By simply selecting the range and
entering the COUNTA function with the appropriate range reference, users
can quickly determine the number of cells containing data, whether that be
text or numbers. This function is particularly useful for tasks such as data
analysis, record keeping, and inventory management.
COUNTBLANK Function
What is it?
Syntax
=COUNTBLANK(range)
Arguments
range (required): The range of cells that you want to count the blank
cells from.
Example:
You want to know how many blank cells there are in the Price and Quantity
columns and display the result in cell F2. Here's how you can use the
COUNTBLANK function to do this:
Step 2: Press Enter to return the result. In this case, the result is 4 as there
are 4 blank cells in the range B2:C6.
Note: The COUNTBLANK function does not count cells that contain
formulas that return empty or null values.
To Summarise
COUNTIF Function
What is it?
The Excel COUNTIF function is a useful tool for counting the number of
cells within a range that meet a specified criterion. It is particularly helpful
for analysing data and making decisions based on specific conditions.
Syntax
=COUNTIF(range, criteria)
Arguments
range (required): This is the range of cells that you want to count. It
can be a single cell or a range of cells.
criteria (required): This is the condition that the cells in the range must
meet to be counted. It can be a number, text, cell reference, or a logical
expression. You can use operators like "<", ">", "=", "<=", ">=", "<>"
to set the criteria.
Example:
You want to count the number of times a specific name appears in the list,
let’s say Jane, and return the result in cell D2. Here is how you can do this
using the COUNTIF function:
So, the COUNTIF function looks at each cell in the range A1:A8, and
if the cell contains the text Jane, it adds 1 to the count. Finally, it
returns the total count of cells that met the specified criteria.
Step 2: Press Enter to calculate the formula. The result should be 3, because
the name Jane appears three times in the list.
To Summarise
The COUNTIF function in Excel is a simple yet powerful tool for counting
cells that meet a specific criterion within a range of cells. It is particularly
useful for analysing data and making decisions based on specific
conditions. By understanding its syntax and arguments, users can use this
function to quickly and easily count the number of cells that meet their
criteria.
COUNTIFS Function
What is it?
Syntax
Arguments
range1 (required): This is the range of cells to be evaluated for the first
condition.
criteria1 (required): This is the criteria that the cells in range1 must
meet in order to be counted.
criteria2 (optional): This is the criteria that the cells in range2 must
meet in order to be counted. You can have up to 127 range/criteria
pairs.
Example:
Let's say you have a data set of employees in a company and you want to
count the number of employees who work in a certain department and have
a certain job title.
We want to count the number of employees who work in Sales with the job
title Manager and return the result in cell F4. Here is how to do this using
the COUNTIFS function:
Cell F3 is the criteria that we want to match in the Job Title column.
So, this formula counts the number of cells in the range B2:B7 where
the cell value is Sales, AND in the range C2:C7 where the cell value is
Manager.
Step 2: Press Enter to calculate the formula. The result should be 1, as there
is only one employee who meets both criteria.
To Summarise
The Excel COUNTIFS function is a powerful tool that allows you to count
cells based on multiple criteria. By specifying one or more ranges and their
corresponding criteria, COUNTIFS can quickly count the number of cells
that meet those criteria. It is a useful function for analysing and
summarising large sets of data in Microsoft Excel. By following the steps
outlined in the example provided, users can leverage the COUNTIFS
function to easily count specific data points in their own Excel
spreadsheets.
LARGE Function
What is it?
The Excel LARGE function is a built-in function that is used to return the
nth largest value from a given range of values.
Syntax
=LARGE(array, k)
Arguments
Example:
We want to find the top three values in this data set using the LARGE
function and display them in cells D2 to D4. Here are the steps to do this:
Step 1: In cell D2 enter the formula “=LARGE($A$2:$A$11,C2)”.
A2:A11 s the range of cells or array of values that you want to find the
nth largest value from.
Cell C2 is the position of the value you want to find, in this case it is
the largest position.
So this formula is telling Excel to find the largest value in the range
A2:A11.
Step 2: Press Enter to calculate the formula. The result should be 10, as it is
the largest number in the range A2:A11.
Step 3: Copy the formula down to cells D3 and D4. Cell D3 will display the
second largest number and cell D4 the third largest number in the range
A2:A11.
The LARGE function in Excel is a powerful tool that can be used to find
the nth largest value in a range. It works by sorting the values in the range
from largest to smallest and then returning the value at the specified
position. By understanding the syntax and usage of the LARGE function,
users can efficiently manipulate large data sets and extract relevant
information from them.
SMALL Function
What is it?
The Excel SMALL function is a built-in function that returns the nth
smallest value in a range or array of numerical data.
Syntax
=SMALL(array, k)
Arguments
k (required): This specifies which nth smallest value you want to find.
It can be any positive integer from 1 to the total number of items in the
array.
Example:
The range B2:B11 is the range of test scores we want to search for the
smallest value. This range includes all of the test scores in the dataset.
The formula will tell Excel to search for the smallest value in the
range B2:B11. Since we specified that we wanted the smallest value
(using cell D2), Excel returns the smallest value in the range.
Step 2: Press Enter to calculate the formula. This will display the first
smallest test score, which is 76.
Step 3: Copy the formula down to cells E3 and E4. This will fill the next
two smallest test scores.
To Summarise
The Excel SMALL function is a powerful tool that can be used to find the
nth smallest value in a range of data. It is particularly useful when working
with large datasets where it may be difficult to identify the smallest values
manually. By specifying the position of the smallest value as the second
argument of the function, we can quickly and easily find multiple smallest
values within the same range.
MAX Function
What is it?
The MAX function in Microsoft Excel is a built-in function that returns the
highest value in a range of cells or a list of numbers.
Syntax
=MAX(number1,[number2],...)
Arguments
Example:
Suppose you have a set of numbers in column A, and you want to find the
maximum value in that range and display the result in cell D2.
The MAX function uses the range A2:A8 as the number1 argument.
Finally, the function returns the largest value as the result in cell D2.
Step 2: Press Enter to see the result. You will see that the maximum value
(12) is displayed in cell D2.
Note: If you have more than one range of numbers, you can separate them
with commas inside the MAX function. For example, the formula
=MAX(A1:A7, C1:C7) would find the maximum value from the ranges
A1:A7 and C1:C7.
To Summarise
The MAX function in Excel is a useful tool for finding the maximum value
in a range of numbers. By following the steps outlined above, you can
easily use the MAX function to find the largest number in a set of values.
With its flexibility to handle multiple ranges or arrays of numbers, the
MAX function is an essential tool for data analysis and calculations in
Excel.
MAXA Function
What is it?
The Excel MAXA function returns the maximum value in a list of numbers
or cells, including numbers, text, logical values, and error values. It differs
from the MAX function in that it includes text and logical values in its
calculation, whereas the MAX function only considers numerical values.
Syntax
=MAXA(number1,[number2],...)
Arguments
You want to find the largest value in this set of numbers, including any
errors or non-numeric values and display the result in cell D2. Here's how
you can use the MAXA function to do this:
The MAXA function will evaluate each value in the range and
compare it to the other values. It considers numeric values to be
greater than non-numeric values, with the exception of logical values
(TRUE is considered greater than FALSE).
It then returns the largest value in the range A2:A6, including non-
numeric values such as text, logical values (TRUE or FALSE), and
error values.
Step 2: Press Enter to apply the function and find the maximum value. In
this example, the result of the MAXA function would be 15, because that is
the largest value in the range A2:A6, even though there is an error value in
cell A5.
Note: The MAXA function is similar to the MAX function, which also
finds the maximum value in a range of cells. However, the MAX function
ignores non-numeric values and returns an error if any value in the range is
not a number. The MAXA function is more versatile in that it can handle
non-numeric values and still return the maximum value in the range. If
there are multiple maximum values in the range, the MAXA function
returns the first one it encounters.
To Summarise
The MAXA function in Excel is a useful tool for finding the maximum
value in a range of cells, including both numeric and non-numeric values. It
allows you to analyse a set of data that may include errors, text, or logical
values and still return the maximum value in the range. Compared to the
MAX function, which only considers numeric values, the MAXA function
is more versatile and can handle a wider range of data types. By
understanding how the MAXA function works and how to use it
effectively, you can more easily analyse and understand your data in Excel.
MAXIFS Function
What is it?
Syntax
Arguments
Example:
We want to find the maximum score for people aged 27 or older and
display the result in cell F2. Here's how to do it:
The first argument (C2:C5) is the range of cells where we want to find
the maximum value (in this case, the scores).
So the formula reads: "Find the maximum value in the range C2:C5
where the corresponding value in the range B2:B5 is greater than or
equal to 27."
Step 2: Press Enter to apply the formula. The maximum score for people
aged 27 or older will be displayed in cell F2, which is 92.
Note: The MAXIFS function is similar to the MAX function, but with the
added ability to filter by multiple criteria.
To Summarise
The MAXIFS function in Excel is a powerful tool that allows users to find
the maximum value in a range based on multiple criteria. By specifying
both the range of cells to be analysed and the criteria to be applied, the
MAXIFS function can quickly and easily identify the maximum value that
meets the specified conditions. By understanding how to use this function,
users can save time and increase efficiency in their data analysis tasks.
MIN Function
What is it?
The Excel MIN function is a built-in function that returns the minimum
value from a range of cells or a list of numeric values. It can be used to find
the lowest score, the smallest price, or any other smallest value in a given
range.
Syntax
=MIN(number1,[number2],...)
Arguments
Example:
Let's say we have a list of values that represent the sales figures for a
particular company over the last four quarters. We want to find the
minimum sales value from this list using the MIN function in Excel and
display the result in cell E2.
The formula tells Excel to look at the values in cells B2 through B5,
which contain our sales figures for the four quarters.
The MIN function then evaluates these values and returns the smallest
one.
Step 2: Press Enter to complete the formula. So in this example, the MIN
function has returned the minimum sales value of $42,000, which occurred
in Q4.
Note: The MIN function ignores any text or logical values (such as TRUE
or FALSE) in the range or list of numbers. If a cell in the range or list
contains an error value (such as #N/A or #DIV/0!), the MIN function will
return an error value as well.
To Summarise
The Excel MIN function is a built-in function that is used to find the
smallest value in a range of cells or an array of values. It takes one required
argument, which is the first number or range of numbers from which you
want to find the smallest value, and you can include up to 255 additional
numbers or ranges of numbers as optional arguments. The MIN function
ignores any text or logical values in the range or list of numbers and returns
an error value if any of the cells in the range or list contain an error value.
This function is helpful when working with numerical data in Excel, as it
allows you to quickly determine the smallest value in a set of numbers.
MINIFS Function
What is it?
The Excel MINIFS function is used to find the minimum value in a range
of cells that meets one or more specified criteria. It was introduced in Excel
2016 and is available in later versions of Excel.
Syntax
Arguments
criteria1 (required): Represents the first criteria that you want to apply
to the criteria_range1. It can be a number, text, date, logical
expression, cell reference, or another function.
Example:
Suppose we have a table of sales data for a company that sells different
products in different regions, and we want to find the minimum sales value
for a specific product in a specific region.
In this example, we want to display the minimum sales in cell F4 for the
product Gizmo in the West region. Here are the steps to do this:
The first argument is the range of cells to evaluate: C2:C7 contains our
sales data.
The second argument is the criteria range for the first condition:
A2:A7 contains our product data. We specify Gizmo as the criteria in
cell F2.
The third argument is the criteria range for the second condition:
B2:B7 contains our region data. We specify West as the criteria in cell
F3.
The formula evaluates each cell in the range C2:C7 and returns the
minimum value that meets both conditions (product = Gizmo and
region = West).
In our example, only one cell (C5) meets both conditions, and its value
is 50.
Step 2: Press Enter. The formula returns 50, which is the minimum sales
value for Gizmo in the West region.
To Summarise
The MINIFS function in Excel is a powerful tool for finding the minimum
value among cells that meet multiple criteria. It can be used to filter data
based on specific conditions and return the minimum value that meets those
conditions. This function is particularly useful when working with large
datasets and allows for quick and efficient data analysis. By following the
step-by-step instructions provided in the example, users can easily utilise
the MINIFS function in their own spreadsheets to quickly retrieve the
minimum value based on multiple conditions.
MEDIAN Function
What is it?
Syntax
=MEDIAN(number1,[number2],...)
Arguments
Example:
The function then sorts the values in the range from lowest to highest.
If there are an odd number of values, the median is simply the middle
value in the sorted range.
Step 2: Press Enter to calculate the median value. The result should be
displayed in cell D2 which is 8.5, the median value of the dataset.
To Summarise
the Excel MEDIAN function is a simple yet powerful tool for finding the
middle value of a set of data. By following the steps outlined above, you
can easily find the median of any list of numbers in an Excel worksheet.
Whether you are analysing student grades, sales data, or any other type of
numerical information, the MEDIAN function can help you quickly and
accurately determine the central value of your data set. By using this
function, you can save time and effort in your data analysis tasks, and make
more informed decisions based on the insights you gain from your data.
FREQUENCY Function
What is it?
The Excel FREQUENCY function is a statistical function that returns a
frequency distribution of values in a set of data. It calculates how often
each value occurs within a range of values, and then returns an array that
shows the frequency of each value.
Syntax
=FREQUENCY(data_array, bins_array)
Arguments
The function calculates how many values in the data_array fall into each
interval or bin specified in the bins_array. It then returns an array of values
that represents the frequency distribution.
The size of the returned array is one less than the size of the bins_array. For
example, if you have 10 bins, the function will return an array with 9
values, which represents the frequency of values that fall into each bin.
Example:
We need to enter the bins in order for the FREQUENCY function to work.
Column C contains the bins, which is the last number in the score range in
column D.
Step 1: Select the range E2:E5 and then enter the formula
“=FREQUENCY(A2:A11,C2:C5)”.
Step 2: Once you type the formula, press Ctrl+Shift+Enter. This is because
the FREQUENCY function returns an array of values, so you must enter it
as an array formula.
This means that the FREQUENCY function will count how many
scores in the range A2:A11 fall within each of the score ranges in the
range D2:D5. The function returns an array of four values, which
represent the counts for each score range.
To Summarise
The Excel FREQUENCY function is a useful tool for analysing data and
counting how many values fall within a range of values or "bins". In this
example, we used the FREQUENCY function to count how many scores
fell within each of four score ranges. By specifying the score ranges as the
bins_array argument and the scores as the data_array argument, the
function returned an array of values representing how many scores fell
within each range. This allowed us to easily analyse the data and draw
conclusions about the distribution of scores. The FREQUENCY function is
a powerful tool for data analysis and is commonly used in fields such as
statistics, finance, and research.
Information Functions
Information Excel functions help check the type of data or content in a cell
and are used to test different characteristics of a cell. In this chapter, we
will explore what all the different information functions are, and how to use
them in your dataset.
ISBLANK Function
What is it?
Syntax
=ISBLANK(value)
Arguments
value (required): This is the cell or range of cells that you want to test
for blankness. If the cell or range of cells is blank, the function will
return TRUE. If the cell or range of cells contains any value or
formula, the function will return FALSE.
Example:
We want to check if each cell is blank or not using the ISBLANK function
in column B. Here's how we can do it:
Step 1: In cell B2 enter the formula “=ISBLANK(A2)”.
Excel will then evaluate if cell A2 is blank or not and returns either
TRUE or FALSE.
Step 2: Press Enter to calculate the formula. The result will be displayed as
FALSE, since cell A2 is not blank.
Step 3: Copy the formula down to cell B7. The results will be displayed as
FALSE for cells B2, B4, and B7 (since cells A2, A4 and A7 are not blank),
and TRUE for cells B3, B5, and B6 (since cells A3, A5 and A6 are blank).
To Summarise
The Excel ISBLANK function is a useful tool for checking whether a cell
is empty or not. By taking a cell or range of cells as input, the function
returns a Boolean value (TRUE or FALSE) that indicates whether the cell
is empty or not. This can be helpful for a variety of purposes, such as data
validation, conditional formatting, and data analysis.
ISERROR Function
What is it?
Syntax
=ISERROR(value)
Arguments
value (required): The value that you want to check for an error. This
can be a cell reference, a formula, or a value. The function returns
TRUE if the value is an error value, and FALSE if it is not.
Example:
We want to check if each value in the list is an error or not using the
ISERROR function in column B. Here are the steps:
If cell A2 does not contain an error, the function will return a value of
FALSE.
Step 2: Press Enter to calculate the formula. The result in cell B2 will be
FALSE, since cell A2 does not contain an error.
Step 3: Copy the formula down to cell B7. The results will be displayed as
FALSE for cells B2, B3, B5 and B7 (since the corresponding values in
column A are not errors), and TRUE for cells B4, and B6 (since the
corresponding values in column A are errors).
To Summarise
ISFORMULA Function
What is it?
Syntax
=ISFORMULA(reference)
Arguments
reference (required): This is the reference to the cell that you want to
check if it contains a formula. It can be a cell reference (e.g., A1) or a
range of cell references (e.g., A1:C10).
Example:
If cell A2 does not contain an error, the function will return a value of
FALSE.
Step 2: Press Enter. The result in cell B2 will be FALSE, since cell A2 does
not contain a formula.
Step 3: Copy the formula down to cell B5. The results in cells B3 and B5
will be TRUE, since cells A3 and A5 contain formulas, while the result in
cell B2 and B4 will be FALSE, since these cells do not contain a formula.
To Summarise
Syntax
=ISNUMBER(value)
Arguments
value (required): This specifies the value or cell reference that you
want to test. It can be any type of value, including a number, text, or
logical value.
Example:
If cell A2 does not contain a number, the function will return a value
of FALSE.
Step 2: Press Enter. The result in cell B2 will return a logical value of
TRUE, since cell A2 contains a number.
Step 3: Copy the formula down to cell B6. The results in cells B2, B4 and
B6 will be TRUE, since cells A2, A4 and A6 contain a number, while the
result in cell B3 and B5 will be FALSE, since these cells contain text.
To Summarise
ISEVEN Function
What is it?
The Excel ISEVEN function is a built-in function that returns TRUE if the
supplied number is even, and FALSE otherwise. It is particularly useful
when working with large datasets that require filtering or sorting based on
even or odd values.
Syntax
=ISEVEN(number)
Arguments
number (required): The value or cell reference that you want to test if
it is even.
Example:
We want to check which ones are even numbers using the ISEVEN
function and display the results in column B. Here are the steps to do this:
Step 2: Press Enter. The result should be TRUE since 2 is an even number.
Step 3: Copy the formula down to cell B7. The results in cells B2, B4, B5
and B6 will be TRUE, since cells A2, A4, A5 and A6 contain an even
number, while the result in cell B3 and B7 will be FALSE, since cells A3
and A7 contain odd numbers.
Note: The ISEVEN function rounds down any decimal values to the nearest
whole number before testing for evenness. Also, if the supplied argument is
not a valid number or is a text value, the ISEVEN function returns the
#VALUE! error.
To Summarise
ISODD Function
What is it?
Syntax
=ISODD(number)
Arguments
number (required): Represents the numeric value that you want to test.
It can be a cell reference, a number, or a formula that returns a
numeric value.
Example:
Suppose you have a column of numbers in cells A2:A6 and you want to
find out which ones are odd and display the results in column B.
Step 2: Press Enter. The result should be FALSE since 2 is an even number.
Step 3: Copy the formula down to cell B6. The results in cells B3, and B5
will be TRUE, since cells A3, and A5 contain an odd number, while the
result in cell B2, B4 and B6 will be FALSE, since cells A2, A4, and A6
contain even numbers.
Note: The ISODD function rounds down any decimal values to the nearest
whole number before testing for oddness. Also, if the supplied argument is
not a valid number or is a text value, the ISODD function returns the
#VALUE! error.
To Summarise
This function, like with the ISEVEN function is often used in combination
with other functions to perform conditional operations. For example, you
can use the ISODD function in an IF statement to check whether a given
number is odd or even and then perform an action based on the result.
ISTEXT Function
What is it?
The Excel ISTEXT function is a logical function that returns TRUE if the
given value is text, and FALSE if it is not.
Syntax
=ISTEXT(value)
Arguments
value (required): Specifies the value that you want to test. It can be
any type of value, such as a number, a date, a logical value, or text. If
the value is a text string, the function returns TRUE. If the value is not
text, the function returns FALSE.
Example:
Let's say we have a list of values in column A, and we want to check which
ones are text and which ones are not and display the results in column B.
Here's what our data looks like:
Step 3: Copy the formula down to cell B8. As you can see, the ISTEXT
function evaluated each value in column A and returned TRUE for the text
values, and FALSE for the non-text values.
To Summarise
The Excel ISTEXT function is a simple but powerful tool that can be used
to quickly and easily check whether a given value is text or not. This
function can be especially useful for data analysis and manipulation, as it
allows users to identify and isolate specific types of data in a spreadsheet.
By following the step-by-step instructions provided in this example, users
can learn how to use the ISTEXT function in Excel and apply it to their
own datasets.
ISNONTEXT Function
What is it?
Syntax
=ISNONTEXT(value)
Arguments
value (required): The cell or value that you want to test whether it is
non-text. This can be a reference to a cell, a formula, or a value.
Example:
Let's say you have a list of values in cells A2:A6, and you want to check
which cells contain non-text values and display the results in column B.
Step 2: Press Enter to apply the formula to cell B2. The result will be
FALSE, since the value in cell A2 is text.
Step 3: Copy the formula down to cell B6. You will now see that cells B3
and B5 return TRUE, since they contain non-text values (25 and 45.6,
respectively), while cells B2, B4, and B6 return FALSE, since they contain
text values.
To Summarise
The ISNONTEXT function is a useful Excel function that can be used to
identify cells that contain non-text values. By applying the ISNONTEXT
function to a range of cells, we can quickly and easily determine which
cells contain non-text values and which cells contain text values. This can
be helpful in a variety of scenarios, such as when working with data that
contains both text and numeric values, or when verifying that data has been
entered correctly. The ISNONTEXT function is easy to use and can be a
helpful tool for anyone who works with Excel regularly.
CELL Function
What is it?
Syntax
=CELL(info_type, [reference])
Arguments
"address": Returns the cell address in text format, including the sheet
name and any dollar signs used to indicate absolute references.
"filename": Returns the file name of the workbook containing the cell.
Example:
Here's an example of how to use the CELL function to retrieve the address
of cell.
Step 1: Select a cell to enter the formula to get the cell address. Let’s say
cell C1.
The "reference" argument is simply A1, which specifies the cell that
we want to retrieve the address of.
Step 3: Press Enter to calculate the formula. The value in cell C1 should
now be "$A$1", which is the address of cell A1 and the formula returns it
as a text string.
Other Examples
You can also use the CELL function to retrieve other types of information
about a cell, such as its row number or column letter. Here are a few
examples:
To Summarise
The Excel CELL function is a useful tool for retrieving information about
specific cells in an Excel worksheet. By using the CELL function with
different info_type arguments, you can retrieve information such as the
address, format, or contents of a cell. In the example provided, we used the
CELL function with the "address" argument to retrieve the address of cell
A1 demonstrating how this function can be used to retrieve information
about a cell's location. With a deeper understanding of how to use the
CELL function, you can expand your Excel capabilities and gain more
insights from your data.
INFO Function
What is it?
Syntax
=INFO(type_info)
Arguments
"origin": Returns the reference style (A1 or R1C1) used in the current
Excel installation.
Example:
Let’s say we want to return the version of the operating system currently
running on our computer. Here are the steps to do this:
Step 1: Select a cell to display the version of the operating system. Let’s
say cell A1.
Step 3: Press Enter to calculate the formula. The cell will display the
version of the operating system.
To Summarise
ERROR.TYPE Function
What is it?
Syntax
=ERROR.TYPE(error_val)
Arguments
The function returns an integer value that corresponds to the error type of
the specified cell reference or formula. The following table lists the error
types and their corresponding integer values:
Example:
Let’s say you have a list of errors in column A and you want to return the
type of error in column B as shown below:
When you enter the ERROR.TYPE formula into cell B2, Excel returns
a number that corresponds to the type of error.
Step 3: Copy the formula in cell B2 all the way through to cell B7. As you
can see, the formula returns the integers for all the different error types in
column A.
Below are the error types and what they mean:
To Summarise
Step 1: Click on the cell that contains the formula you want to evaluate.
Step 2: Press the F2 key to enter edit mode for the cell.
Step 3: Select the part of the formula that you want to evaluate.
Step 4: Press the F9 key to evaluate the selected part of the formula.
Step 3: Click on the Special button at the bottom left of the dialog box.
Step 4: In the Go To Special dialog box that appears, select Formulas and
click OK.
Excel will select all cells in the range that contain formulas.
Freeze the results: When you convert formulas to values, you "freeze"
the results of your calculations at that moment. This means that the
values won't change if you update or delete the data used in the
original calculation, providing you with a stable set of results.
Reduce file size: Excel files with many formulas can be large and take
a long time to load or save. By converting formulas to values, you
reduce the file size, making it easier to manage and share.
Step 1: Select the cells containing the formulas you want to convert.
Step 2: Copy the selected cells using the keyboard shortcut Ctrl + C or
right-click and select Copy.
Step 3: Right-click on the cell or range of cells where you want to paste the
values.
Step 5: In the Paste Special dialog box, under Paste, select Values.
Step 2: Select the cells that contain the formulas you want to hide.
Step 3: Right-click on the selected cells and choose Format Cells from the
context menu.
Step 5: Check the box next to Hidden and click OK to close the dialog box.
Step 8: In the Protect Sheet dialog box, enter a password under Password to
unprotect sheet:.
Step 10: Re-enter the password in the Confirm Password dialog box and
press OK.
Harjit is also the founder and owner of the Excel Master Consultant
website which offers information on everything about Excel. In his
website you will find:
www.excelmasterconsultant.com
Please take a visit and drop him a message. He would love to hear
from you.
More Books by Excel Master
Consultant
Available to buy on Amazon now!
I hope that it has improved your Excel skills and you can now confidently
use Excel for work and personal use. If so, I would be really grateful if you
could share your experience of reading this book with your friends and
family by posting to Facebook and Twitter.
If you enjoyed this book, I’d like to hear from you and hope that you could
take some time to post a review on Amazon. Your feedback and support
will help me to greatly improve my writing craft for future projects and
make this book even better.
Amazon.co.uk:
You can leave a book review on Amazon.co.uk here
Amazon.com:
You can leave a book review on Amazon.com here
I want you, the reader, to know that your review is very important to me and
so, if you’d like to leave a review, all you have to do is click either of the
links above and away you go.
I wish you all the best in your future success and happy Excel learning!
Thank you