0% found this document useful (0 votes)
20 views

? MS Excel for Data Analysis❗_

The document provides a comprehensive guide on using MS Excel for data analysis, covering data management techniques such as removing duplicates and blank columns, as well as various functions for statistical, mathematical, logical, and lookup operations. It includes detailed instructions on how to apply these functions, along with examples for clarity. The content is structured to assist users in effectively utilizing Excel's capabilities for data analysis tasks.

Uploaded by

Abhinav Kadam
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

? MS Excel for Data Analysis❗_

The document provides a comprehensive guide on using MS Excel for data analysis, covering data management techniques such as removing duplicates and blank columns, as well as various functions for statistical, mathematical, logical, and lookup operations. It includes detailed instructions on how to apply these functions, along with examples for clarity. The content is structured to assist users in effectively utilizing Excel's capabilities for data analysis tasks.

Uploaded by

Abhinav Kadam
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

MS EXCEL

For Data Analysis (Functions)

Rahul Sharma
Data Analyst
1
MS EXCEL (FOR DATA ANALYSIS)

▪ Data Management & Cleaning

1. Removing Duplicates:- Methods

a. By Condition Formating –

go to Home tab, in style ribbon select Condition Formating and after


Highlight Cell Rule then duplicate values then choose duplicate and colour
of the duplicate value as output, click OK, then goto Data tab and select
Remove duplicates now check the column that contains duplicate value then
click ok, this will remove duplicates.

b. Remove duplicates –

Go to Data tab in Data Tool ribbon select Remove Duplicates now check
the column that contains duplicate value then click ok, this will remove it.

c. By UNIQUE Function –

Type =UNIQUE (select array). This will gives you the Unique vales only.

d. By POWER QUERY –

Select your data which contain all the values then go to Data tab in Get &
Transform ribbon and select From Table/Rang, now select all the columns
that contains duplicates press Right Click And select Remove Duplicates,
last click on Load/Transform data to get the final output data in your sheet.

2. Removing Blank Columns

1. By Goto Special –

Select all the data rang and press F5, now select Blanks and press Ok, this
will show you all the Mark blank values then press Ctrl + - (Sign) then
choose Row/Columns. this will remove the blanks Rows/Columns.

Rahul Sharma
2

3. Text To Column

Select the data/cells containing the text you want to split. Go to Data tab and
click Text to Column then choose the Delimiter and check the Preview how it
looks, then choose the Destination Click Ok.

4. Data Validation

Select the Cell/Rang where you want to apply the validation. Go to


Data tab and click Data Validation in Data Tool ribbon. Then set the
validation criteria in Allow field choose the data type that you want
allow to inset only. In the Data field select criteria you want.

Add Input Message to provide instruction of user to how put the


values.

Add Error Alert Message that appears when invalid data is entered
only.

Click Ok Validation is applied.

5. Flash Fill

Enter the data exactly in format and pattern you want to extract then
go to Data tab and click Flash fill in Data Tool ribbon.

By Shortcut – Enter your data you want, then just Select that column
range where you recently entered the data now click Ctrl + E, that will
automatic flash fill your data according your format and pattern.

Rahul Sharma
3
FORMULA’S FOR DATA ANALYSIS (EXCEL)

I. STATISTICAL FUNCTIONS :-

1. AVERAGE :-

The Average function in excel calculates the arithmetic mean


(Average) of a set of numbers.

Formula = Average ( range )

2. MEDIAN :-

The Median function in excel finds the MIDDLE value in a set of


numbers.

Formula =Median (rang )

3. MODE :-

The Mode in a dataset is the value that appears most frequently.

Formula =Mode ( rang )

4. STDEV.S :-

Standard Deviation measures the spread or dispersion of a set of data


point around the mean. A higher standard deviation indicates that the
data points are more spread out from the mean, while low standard
Rahul Sharma
4
deviation suggests that the points are clustered more closely around the
mean.

Formula =STDEV.S ( rang )

5. VAR.S :-

