Excel Functions 1
Excel Functions 1
2. RIGHT()
Returns the rightmost characters from a text value.
For example, =RIGHT(A2,4)
returns the last four characters in cell A2.
3. MID()
Returns a specific number of characters from a text string starting at a specified position.
For example, =MID(A2,6,5)
returns five characters starting at the sixth position in cell A2
4. CONCATENATE()
Joins several text items into one text item
For example, =CONCATENATE(A5,A8), will joint the text values present in cells A5 and
A8. We can concatenate any number of cells.
5. LEN()
Returns the number of characters in a text string, including spaces.
For example, =LEN(A2)
returns the number of characters in cell A2
6. LOWER()
Converts text to lowercase.
For example, =LOWER(A2) converts the text in cell A2 to lowercase.
7. UPPER()
Converts text to Uppercasecase.
For example, =UPPER(A2) converts the text in cell A2 to uppercase.
8. PROPER ()
Capitalizes the first letter in each word of a text value.
For example, =PROPER(A2) converts the text in cell A2 to Propercase.
9. TEXT()
Converts numbers to text using format codes. For example, you can use this function to
display numbers in a more readable format or combine numbers with text or symbols.
The formula is =Text(Value, format_text)
=TEXT(NOW(),"H:MM AM/PM")
10. REPLACE()
REPLACE replaces part of a text string, based on the number of characters you specify, with
a different text string.
Syntax : =REPLACE(old_text, start_num, num_chars, new_text)
LAB 2 TASKS
MATH FUNCTIONS IN EXCEL
1. GCD
The Excel GCD function returns the greatest common divisor of two or more supplied
integers.
2. LCM
The Excel LCM function returns the least common multiple of two or more supplied integers.
3. SUM
The Excel SUM function adds together a supplied set of numbers and returns the sum of
these values.
5. SQRT
The Excel Sqrt function calculates the positive square root of a supplied number.
=SQRT( number )
where the number argument is the numeric value that you want to find the square root of.
If the supplied number is negative, the Sqrt function returns the #NUM! error.
6. PRODUCT
The Excel PRODUCT function returns the product (multiplication) of a supplied set of
numerical values.
7. COMBIN:
Returns the number of combinations for a given number of items. Use COMBIN to determine
the total possible number of groups for a given number of items.
The syntax of the function is:
=COMBIN(number, number_chosen)
Where,
8. ROUND
The ROUND function rounds a number to a specified number of digits. For example, if
cell A1 contains 23.7825, and you want to round that value to two decimal places, you
can use the following formula:
=ROUND(A1, 2)
The result of this function is 23.78.
9. RANDBETWEEN(bottom, top)
It generates a random integer between two specified numbers. A new
Random integer is generated everytime the formula is run.
Syntax
=RANDBETWEEN(bottom, top)
Where,
LAB 3 TASKS
1.COUNT Function : The COUNT function counts the number of cells that
contain numbers , dates, or a text representation of numbers (for example, a
number enclosed in quotation marks, such as "1") are counted.
Syntax
Where,
value1 Required. The first item, cell reference, or range within which you
want to count numbers.
Syntax:
Where, value1 Required. The first argument representing the values that you want to
count.
3. COUNTIF function: COUNTIF is one of the statistical functions, to
count the number of cells that meet a single criterion.for example, to count
the number of times a particular city appears in a customer list.
Syntax:
=COUNTIF(range, criteria)
Where,
Examples :
4.COUNTIFS function : This function helps with the count of cells that meets
one or more criteria (multiple). It can be used with criteria based on dates,
numbers , text etc.
Syntax:
=COUNTIF(range1,criteria1,[range2],[criteria2]…)
Where,
Lab 4 Tasks
SUM , SUMIF, SUMIFS Functions
SUM function
The SUM function adds values. You can add individual values, cell references
or ranges or a mix of all three.
SUMIF function
SUMIF function is used to sum the values in a range that meet criteria that you
specify. For example, suppose that in a column that contains numbers, you want
to sum only the values that are larger than 5. You can use the following
formula: =SUMIF(B2:B25,">5")
NOTE : If you want, you can apply the criteria to one range and sum the
corresponding values in a different range. For example, the
formula =SUMIF(B2:B5, "John", C2:C5) sums only the values in the range
C2:C5, where the corresponding cells in the range B2:B5 equal "John."
Syntax
Where,
range Required. The range of cells that you want evaluated by criteria.
sum_range Optional. The actual cells to add, if you want to add cells
other than those specified in the range argument. If
the sum_range argument is omitted, Excel adds the cells that are
specified in the range argument (the same cells to which the criteria is
applied).
Example:
SUMIFS function The SUMIFS function in Excel adds up cells in a range
that meet multiple criteria:
Syntax
=SUMIFS(A2:A9,B2:B9,"=A*",C2:C9,"Tom")
=SUMIFS(A2:A9,B2:B9,"<>Bananas",C2:C9,"Tom")
Where,
Syntax
2.AVERAGEIF function
Returns the average (arithmetic mean) of all the cells in a range that meet a
given criteria.
Syntax
4.MOD function
Returns the remainder after number is divided by divisor. The result has the
same sign as divisor.Syntax
=MOD(number, divisor)
5.STDEV.S function
Estimates standard deviation based on a sample (ignores logical values and text
in the sample).
The standard deviation is a measure of how widely values are dispersed from
the average value (the mean).
=STDEV.S(number1,[number2],...)
Syntax:
=VAR.S(number1,[number2],…)
Outputs:
If neither the row nor the column is specified, the INDEX function will
return the entire data range.
If only the row number is provided, the INDEX function will return all
values in that row within the range.
When both the row and column numbers are specified, the INDEX function
will return the value from the specific cell.
If only the column number is provided, the INDEX function will return all
values from that column within the range.
What is MATCH Function in Excel
The MATCH function in Excel is used to locate the position of a specific value
within a row, column, or array. Unlike VLOOKUP or HLOOKUP, the MATCH
function does not return the actual data but instead provides the relative position
of the value. It is case-insensitive and works seamlessly in both horizontal and
vertical ranges.
MATCH Function Syntax
=MATCH(search_key, range, [search_type])
How to Use MATCH Function in Excel
Follow the below steps to learn how to use MATCH Function in Excel:
Step 1: Choose the Lookup Value
Identify the specific value you want to locate within your dataset. This could be
a number, text, or a cell reference.
Step 2: Select the Lookup Range
Define the one-dimensional range (row or column) where Excel should search
for the lookup value.
Step 3: Specify the Match Type
Use 0 for an exact match.
Use 1 for an approximate match in ascending order.
Use -1 for an approximate match in descending order.
LAB 6 tasks
Excel conditional formatting is a highly useful feature. It can make it easier for
you to draw attention to the key details in your spreadsheets and quickly
identify differences in cell values.
Click Home > Conditional Formatting > Top/Bottom Rules > Top 3.
This will highlight the top 3 employees with the highest performance scores.
4. Conditional Formatting with Formulas
Sometimes, blank cells indicate missing data. Conditional Formatting can help
identify them easily.
Example: Highlight Empty Cells in the Dataset
Step 1: Select the entire dataset
Select the Entire Dataset. (In the below example we have selected A2:E9)
Array formulas
Array formulas enable to process of several values and give several
outputs. In a simple world, it can do multiple calculations and reduce
a lot of human efforts. In other words, we can say that it solves array
calculations and give an array as output too. Let’s understand more of
them with an example, of students with their test marks,
Array formulas use standard formula syntax. They all begin with an
equal (=) sign, and you can use most of the built-in Excel functions in
your array formulas. The key difference is that when using an array
formula, you press Ctrl+Shift+Enter to enter your formula.
How to insert an Array Formula?
Before entering the Array formula fir of all we understand some
important points about the Array formula:
After typing the formula you have to press keys
CTRL+SHIFT+ENTER together. It will automatically change the
normal formula into an array formula.
If you manually type braces around the formula then it will not
convert the formula into an array formula. You have to use
CTRL+SHIFT+ENTER keys to convert the formula into an array
formula.
Whenever you edit the array formula the braces will disappear
automatically and you have to again press the combination of
CTRL+SHIFT+ENTER keys.
If you forget to press the CTRL+SHIFT+ENTER keys then your
formula will work as the normal formula.
LAB 8 TASKS
What-if Analysis
What-If Analysis in Excel is a tool that lets you change values in cells to
see how that affects the result of formulas.
What-If Analysis tools
Scenario Manager: Create and save multiple sets of input values and
compare their results
Goal Seek: Find the input value needed to achieve a desired result
Data Tables: Examine how changing one or two input values will impact
a financial model.
Scenario Manager
Scenario Manager, helps users analyze multiple scenarios based on different
sets of input values.
Helps in decision-making by comparing different situations.
Goal Seek
Goal Seek is a powerful Excel tool used to find the necessary input
value to achieve a desired output. Instead of manually changing
values, Goal Seek automatically calculates the required input.
LAB 9 TASKS
CREATING A TABLE FROM DATA
REMOVING DUPLICATES FROM DATA
To open the Advanced Filter dialog box, click Data > Advanced.
The Advanced command works differently from the Filter command in several
important ways.
It displays the Advanced Filter dialog box instead of the AutoFilter menu.
You type the advanced criteria in a separate criteria range on the worksheet
and above the range of cells or table that you want to filter. Microsoft
Office Excel uses the separate criteria range in the Advanced Filter dialog
box as the source for the advanced criteria.
LAB 11 TASKS
Data Validation
Use data validation in Excel to make sure that users enter certain values
into a cell.
Input Message
An input message appears when the user selects the cell and tells the user what
to enter.
On the Input Message tab:
1. Check 'Show input message when cell is selected'.
2. Enter a title.
3. Enter an input message.
Error Alert
If users ignore the input message and enter a number that is not valid, you can
show them an error alert.
On the Error Alert tab:
1. Check 'Show error alert after invalid data is entered'.
2. Enter a title.
3. Enter an error message.
MACROS
A macro in Excel is a set of instructions that automates tasks. You can use
macros to save time, reduce repetitive work, and improve efficiency.
If you have tasks in Microsoft Excel that you do repeatedly, you can record a
macro to automate those tasks. A macro is an action or a set of actions that you
can run as many times as you want. When you create a macro, you are
recording your mouse clicks and keystrokes. After you create a macro, you can
edit it to make minor changes to the way it works.