7
7
and automating tasks in both Microsoft Excel and Google Sheets. Here’s a guide to some of the
most commonly used formulas and functions:
In both Excel and Google Sheets, a formula always begins with an equal sign (=), followed by
the operation or function you want to perform.
Addition: =A1 + B1
Subtraction: =A1 - B1
Multiplication: =A1 * B1
Division: =A1 / B1
Exponentiation: =A1 ^ B1 (e.g., A1 raised to the power of B1)
3. Common Functions
Syntax: =SUM(A1:A10)
Example: =SUM(B2:B10) adds all the values from B2 to B10.
Syntax: =AVERAGE(A1:A10)
Example: =AVERAGE(C2:C10) returns the average of values from C2 to C10.
3. MIN and MAX Functions (Finds the smallest and largest value in a range)
4. COUNT and COUNTA Functions (Counts the number of cells with numbers or non-empty
cells)
COUNT: Counts cells with numbers.
o Syntax: =COUNT(A1:A10)
o Example: =COUNT(E1:E10) counts the number of numeric values in the range E1
5. IF Function (Performs a logical test and returns a value based on the outcome)
6. CONCATENATE (or CONCAT) Function (Joins multiple text strings into one)
4. Lookup Functions
1. VLOOKUP Function (Vertical lookup; searches for a value in the first column of a range and
returns a value in the same row from another column)
and returns the value in the second column of the same row.
2. HLOOKUP Function (Horizontal lookup; searches for a value in the top row of a range and
returns a value in the same column from another row)
Syntax: =TODAY()
Example: =TODAY() returns today’s date.
Syntax: =NOW()
Example: =NOW() returns the current date and time.
Syntax:
o =YEAR(A1) returns the year from the date in A1.
o =MONTH(A1) returns the month from the date in A1.
o =DAY(A1) returns the day from the date in A1.
6. Text Functions
1. LEFT and RIGHT Functions (Extracts a specified number of characters from the left or right
side of a text string)
Syntax: =LEN(text)
Example: =LEN(A1) returns the number of characters in the text of A1.
7. Logical Functions
Syntax: =NOT(logical)
Example: =NOT(A1 > 5) returns TRUE if A1 is not greater than 5.
Syntax: =ARRAYFORMULA(formula)
Example: =ARRAYFORMULA(A1:A10 * B1:B10) multiplies corresponding cells in A1
and B1
.
9. Advanced Functions