The VAR.S function calculate the Variance of a sample of data.


Variance measures how spread out the data point are from the Mean.
It quantifies the average squared difference between each data point
and the mean of the dataset.

Formula =VAR.S( rang )

6. MAX :-

Max function in excel return the largest value in a set of numbers.

Formula =MAX ( rang )

7. MIN :-

Min function in excel return the smallest value in a set of numbers.

Formula =MIN ( rang )

8. LARGE :-

The large function returns the K-th largest value in a rang or dataset.
K-th position (rank) of the value you want to find.
Rahul Sharma
5

Formula =LARGE ( rang, k )


If cells A1:A5 contains the no. 10, 20, 15, 25, 30

For example - LARGE (A1:A5,1) return 30 (Largest number)


LARGE (A1:A5,2) return 25 (2nd Largest number)
LARGE (A1:A5,3) return 20 (3rd Largest number)

9. SMALL :-
The Small function return the K-th smallest value in a rang or dataset.

Formula =SMALL (rang, k)


If cells A1:A5 contains the no. 10, 20, 15, 25, 30

It returns ex- LARGE (A1:A5,1) return 10 (Largest number)


LARGE (A1:A5,2) return 15 (2nd Largest number)
LARGE (A1:A5,3) return 20 (3rd Largest number)

10. PERCENTILE.INC :-

The Percentile.inc function is used to calculate the K-th percentile of


values in a range.

Formula =Percentile.inc (range, k)

11. QUARTILE.INC :-

The Quartile.inc formula in Excel is used to find the quartile (like


dividing data into four equal parts) for a given set of numbers. It

Rahul Sharma
6
includes the data's endpoints (the smallest and largest values) in its
calculation. You use it to understand the distribution of your data.

Example -

QUARTILE.INC (range, 1) gives you the first quartile (25th percentile)


QUARTILE.INC (range, 2) gives you the median (50th percentile)
QUARTILE.INC(range, 3) gives you the third quartile (75th percentile)

II. MATHMATICAL FUNCTIONS :-

1. SUM :-
The SUM formula in Excel is used to add up a range of numbers. It's
one of the most basic and commonly used functions. You can use it to
add values in a series of cells.

The SUM formula in Excel is used to add up a range of numbers. It's


one of the most basic and commonly used functions. You can use it to
add values in a series of cells.

Formula =SUM ( range, cell )

2. PRODUCT :-

The PRODUCT function in Excel is used to multiply all the numbers


in a given range. It's helpful when you need to find the product
(multiplication result) of several numbers.

Formula =PRODUCT ( rang )

3. POWER :-

Rahul Sharma
7
The POWER function helps you find the result when you multiply a
number by itself a specified number of times.

Example –

if you want to find 5 raised to the power of 6 (5 multiplied by itself 6


times), you would use =POWER (5, 6), and the result would be 15625.

Formula =POWER ( number, power )

4. SQRT :-

The SQRT function in Excel is used to calculate the square root of a


given number. The square root of a number is a value that, when
multiplied by itself, gives the original number.

Example - If you want to find the square root of 25:


Formula: =SQRT ( 25 )
Result: 5 because 5×5=255 \times 5 = 25

5. ROUND :-

The ROUND function in Excel is used to round a number to a


specified number of digits. It's very useful for simplifying numbers to
a desired level of precision.

Formula = ROUND (number/rang, decimal value)

Example = ROUND (A2, 2)


This formula rounds the value in cell A2 (123.456) to two decimal
places, resulting in 123.46

Rahul Sharma
8
6. INT :-

The INT formula in Excel is used to round a number down to the


nearest integer. It effectively removes the decimal part of a number,
giving you the integer portion.

Formula = INT ( number )

Example = Suppose you have the number 8.75 and you want to
round it down to the nearest integer.
= INT (8.75)
Result = 8

7. ABS :-
The ABS formula in Excel is used to return the absolute value of a
number. The absolute value is the number without its sign, meaning it
always gives a non-negative result.

Formula = ABS ( number )

