Sheets

Formulas & Functions

Learn about Formulas & Functions in WaymakerOS.

FormulasFunctions

Add calculations to your sheets with formulas. Type = in any cell to start a formula, then reference other cells, use functions, and build expressions.

Formula basics

Cell references

Reference any cell by its column letter and row number:

=A1          # Value of cell A1
=A1 + B1     # Sum of A1 and B1
=A1 * 1.1    # A1 multiplied by 1.1

Ranges

Reference a range of cells using a colon:

=SUM(A1:A10)     # Sum of cells A1 through A10
=AVERAGE(B2:B50) # Average of cells B2 through B50

Operators

OperatorMeaningExample
+Addition=A1 + B1
-Subtraction=A1 - B1
*Multiplication=A1 * B1
/Division=A1 / B1
^Power=A1 ^ 2
&Text concatenation=A1 & " " & B1
=Equal=IF(A1 = B1, "Yes", "No")
<>Not equal=IF(A1 <> 0, A1, "Empty")
> <Greater/less than=IF(A1 > 100, "Over", "Under")

Function reference

Math functions

FunctionDescriptionExample
SUMAdd values=SUM(A1:A10)
AVERAGECalculate mean=AVERAGE(B1:B10)
MINSmallest value=MIN(C1:C10)
MAXLargest value=MAX(C1:C10)
COUNTCount numeric cells=COUNT(A1:A10)
COUNTACount non-empty cells=COUNTA(A1:A10)
ROUNDRound to decimals=ROUND(A1, 2)
ABSAbsolute value=ABS(A1)

Logic functions

FunctionDescriptionExample
IFConditional value=IF(A1 > 100, "High", "Low")
ANDAll conditions true=AND(A1 > 0, B1 > 0)
ORAny condition true=OR(A1 = "Yes", B1 = "Yes")
NOTNegate a condition=NOT(A1 = 0)
IFERRORHandle errors=IFERROR(A1/B1, 0)

Text functions

FunctionDescriptionExample
CONCATJoin text=CONCAT(A1, " ", B1)
LEFTFirst N characters=LEFT(A1, 3)
RIGHTLast N characters=RIGHT(A1, 4)
MIDSubstring=MID(A1, 2, 5)
TRIMRemove extra spaces=TRIM(A1)
UPPERConvert to uppercase=UPPER(A1)
LOWERConvert to lowercase=LOWER(A1)
LENCharacter count=LEN(A1)

Lookup functions

FunctionDescriptionExample
VLOOKUPVertical lookup=VLOOKUP(A1, D1:E10, 2, FALSE)
HLOOKUPHorizontal lookup=HLOOKUP(A1, A1:J2, 2, FALSE)
INDEXValue at position=INDEX(A1:A10, 5)
MATCHFind position=MATCH("Target", A1:A10, 0)

Date functions

FunctionDescriptionExample
TODAYCurrent date=TODAY()
NOWCurrent date and time=NOW()
DATEADDAdd to date=DATEADD(A1, 30, "days")
DATEDIFFDifference between dates=DATEDIFF(A1, B1, "days")

Practical examples

Running total

=SUM($A$1:A5)

The $ signs lock row 1, so as you copy down, each row sums from row 1 to the current row.

Percentage of total

=A1 / SUM($A$1:$A$10) * 100

Conditional sum

=SUMIF(B1:B10, "Completed", C1:C10)

Sum values in column C only where column B equals "Completed".

Next steps