Top 10 Excel Functions for Data Analysis
Top 10 Excel Functions for Data Analysis
Data Analytics
Purpose
Retrieves values from a column in a table based on a
lookup value.
Syntax
Example Usage
If you have a dataset of sales and need to find the price of a
specific product, use VLOOKUP to search for the product name
and return the price from another column.
Limitations
It only works with data where the lookup column is the first
column
Cannot search to the left.
Purpose
Retrieves values from a row in a table based on a lookup
value.
Syntax
Example Usage
If you have a dataset where products are listed across
columns and prices in rows, HLOOKUP can retrieve the
price for a specific product.
Limitations
Less commonly used than VLOOKUP
The table must be arranged horizontally.
INDEX-MATCH (Alternative to
VLOOKUP)
Purpose
A more flexible alternative to VLOOKUP that allows
searching in any direction.
Syntax
=INDEX(column_to_return, MATCH(lookup_value,
lookup_column, 0))
Example Usage
If you have sales data and want to find the price of a product
where the product name is in column C and the price is in
column A, INDEX-MATCH allows searching in any order.
Purpose
Searches for a value in a column and returns a
corresponding value from another column.
Syntax
Example Usage
If you want to find the price of "Product A" in a dataset,
XLOOKUP can return it without the limitations of VLOOKUP.
Advantages
Works in both directions
Can return multiple values
Handles missing values gracefully.
Purpose
Adds values based on multiple criteria.
Syntax
Example Usage
To calculate the total sales of "Product A" in "Region 1,"
SUMIFS allows summing only the values that meet these
conditions.
Purpose
Counts the number of cells that meet multiple
conditions.
Syntax
Example Usage
Count how many times "Product A" was sold in "Region 1".
Purpose
Returns a specified value if a formula results in an error.
Syntax
=IFERROR(expression, value_if_error)
Example Usage
If VLOOKUP cannot find a value, IFERROR(VLOOKUP(A2,
B2:D100, 2, FALSE), "Not Found") will return "Not Found"
instead of an error.
Purpose
Formats numbers and dates as text.
Syntax
=TEXT(value, format_text)
Example Usage
Convert a date to "MMM-YYYY" format: =TEXT(A2, "MMM-
YYYY"
Format numbers with commas: =TEXT(A2, "#,###")
Purpose
Extracts specific parts of text from a string.
Syntax
Example Usage
Extract the first 3 letters of a product code: =LEFT(A2,3
Extract the last 4 digits of an ID: =RIGHT(A2,4
Find the length of a text entry: =LEN(A2)
CONCATENATE / TEXTJOIN
(Combining Text)
Purpose
Merges text from multiple cells.
Syntax
Example Usage
Merge first name and last name: =CONCATENATE(A2, " ",
B2
Combine multiple columns with a separator: =TEXTJOIN(",
", TRUE, A2:C2)