Example = ABS (A2) cell A2 contains -10 value.


Result = 10 (a positive number)

8. MOD :-

The MOD function in Excel is used to find the remainder after


dividing one number by another. It's useful for tasks like checking if a
number is even or odd, or determining periodicity in data.

Formula = ABS (number, divisor)

Example = ABS (10, 3)


Result = 1
Rahul Sharma
9
9. SUMPRODUCT :-

The SUMPRODUCT function in Excel is a powerful tool used to


multiply corresponding elements in specified arrays or ranges and then
sum the resulting products. It is especially useful for conditional
summing and weighted averages.

Formula = SUMPRODUCT (array1, [array2], [array3], ...)

Example –
Suppose you have a small list of items with their quantities and prices,
and you want to calculate the total cost.

=SUMPRODUCT (B2:B4, C2:C4)

A B C D
Item Quantity Price Total Cost
Apples 2 3
Oranges 3 2
Bananas 5 1.5 17.5

III. LOGICAL FUNCTIONS :-

1. IF :-

The IF function is a powerful tool for decision making within your


spreadsheet. It allows you to perform a logical test and return one
value if the test is true, and another value if its false.

Formula = IF (condition, value if true, value if false)

Example = IF (A2 >= 50, "Pass", "Fail")


Value if true: "Pass" (if the condition is true, it returns "Pass")
Value if false: "Fail" (if the condition is false, it returns "Fail")

Rahul Sharma
10

2. IFS :-

The IFS function in Excel is used to test multiple conditions and return
a value corresponding to the first true condition. It's a more
streamlined and readable alternative to nested IF statements.

Formula = IFS (condition, value if true, condi_2, value if true…...)

Example =IFS (A2 >= 90, "A", A2 >= 80, "B", A2 >= 70, "C")

3. AND :-

The AND function in Excel is used to check whether multiple


conditions are true at the same time. It returns TRUE if all conditions
are met and FALSE if any condition is not met.

Formula = AND ( condition, condition_2 )

Example -
Suppose you want to check if a student passed both Math and Science
exams, and passing is defined as scoring 50 or more in each subject.

=AND (A2 >= 50, B2 >= 50)


It only returns TRUE, FALSE

4. OR :-

The OR function in Excel is used to test multiple conditions, and it


returns TRUE if at least one of the conditions is true. If all conditions
are false, it returns FALSE.
Formula = OR (condition, condition_2)

Rahul Sharma
11
Example -
Suppose you want to check if a student passes either Math or Science,
where passing is defined as scoring 50 or more.

= OR (A2 >= 50, B2 >= 50)

5. NOT :-

The NOT function in Excel is used to reverse the logic of a given


condition. It returns TRUE if the condition is FALSE and returns
FALSE if the condition is TRUE. It's useful for negating logical
statements.

Formula = NOT ( condition )

Example –
Suppose you want to check if a student did not pass a test where
passing is defined as scoring 50 or more.

= NOT (A2 >= 50)

6. IFERROR :-

The IFERROR function in Excel is used to catch and manage errors in


your formulas. It allows you to specify a value or message to return
when an error occurs, helping to keep your spreadsheets clean and
error-free.

Formula = IFERROR (value, value if error)

Example –
Suppose you have a formula that might result in an error, such as
division by zero.
Rahul Sharma
12

= IFERROR (A2/B2, “your_error_message” ) [formula applied in C2]

A B C
Number 1 Number 2 Result
10 2 5
15 0 Your Error Message
20 5 4

7. IFNA :-

The IFNA function in Excel is used to handle #N/A errors in your


formulas. It allows you to specify a value or message to return when a
#N/A error is encountered.

Formula = IFNA (value, value_if_na)

Example –
Suppose you have a formula that might result in an #N/A error, such as
a VLOOKUP that doesn't find a match.

=IFNA (VLOOKUP (A2, $A$2:$B$4, 2, FALSE), "Not Found")

