100 Must-Know Functions
100 Must-Know Functions
Functions to Master
Excel, SQL, Python,
R and Power BI
Pooja Pawar
Pooja Pawar
Excel
2. VLOOKUP: Searches for a value in the first column of a range and returns
a value in the same row from another column.
Syntax: =VLOOKUP(lookup_value, table_array, col_index_num,
[range_lookup])
3. HLOOKUP: Searches for a value in the first row and returns a value from
the same column in another row.
Syntax: =HLOOKUP(lookup_value, table_array, row_index_num,
[range_lookup])
6. IF: Performs a logical test and returns one value for TRUE and another
for FALSE.
Syntax: =IF(logical_test, value_if_true, value_if_false)
Pooja Pawar
8. COUNTIF: Counts the number of cells that meet a specified condition.
Syntax: =COUNTIF(range, criteria)
10. LEFT: Extracts a specific number of characters from the start of a text
string.
Syntax: =LEFT(text, num_chars)
11. RIGHT: Extracts a specific number of characters from the end of a text
string.
Syntax: =RIGHT(text, num_chars)
12. MID: Extracts text from the middle of a string, starting at a specified
position.
Syntax: =MID(text, start_num, num_chars)
13. TRIM: Removes all extra spaces from text, leaving only single spaces
between words.
Syntax: =TRIM(text)
14. TEXT: Formats numbers and dates into specified text formats.
Syntax: =TEXT(value, format_text)
15. CONCATENATE (or CONCAT): Joins two or more text strings into one.
Syntax: =CONCATENATE(text1, text2, ...)
Pooja Pawar
18. ROUND: Rounds a number to a specified number of digits.
Syntax: =ROUND(number, num_digits)
Pooja Pawar
SQL
Pooja Pawar
11. COALESCE(): Returns the first non-null value in a list.
Syntax: SELECT COALESCE(column1, column2, ...) FROM table_name;
20. GROUP BY: Groups rows sharing a property for aggregate calculations.
Syntax: SELECT column_name, COUNT(*) FROM table_name GROUP BY
column_name;
Pooja Pawar
Python
Pooja Pawar
12. round(): Rounds a number to a specified number of decimals.
Syntax: round(number, ndigits=None)
Pooja Pawar
R Programming
Pooja Pawar
12. substr(): Extracts or replaces substrings.
Syntax: substr(x, start, stop)
Pooja Pawar
Power BI (DAX)
11. IF(): Returns one value if a condition is TRUE, and another if FALSE.
Syntax: IF(condition, true_result, false_result)
Pooja Pawar
12. SWITCH(): Evaluates an expression against multiple values.
Syntax: SWITCH(expression, value1, result1, value2, result2, ...,
else_result)
18. DATE(): Creates a date value from year, month, and day.
Syntax: DATE(year, month, day)
Pooja Pawar