SheetRocks
Documentation/Formulas

Formula Reference

SheetRocks supports 154+ spreadsheet functions. Click any function to see detailed documentation with examples.

Math Functions

ABS
Returns the absolute value of a number
ACOS
Returns the arccosine, or inverse cosine, of a number
ASIN
Returns the arcsine, or inverse sine, of a number
ATAN
Returns the arctangent, or inverse tangent, of a number
CEILING
Rounds a number up to the nearest integer or to the nearest multiple of significance
COS
Returns the cosine of the given angle
EXP
Returns e raised to the power of a given number
FACT
Returns the factorial of a number
FLOOR
Rounds a number down to the nearest multiple of significance
INT
Rounds a number down to the nearest integer
LN
Returns the natural logarithm of a number
LOG
Returns the logarithm of a number to a specified base
LOG10
Returns the base-10 logarithm of a number
MOD
Returns the remainder after a number is divided by a divisor
PI
Returns the value of pi (π)
POWER
Returns the result of a number raised to a power
RAND
Returns a random number greater than or equal to 0 and less than 1.
ROUND
Returns the number after rounding it to a certain number of decimal places.
ROUNDDOWN
Returns a number rounded to a certain number of decimal places. ROUNDDOWN rounds all numbers down.
ROUNDUP
Returns a number rounded up to a certain number of decimal places. ROUNDUP rounds all numbers up.
SIGN
Determines the sign of a number
SIN
Returns the sine of the given angle
SQRT
Returns the square root of a number
SUM
Returns the sum of all numbers in the provided arguments
TAN
Returns the tangent of the given angle
TRUNC
Truncates a number to an integer by removing the fractional part

Statistical Functions

Financial Functions

CUMIPMT
Returns the cumulative interest paid between start_period and end_period
CUMPRINC
Returns the cumulative principal paid on a loan between start_period and end_period
DB
Returns the depreciation of an asset for a specified period using the fixed-declining balance method
DISC
Returns the discount rate for a security
EFFECT
Returns the effective annual interest rate
FV
Returns the future value of an investment.
FVSCHEDULE
Returns the future value of an initial principal after applying a series of compound interest rates
IPMT
Returns the interest payment for a given period for an investment based on periodic, constant payments and a constant interest rate.
IRR
Returns the internal rate of return for a series of cash flows
NOMINAL
Returns the annual nominal interest rate
NPER
Returns the number of periods for an investment
NPV
Calculates the net present value of a series of cash flows at a given discount rate
PMT
Calculates the payment for a loan based on constant payments and a constant interest rate.
PPMT
Returns the payment on the principal for a given period for an investment based on periodic, constant payments and a constant interest rate.
PV
Returns the present value of an investment.
RATE
Returns the interest rate per period of a loan or investment.
SLN
Returns the straight-line depreciation of an asset for one period
XIRR
Returns the internal rate of return for a schedule of cash flows that is not necessarily periodic
XNPV
Returns the net present value for a schedule of cash flows that is not necessarily periodic

Text Functions

CLEAN
Removes all nonprintable characters from text
CONCATENATE
Returns the concatenation of a list of arguments.
ENDSWITH
Returns TRUE if the text ends with search text, returns FALSE otherwise.
EXACT
Compares two text strings and returns TRUE if they are exactly the same, FALSE otherwise
FIND
Returns the position of the first occurrence from within_text.
FIXED
Formats a number as text with a fixed number of decimals
LEFT
Returns a substring from the left side of a supplied string.
LEN
Returns the length of a given string.
LOWER
Returns a string after converting it to lowercase
MID
Returns a substring from the middle of a given string.
PROPER
Capitalizes the first letter in each word of a text value
REGEXMATCH
Returns true if the text matches the regular expression pattern; otherwise returns false.
REPLACE
Replaces part of a text string with a different text string
REPT
Repeats text a given number of times
RIGHT
Returns a substring from the right side of a given string.
SEARCH
Returns the start position of the find_text string from the first character of the text string.
STARTSWITH
Returns TRUE if the text starts with search text, returns FALSE otherwise.
SUBSTITUTE
Returns the text after replacing one or more text strings with another text string
TEXTJOIN
Returns the combination of two or more one-dimensional arrays with or without a delimiter.
TRIM
Removes all spaces from a text string except for single spaces between words.
UPPER
Returns the string after converting all letters to uppercase
VALUE
Returns a numeric value for a text that appears in a recognized format (i.e. a number, date, or time format).

Date/Time Functions

DATE
Constructs a date from year, month, and day values.
DATEDIF
Calculates the number of days, months, or years between two dates
DATEONLY
Extracts the date component from a datetime value, removing the time portion. The result is in workbook time zone.
DAY
Returns the day of the month from a date value.
DAYOFWEEK
Returns the day of the week as a text string
DAYS
Returns the number of days between two dates
EDATE
Returns a date on the same day of the month, n months in the past or future.
EOMONTH
Returns last day of a month as a serial number after adding a specified number of months before or after another date.
HOUR
Returns the hour component of a specific time as a number between 0-23.
ISOWEEKNUM
Returns the ISO-8601 week number (1–53) of the year for a given date.
MINUTE
Returns the minutes of a time value
MONTH
Returns the month from a date value (1-12).
NETWORKDAYS
Returns the number of work days between two dates, excluding saturday and sunday.
NOW
Returns the current date and time as a date value in UTC.
SECOND
Returns the seconds of a time value
TIME
Returns the created time with individual hour, minute and second components.
TIMEVALUE
Returns the decimal number of the time represented by a string. The decimal number is a value ranging from 0 (inclusive) to 1 (exclusive).
TODAY
Returns the current date as a date value in UTC with time stripped.
WEEKDAY
Returns the number that corresponds to the week of provided date.
WEEKNUM
Returns the week number of a specific date
WORKDAY
Returns the date that is the specified number of working days before or after the start date.
YEAR
Returns the year from a date value.
YEARFRAC
Calculates the fraction of the year represented by the number of whole days between two dates

Logical Functions

Data Functions

CHOOSE
Uses index to return a value from the list of value arguments
COLUMN
Returns the column number of the current cell context.
DROP
Drops the first N rows and optionally first N columns from an array. Returns an error if the result would be empty.
FILTER
Returns a filtered array containing only rows that match the criteria
GROUPBY
Groups data by a key and applies an aggregator function to each group
HLOOKUP
Returns the corresponding value from the specified row of table which matches exactly or approximately to the first row of the table.
HSTACK
Horizontally stacks arrays by appending columns
INDEX
Returns a cell value from a list or table based on its column and row numbers.
LAST
Returns the last N rows and optionally last N columns from an array. Returns an error if the result would be empty.
MAP
Processes each row in an array with a formula including a COL or CELL keyword and returns it as a 2D array.
MATCH
Returns the position of the item/lookup_value in the lookup_array or range.
PICK
Selects specific columns from an array using column numbers or header names
ROW
Returns the 1-indexed row number of the current cell
SEQUENCE
Returns the list of generated sequential numbers in an array.
SORT
Sorts the values in a range or array.
TAKE
Returns the first N rows and optionally first N columns from an array. Returns an error if the result would be empty.
TRANSPOSE
Returns the result after transposing the rows and columns of an array or range.
UNIQUE
Returns a list of unique values in a list or range.
VLOOKUP
Returns a value from a table by looking up a value in the first column and returning a value from the specified column
VSTACK
Vertically stacks arrays by appending rows

Special Functions & Keywords Functions