A B C
ID Name Lookup Result
1 Alice Alice
2 Bob Bob
3 Carol Carol
4 Not Found (this is you NA
message)

8. LET :-

The LET function in Excel is used to assign names to calculation


results. This allows you to store intermediate calculations, values, or
define names inside a formula. This can make your formulas easier to
Rahul Sharma
13
read and more efficient, as you can reuse the results without
recalculating them multiple times.

Formula = LET (name1, value1, name2, value2, ..., calculation)

Example –
Suppose you want to calculate the area of a rectangle, where the length
is 10 and the width is 5. You can use the LET function to store these
values and then calculate the area.

=LET (length, A1, width, B1, area, length * width, area)

A B C
Length 10 50 (it is the area of triangle)
Width 5

9. XOR :-

The XOR function is a logical function that return True if an odd


number of its arguments are True. Otherwise, it return False.

Formula = XOR (logic, logic_2)

Example –
Suppose you want to check if a student passed exactly one of two
subjects, Math and Science. To pass, a student needs a score of 50 or
more in each subject.

=XOR (A2 >= 50, B2 >= 50)

A B C
Math Science XOR
45 65 TRUE
55 40 TRUE
50 50 FALSE
80 90 FALSE

Rahul Sharma
14

IV. LOOKUP & REFERENCE FUNCTIONS :-

1. VLOOLUP :-

The VLOOKUP function in Excel is used to search for a value in the


first column of a table (or range) and return a value in the same row
from a specified column. It's a powerful tool for looking up and
retrieving data based on a match.

Formula -
=VLOOKUP (lookup_value,table_array,col_index_num,[True/False])

Example –
Suppose you have a list of employees with their IDs and salaries, and
you want to find the salary of a specific employee based on their ID.

=VLOOKUP (102, A2:B5, 2, FALSE)

A B C
Employee ID Salary Lookup Result
101 50000
102 55000 55000
103 60000
104 65000

2. HLOOKUP :-

The HLOOKUP function in Excel is used to search for a value in the


first row of a table (or range) and return a value in the same column
from a specified row. It's similar to VLOOKUP, but it searches
horizontally instead of vertically.

Formula -
HLOOKUP(lookup_value,table_array,row_index_num,[range_looku])

Example –
Rahul Sharma
15
Suppose you have a table of quarterly sales data for different regions,
and you want to find the sales for a specific region in Q2.

= HLOOKUP ("Q2", B1:E4, 3, FALSE)

Q1 Q2 Q3 Q4
North 1000 2000 1500 1800
South 900 2100 1600 1700
East 1100 1900 1400 1750
West 1200 2200 1550 1850
Result 1900

3. XLOOKUP :-
The XLOOKUP function in Excel is a powerful and versatile function
used to search for a value in a range and return a corresponding value
from another range. It's a more advanced and flexible alternative to the
VLOOKUP and HLOOKUP functions.

Formula =
XLOOKUP(lookup_value, lookup_array, return_array,[if_not_found])

Example –
Suppose you have a list of product IDs and their corresponding prices,
and you want to find the price of a specific product.

= XLOOKUP (“P002”, A2:A5, B2:B5, "Not Found")

A B C
Product ID Price Lookup Result
P001 25
P002 35 35
P003 45
P004 55

4. INDEX :-

Rahul Sharma
16
The INDEX function in Excel is used to return the value of an element
in a table or range, based on the specified row and column numbers.
It's very versatile and can be combined with other functions to perform
complex lookups and data retrievals.

Formula = INDEX (array, row_num, [column_num])

Example –
Suppose you have a table of sales data for different products and
regions, and you want to find the sales figure for a specific product in
a specific region.

= INDEX (C2:C5, 3)

A B C D
Product Region Sales
Apples North 1000
Oranges South 1500
Bananas East 1200 1200
Grapes West 2000

5. MATCH :-

The MATCH function in Excel finds the position of a specific value in


a range. It tells you where the value is located within that range.

Formula = MATCH (lookup_value, lookup_array, [match_type])

