0% found this document useful (0 votes)
23 views4 pages

Essential Excel Formulas Guide

Uploaded by

devpadalia27
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views4 pages

Essential Excel Formulas Guide

Uploaded by

devpadalia27
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Excel Formulas with Examples & Steps

Basic Formulas

Formula: =SUM(A1:A5)

Explanation: Adds values from A1 to A5.

Formula: =AVERAGE(A1:A5)

Explanation: Calculates average of values.

Formula: =MIN(A1:A5)

Explanation: Finds the minimum value.

Formula: =MAX(A1:A5)

Explanation: Finds the maximum value.

Formula: =COUNT(A1:A5)

Explanation: Counts the number of numeric values.

Formula: =COUNTA(A1:A5)

Explanation: Counts the number of non-empty cells.

Text Formulas

Formula: =CONCAT(A1, B1)

Explanation: Joins text in A1 and B1.

Formula: =UPPER(A1)

Explanation: Converts text to uppercase.

Formula: =LOWER(A1)

Explanation: Converts text to lowercase.

Formula: =LEN(A1)
Excel Formulas with Examples & Steps

Explanation: Returns the length of text in A1.

Formula: =TRIM(A1)

Explanation: Removes extra spaces from text.

Logical Formulas

Formula: =IF(A1>50, "Pass", "Fail")

Explanation: Returns Pass if A1>50, else Fail.

Formula: =AND(A1>50, B1<100)

Explanation: Returns TRUE if both conditions are true.

Formula: =OR(A1>50, B1<100)

Explanation: Returns TRUE if any condition is true.

Formula: =NOT(A1>50)

Explanation: Reverses the logical value.

Lookup & Reference

Formula: =VLOOKUP(101, A2:B10, 2, FALSE)

Explanation: Finds value in table vertically.

Formula: =HLOOKUP("Jan", A1:F2, 2, FALSE)

Explanation: Finds value in table horizontally.

Formula: =INDEX(A2:C6, 2, 3)

Explanation: Returns value at 2nd row, 3rd column.

Formula: =MATCH(50, A1:A10, 0)

Explanation: Finds position of 50 in range.


Excel Formulas with Examples & Steps

Date & Time

Formula: =TODAY()

Explanation: Returns current date.

Formula: =NOW()

Explanation: Returns current date and time.

Formula: =DAY(A1)

Explanation: Returns the day from a date.

Formula: =MONTH(A1)

Explanation: Returns the month from a date.

Formula: =YEAR(A1)

Explanation: Returns the year from a date.

Formula: =DATEDIF(A1, B1, "D")

Explanation: Calculates difference in days.

Error Handling

Formula: =IFERROR(A1/B1, "Error")

Explanation: Returns 'Error' if division fails.

Formula: =ISERROR(A1)

Explanation: Returns TRUE if A1 has error.

Gender Count Example

Formula: =COUNTIF(A1:A10, "Male")

Explanation: Counts number of 'Male' entries.


Excel Formulas with Examples & Steps

Formula: =COUNTIF(A1:A10, "Female")

Explanation: Counts number of 'Female' entries.

Common questions

Powered by AI

The DATEDIF function calculates the difference between two dates in specified units like days, months, or years. It is beneficial in project management for tracking duration of tasks, calculating deadlines, or assessing the elapsed time since a project start. For example, DATEDIF(A1, B1, "D") would compute the number of days between two dates, useful for progress reports or timelines . This calculation helps managers monitor adherence to schedules, plan resources, and anticipate completion times accurately, enhancing project planning and execution.

The CONCAT function is used to join text from different cells into one cell, enabling concatenation of multiple strings. For example, =CONCAT(A1, B1) will combine the contents of cells A1 and B1 . In data cleaning tasks, CONCAT is beneficial for creating full names from separate first and last name columns, merging columns of address components, or when assembling consistent labels in datasets that initially store text inputs in multiple fields.

Error handling formulas like IFERROR provide robust solutions for managing potential errors in calculations, enhancing spreadsheet reliability. IFERROR captures errors in a formula and allows you to specify an alternate output. For instance, =IFERROR(A1/B1, "Error") will return "Error" if there is a division by zero in A1/B1, ensuring that the spreadsheet does not display a confusing error code and provides a user-friendly message instead . This is crucial in financial models or reporting spreadsheets where error messages could mislead the reader or disrupt automatic calculations.

MIN and MAX functions are essential for identifying the extremities within datasets, providing insights into the range and distribution of data. The MIN function finds the smallest value, and the MAX function finds the largest value within a specified range . Using these functions can help highlight outliers, set performance benchmarks, or understand distribution patterns, such as identifying the lowest and highest sales figures in a dataset, which are crucial for analytical reviews in business performance assessments.

COUNTA counts the number of non-empty cells in a range, whereas COUNT only counts cells with numeric values . COUNTA is significant in data analysis when the presence of any data (numeric or text) needs to be evaluated, making it invaluable for reporting the completeness of datasets, comparing data availability in different columns, or tracking entries submitted in forms. It ensures analysts capture all filled information, not just numeric entries, enabling comprehensive dataset evaluations.

NOW and TODAY functions both return current temporal values, but NOW includes both the current date and time, whereas TODAY returns only the current date . NOW is used in real-time tracking systems or when precise timestamps are required, such as in time-sensitive workflows or logging events. In contrast, TODAY is better suited for simple date stamps or deadlines calculations, updating daily without considering the exact time of day, making it suitable for tasks requiring date inputs only.

VLOOKUP and HLOOKUP are both functions used to retrieve data from a table based on a lookup value, but they differ in their orientation. VLOOKUP searches for a value vertically in the first column of a table and returns a value in the same row from a specified column. For example, =VLOOKUP(101, A2:B10, 2, FALSE) looks for 101 in the first column and returns the corresponding value from the second column . HLOOKUP, on the other hand, searches for a value horizontally in the first row of a table and returns a value in the same column from a specified row. For example, =HLOOKUP("Jan", A1:F2, 2, FALSE) searches for "Jan" in the first row and returns the corresponding value from the second row .

The INDEX formula returns the value of a cell specified by its row and column numbers within a given range. The formula =INDEX(A2:C6, 2, 3) accesses the cell at the second row and third column of the range A2:C6 . This formula becomes particularly useful when combined with the MATCH function to perform dynamic lookups. For example, if you need to find a value that meets specific criteria that change frequently or is determined by user input, using MATCH to find the relative position, and INDEX to return the exact value streamlines data retrieval without hardcoding cell references.

The TRIM function is used to remove extra spaces from text, resolving issues of inconsistent spacing. For example, if a dataset contains names or descriptions with irregular leading, trailing, or multiple spaces between words, TRIM can standardize these entries by retaining only single spaces between words . This is particularly useful when preparing data for import into databases, ensuring consistent formatting, or when facilitating accurate matches in data comparisons where hidden spaces might cause mismatches.

The IF formula is used to perform logical operations by evaluating a condition and returning different values based on whether the condition is true or false. For example, the formula =IF(A1>50, "Pass", "Fail") checks if the value in cell A1 is greater than 50. If true, it returns "Pass"; otherwise, it returns "Fail" . This can be useful for setting thresholds in grading systems or other decision-making processes.

You might also like