Excel Cheat Sheet for Data Analysis
Excel Cheat Sheet for Data Analysis
Text Functions:
false.
Example: =AND(A2>10, B2<20)
Explanation: This formula returns TRUE if both conditions in cells A2 and B2 are
true.
CONCATENATE:
OR:
Definition: Combines two or more strings into one.
Definition: Returns TRUE if any argument is true.
Example: =CONCATENATE(“First”, ” “, “Last”)
Example: =OR(C2=”Category1″, C2=”Category2″)
Explanation: This formula concatenates the strings “First”, a space, and “Last”
Explanation: This formula returns TRUE if the value in cell C2 is either
into a single text string.
“Category1” or “Category2”.
LEFT:
NOT:
Definition: Extracts a specified number of characters from the beginning of a
Definition: Returns TRUE if the argument is false and vice versa.
text string.
Example: =NOT(D2=”Incomplete”)
Example: =LEFT(E2, 3)
Explanation: This formula returns TRUE if the value in cell D2 is not equal to
Explanation: This formula extracts the first three characters from the text in cell
“Incomplete”.
E2.
RIGHT:
Definition: Extracts a specified number of characters from the end of a text
string.
Date and Time Functions:
Example: =RIGHT(F3, 4) TODAY:
Explanation: This formula extracts the last four characters from the text in cell Definition: Returns the current date.
F3. Example: =TODAY()
MID: Explanation: This formula returns the current date.
Definition: Extracts a specified number of characters from a text string, starting NOW:
at a specified position. Definition: Returns the current date and time.
Example: =MID(G4, 2, 3) Example: =NOW()
Explanation: This formula extracts three characters from the text in cell G4, Explanation: This formula returns the current date and time.
starting at the second character. DATEDIF:
LEN: Definition: Calculates the difference between two dates in years, months, or
Definition: Returns the number of characters in a text string. days.
Example: =LEN(H5) Example: =DATEDIF(L2, M2, “d”)
Explanation: This formula returns the number of characters in the text string in Explanation: This formula calculates the number of days between the dates in
cell H5. cells L2 and M2.
PROPER: EOMONTH:
Definition: Converts text to proper case (capitalizes the first letter of each Definition: Returns the last day of the month, a specified number of months
word). before or after a given date.
Example: =PROPER(I6) Example: =EOMONTH(N3, 2)
Explanation: This formula converts the text in cell I6 to proper case. Explanation: This formula returns the last day of the month that is two months
TRIM: after the date in cell N3.
Definition: Removes leading and trailing spaces from a text string.
Example: =TRIM(J7)
Explanation: This formula removes extra spaces from the text in cell J7. Lookup and Reference Formulas:
SUBSTITUTE:
Definition: Replaces occurrences of a specified substring with another VLOOKUP:
substring. Definition: Searches for a value in the first column of a table and returns a value
Example: =SUBSTITUTE(K8, “old”, “new”) in the same row from another column.
Explanation: This formula replaces all occurrences of “old” with “new” in the Example: =VLOOKUP(O2, P2:Q100, 2, FALSE)
text in cell K8. Explanation: This formula looks for the value in cell O2 in the first column of the
range P2:Q100 and returns the corresponding value from the second column.
Financial Functions:
Explanation: This formula returns TRUE if the value in cell A1 is a number;
otherwise, it returns FALSE.
ISTEXT:
Definition: Checks if a value is text. PV:
Example: =ISTEXT(B2) Definition: Calculates the present value of an investment.
Explanation: This formula returns TRUE if the value in cell B2 is text; otherwise, it Example: =PV(0.05, 10, 1000)
returns FALSE. Explanation: This formula calculates the present value of a $1,000 investment
ISBLANK: over 10 years with a 5% interest rate.
Definition: Checks if a cell is empty. FV:
Example: =ISBLANK(C3) Definition: Calculates the future value of an investment.
Explanation: This formula returns TRUE if the cell in C3 is empty; otherwise, it Example: =FV(0.03, 5, -500, 0, 1)
returns FALSE. Explanation: This formula calculates the future value of a $500 investment
IFERROR: with a 3% interest rate over 5 years.
Definition: Returns a value if a formula results in an error; otherwise, returns the
Database Functions:
result.
Example: =IFERROR(D2/E2, “Error in division”)
Explanation: This formula calculates D2/E2, and if an error occurs, it returns the
specified error message. DSUM:
Definition: Adds the numbers in a column of a list or database that meet
multiple criteria.
Example: =DSUM(A1:C100, “Sales”, D1:E2)
Explanation: This formula adds up the “Sales” column in the range A1:C100 that
meets the criteria specified in the range D1:E2.
DGET:
Definition: Extracts a single value from a list or database that matches the
specified conditions.
Example: =DGET(A1:C100, “Sales”, D1:E2)
Explanation: This formula retrieves a single value from the “Sales” column in
the range A1:C100 that meets the criteria specified in the range D1:E2.