Example –
Suppose you have a list of products, and you want to find the position
of a specific product in that list.

= MATCH ("Bananas", A2:A5, 0)


A B
Product
Apples

Rahul Sharma
17 Oranges
Bananas 3
Grapes

6. LOOKUP :-

The LOOKUP function in Excel is used to search for a value in a range


and return a value from the same position in another range. There are
two forms of the LOOKUP function: vector form and array form.

Formula = LOOKUP (lookup_value, lookup_array, [result_array])

Example –
Let's say you have a list of product IDs and their corresponding prices,
and you want to find the price of a specific product.

= LOOKUP ("P002", A2:A5, B2:B5)


A B
Product Price
P001 25
P002 35
P003 45
P004 55

7. OFFSET :-

The OFFSET function in Excel creates a reference to a range that is a


specified number of rows and columns away from a starting cell or
range. It is useful for creating dynamic references that can change based
on the structure of your data.

Formula = OFFSET (reference, rows, cols, [height], [width])


height: [Optional] The number of rows to return. Default is 1.
width: [Optional] The number of columns to return. Default is 1.

Example –
Rahul Sharma
18
Imagine you have a table of sales data and you want to dynamically
reference the sales value for a specific product.

= OFFSET (B2, 2, 1)

Explanation:
• Formula: =OFFSET(B2, 2, 1)
• reference: B2 (starting point).
• rows: 2 (move down 2 rows).
• cols: 1 (move right 1 column)

A B C D E
Product Q1 Q2 Q3
Apples 100 200 300
Oranges 150 250 350
Bananas 120 220 320 220

8. INDIRECT :-

The INDIRECT function in Excel returns the reference specified by a


text string. It allows you to create dynamic references based on the
content of other cells. This can be very powerful for creating flexible
and adaptable formulas.

Formula = INDIRECT (ref_text, [a1_optional])

9. ROW/ROWS :-

a) ROW - The ROW function returns the row index number of a


specified cell. If no reference is provided, it returns the row
number of the cell where the formula is entered.

Example –
= ROW (A2), this will return the row index means 2nd row.
Rahul Sharma
19

b) ROWS - The ROWS function returns the number of rows in a


specified range.

Example –
= ROWS ( rang ), this will give the count of rows of the range.

10. COLUMN/COLUMNS :-

a) COLUMN - The COLUMN function returns the column index


number of a specified cell or range. If no reference is provided, it
returns the column number of the cell where the formula is
entered.

Example –
= COLUMN (D1), this will return col index means 4th no. col.

b) COLUMNS - The COLUMNS function returns the number of


columns in a specified range.

Example –
= COLUMNS (B2:D2) in any cell, it will return 3 because the
range B2:D2 spans 3 columns.

11. CHOOSE :-

The CHOOSE function in Excel is used to select a value from a list of


values based on a given index number. It's handy for creating
conditional selections.

Formula = CHOOSE (index_num, val1, val2)

Rahul Sharma
20
Example –
Suppose you have a list of fruits, and you want to select a fruit
based on an index number.

= CHOOSE (1, "Apple", "Banana", "Cherry", "Date"), output is apple.

A B
Index Fruit
1 Apple
2 Banana
3 Cherry
4 Date

12. FILTER :-

The FILTER function in Excel is a dynamic array function that allows


you to filter a range of data based on specific criteria. It returns an array
that meets the conditions you specify.

Formula = FILTER (array, include, [if_empty])

Example –
Suppose you have a list of products with their categories and prices, and
you want to filter out products in the "Fruits" category.

= FILTER (A2:C5, B2:B5="Fruits", "No match")


Enter formula in Cell E1.

A B C E F G
Product Category Price Product Category Price
Apples Fruits 100 Apples Fruits 100
Carrots Vegetables 50 Bananas Fruits 80
Bananas Fruits 80
Potatoes Vegetables 60

V. TEXT FUNCTIONS :-
Rahul Sharma
21
1. CONCATENATE :-

The CONCATENATE function in Excel is used to combine, or join,


two or more text strings into one string. This can be useful for merging
data from different cells into a single cell

Formula = CONCATENATE (text1, [text2], ...)

Example = CONCATENATE(A2, " ", B2)

2. LEFT :-

The LEFT function in Excel is used to extract a specified number of


characters from the beginning (left) side of a text string. This can be
useful when you need to retrieve a portion of text from a larger string.

Formula = LEFT (text, [num_chars])

Example = LEFT (A2, 3)

3. RIGHT :-

The RIGHT function in Excel is used to extract a specified number of


characters from the beginning (right) side of a text string. This can be
useful when you need to retrieve a portion of text from a larger string.

Formula = RIGHT (text, [num_chars])

Example = RIGHT (A2, 3)

4. MID :-

Rahul Sharma
22
The MID function in Excel is used to extract a specific number of
characters from the middle of a text string, starting at a specified
position. This can be very handy when you need to pull out a portion of
text from within a larger string.

Formula = MID (text, start_num, num_to_extract)

Example = MID (A2, 4, 3)

5. LEN :-

The LEN function in Excel is used to count the number of characters in


a text string, including spaces. This can be very helpful when you need
to know the length of text in a cell.

Formula = LEN (text)

Example = LEN (A2)

6. FIND :-

The FIND function in Excel is used to locate the starting position of a


specific substring within a text string. It returns the position number of
the first character of the substring. This function is case-sensitive and
does not support wildcard characters.

Formula = FIND (find_text, within_text, [start_num])

Example –
Suppose you have a list of sentences, and you want to find the position
of the word "Excel" in each sentence.

= FIND (“EXCEL”, E2)

Rahul Sharma
23

A B
Sentence Position
Learning Excel is fun! 10
Excel is a powerful tool. 1
I love using Excel. 14

7. SUBSTITUTE :-

The SUBSTITUTE function in Excel is used to replace specific text


within a text string with different text. This is particularly useful when
you need to change certain parts of a text string.

Formula = SUBSTITUTE (text, old_text, new_text, [instance_num])

Example –
Suppose you have a list of product descriptions, and you want to replace
all instances of "blue" with "green".

=SUBSTITUTE (A2, "Blue", "Green")


Enter formula in Cell B2.

A B
Product Description Modified Description
Blue Jacket Green Jacket
Blue T-Shirt Green T-Shirt
Blue Jeans Green Jeans

8. TRIM :-

The TRIM function in Excel is used to remove all extra spaces from a
text string, leaving only single spaces between words and no leading or
trailing spaces. This is particularly useful when you're dealing with data
that may have inconsistent spacing.

Rahul Sharma
24
Formula = TRIM (text)

VI. DATE TIME FUNCTIONS :-

1. TODAY :-

The TODAY function in Excel returns the current date. It automatically


updates to the current date each time the worksheet is recalculated or
opened. This function is particularly useful for creating dynamic reports
and schedules that need to reflect the current date.

Formula = TODAY (), there is no argument in brackets.

2. NOW :-

The NOW function in Excel returns the current date and time. It
automatically updates to the current date and time each time the
worksheet is recalculated or opened. This function is useful for tracking
real-time updates in your spreadsheets.

Formula = NOW ()

3. DATE :-

The DATE function in Excel is used to create a date from individual


year, month, and day components. This function is particularly useful
when you need to combine these parts into a single date value.

Formula = DATE (year, month, day)

Rahul Sharma
25
4. TIME :-

The TIME function in Excel returns the decimal number representing a


specific time. This function is useful when you want to combine
separate hour, minute, and second values into a single time value.

Formula = TIME (hour, minute, second)

VII. AGGREGATE FUNCTIONS :-

1. SUMIF :-

The SUMIF function in Excel is used to sum the values in a range that
meet a specific condition. This is very useful for situations where you
only want to add up numbers that match a certain criterion.

Formula =SUMIF (range, criteria, [sum_range])

Example –
Suppose you have a list of sales data, and you want to sum the sales for
a specific product.

=SUMIF(A2:A6, "Apples", B2:B6)

A B C
Product Sales
Apples 100 300
Oranges 150
Apples 200
Bananas 50
Oranges 100

2. COUNTIF :-

Rahul Sharma
26
The COUNTIF function in Excel is used to count the number of cells in
a range that meet a specific condition. It's a handy function for quickly
summing up the number of times a criterion is met within your data.

Formula = COUNTIF (range, criteria)

Example –
Suppose you have a list of students' grades, and you want to count how
many students scored an "A".

=COUNTIF(B2:B6, "A")

A B C
Student Grade Count of A's
John A 3
Jane B
Emily A
David C
Sarah A

3. AVERAGEIF :-

he AVERAGEIF function in Excel calculates the average (mean) of


the numbers in a range that meet a specified condition. It's particularly
useful when you need to find the average of values based on specific
criteria.

Formula = AVERAGEIF (range, criteria, [average_range])

Example –
Suppose you have a list of students' grades, and you want to calculate
the average grade for a specific subject.

=AVERAGEIF(B2:B6, "Math", C2:C6)

A B C D
Student Subject Grade Average
John Math 85 89.33

Rahul Sharma
27 Jane Science 90
Emily Math 95
David Science 80
Sarah Math 88

VIII. ARRAY FUNCTIONS :-

1. TRANSPOSE :-

The TRANSPOSE function in Excel is used to convert the orientation of


a range of cells. It changes a vertical range of cells to a horizontal range,
and vice versa. This is particularly useful when you need to switch rows
to columns or columns to rows.

Formula = TRANSPOSE (array)

Example –
Suppose you have a vertical list of numbers that you want to convert to a
horizontal row.

=TRANSPOSE(A1:A4)

A B C D E F G
1 1 2 3 4
2
3
4

2. SEQUENCE :-

The SEQUENCE function in Excel generates an array of sequential


numbers in the form of a list or table. This function is very useful for
creating sequences of numbers quickly and efficiently.

Rahul Sharma
28
Formula = SEQUENCE (rows, [columns], [start], [step])

Example –
Suppose you want to create a table of numbers with 3 rows and 4
columns, starting at 5 and incrementing by 2.

= SEQUENCE(3, 4, 5, 2)

A B C D
5 7 9 11
13 15 17 19
21 23 25 27

Explanation:
rows: 3 (creates a sequence with 3 rows)
columns: 4 (creates a sequence with 4 columns)
start: 5 (starts the sequence at 5)
step: 2 (increments each subsequent number by 2)

IX. SORT & FILTER FUNCTIONS :-

1. SORT :-

The SORT function in Excel is used to sort the contents of a range or


array. You can sort data in ascending or descending order based on
one or more columns or rows. This function is highly flexible and
useful for organizing data.

Formula = SORT (array, [sort_index], [sort_order], [by_col])

Example –
Suppose you have a list of items with their quantities, and you want to
sort the items by quantity in ascending order.

A B
Item Quantity
Apples 10

Rahul Sharma
29 Oranges 5
Bananas 8
Grapes 15

= SORT (A2:B5, 2, 1)
A B
Oranges 5
Bananas 8
Apples 10
Grapes 15

2. FILTER :-

The FILTER function in Excel is a dynamic array function that returns


a filtered range based on specified criteria. It's incredibly powerful for
extracting specific data from a larger dataset.

Formula = FILTER (array, include, [if_empty])

Example –
Suppose you have a list of products and their quantities, and you want
to filter out products with quantities greater than 5.

A B
Product Quantity
Apples 10
Oranges 3
Bananas 8
Grapes 15

=FILTER(A2:B5, B2:B5 > 5)

A B
Product Quantity
Apples 10
Bananas 8
Grapes 15

Rahul Sharma
30

THANK YOU!
Follow for more :

https://linkedin.com/in/rahul-sharma-5174b4307
https://github.com/RahulSharmaAnalyst

Rahul Sharma

You might also like