Class methods
abs(value : CellValue) : CellValue
ABS: Returns the absolute value of a number
Sourceand(values :
Array(
CellValue)) :
CellValue AND: Returns TRUE if all arguments are TRUE
Sourceaverage(values :
Array(
CellValue)) :
CellValue AVERAGE: Single array overload for backward compatibility
Sourceaverage(*values :
CellValue |
Array(
CellValue)) :
CellValue AVERAGE: Multiple arguments (arrays and/or scalars mixed)
Sourceaverage(*values :
Array(
CellValue)) :
CellValue AVERAGE: Multiple arrays only
Sourceceiling(number : CellValue, significance : CellValue = 1.0) : CellValue
CEILING: Rounds number up to nearest multiple of significance
Sourceclean(text : CellValue) : CellValue
CLEAN: Removes non-printable characters
Sourceconcat(values :
Array(
CellValue)) :
CellValue CONCAT: Single array overload for backward compatibility
Sourceconcat(*values :
Array(
CellValue)) :
CellValue CONCAT: Joins several text strings into one text string (supports multiple arrays)
Sourcecount(values :
Array(
CellValue)) :
CellValue COUNT: Single array overload for backward compatibility
Sourcecount(*values :
CellValue |
Array(
CellValue)) :
CellValue COUNT: Multiple arguments (arrays and/or scalars mixed)
Sourcecount(*values :
Array(
CellValue)) :
CellValue COUNT: Multiple arrays only
Sourcecounta(values :
Array(
CellValue)) :
CellValue COUNTA: Counts how many values are in the list of arguments (non-empty)
Sourcecountif(range :
Array(
CellValue), criteria :
CellValue) :
CellValue COUNTIF: Counts cells meeting condition
Sourcedatedif(start_date : CellValue, end_date : CellValue, unit : CellValue) : CellValue
DATEDIF: Calculates difference between two dates
Sourceday(serial_number : CellValue) : CellValue
DAY: Extracts day from date serial number
Sourcediv0
Create common Excel errors
Sourceeomonth(start_date : CellValue, months : CellValue = 0.0) : CellValue
EOMONTH: Returns last day of month offset from date
Sourceeq(left : CellValue, right : CellValue) : CellValue
Sourceexact(text1 : CellValue, text2 : CellValue) : CellValue
EXACT: Compares two text strings (case-sensitive)
Sourcefind(find_text : CellValue, within_text : CellValue, start_num : CellValue = 1.0) : CellValue
FIND: Returns starting position of one text string within another (case-sensitive)
Sourceflatten
Zero-argument overload so degenerate formulas like =AND() still compile.
Sourceflatten(*values :
CellValue |
Array(
CellValue)) :
Array(
CellValue)
Flatten mixed arguments into a single array of cell values: scalars
are appended, arrays are concatenated. Used by the code generator for
functions that conceptually take a flat list of values but may receive
any mix of cell references and ranges (AND, OR, CONCAT, IFS, MEDIAN,
STDEV, ...). Mirrors the argument handling of the sum overloads.
Sourcefloor(number : CellValue, significance : CellValue = 1.0) : CellValue
FLOOR: Rounds number down to nearest multiple of significance
Sourcege(left : CellValue, right : CellValue) : CellValue
Sourcegt(left : CellValue, right : CellValue) : CellValue
Sourcehlookup(lookup_value :
CellValue, table_array :
Array(
Array(
CellValue)), row_index_num :
CellValue, range_lookup :
CellValue |
Nil = true) :
CellValue HLOOKUP: Horizontal lookup
Sourceif(condition : CellValue, true_value : CellValue, false_value : CellValue) : CellValue
IF: Specifies a logical test to perform
Sourceifs(pairs :
Array(
CellValue)) :
CellValue IFS: Evaluates multiple conditions and returns value for first true condition
Sourceindex_func(array :
Array(
Array(
CellValue)), row_num :
CellValue, column_num :
CellValue = 1.0) :
CellValue INDEX: Returns value from array at given position
Sourceint(value : CellValue) : CellValue
INT: Rounds a number down to the nearest integer
Sourcele(left : CellValue, right : CellValue) : CellValue
Sourceleft(text : CellValue, num_chars : CellValue = 1.0) : CellValue
LEFT: Returns the specified number of characters from the start of a text string
Sourcelen(text : CellValue) : CellValue
LEN: Returns the number of characters in a text string
Sourcelower(text : CellValue) : CellValue
LOWER: Converts text to lowercase
Sourcelt(left : CellValue, right : CellValue) : CellValue
Sourcemax(values :
Array(
CellValue)) :
CellValue MAX: Single array overload for backward compatibility
Sourcemax(*values :
CellValue |
Array(
CellValue)) :
CellValue MAX: Multiple arguments (arrays and/or scalars mixed)
Sourcemax(*values :
Array(
CellValue)) :
CellValue MAX: Multiple arrays only
Sourcemid(text : CellValue, start_num : CellValue, num_chars : CellValue) : CellValue
MID: Returns a specific number of characters from a text string starting at a specified position
Sourcemin(values :
Array(
CellValue)) :
CellValue MIN: Single array overload for backward compatibility
Sourcemin(*values :
CellValue |
Array(
CellValue)) :
CellValue MIN: Multiple arguments (arrays and/or scalars mixed)
Sourcemin(*values :
Array(
CellValue)) :
CellValue MIN: Multiple arrays only
Sourcemod(number : CellValue, divisor : CellValue) : CellValue
MOD: Returns the remainder after division
Sourcemonth(serial_number : CellValue) : CellValue
MONTH: Extracts month from date serial number
Sourcene(left : CellValue, right : CellValue) : CellValue
Sourcenot(value : CellValue) : CellValue
NOT: Reverses the logic of its argument
Sourcenow
NOW: Returns current date and time as serial number
Sourceor(values :
Array(
CellValue)) :
CellValue OR: Returns TRUE if any argument is TRUE
Sourcepower(base : CellValue, exponent : CellValue) : CellValue
POWER: Returns the result of a number raised to a power
Sourceproper(text : CellValue) : CellValue
PROPER: Capitalizes first letter of each word
Sourcerand
RAND: Returns a random number between 0 and 1
Sourcerandbetween(bottom : CellValue, top : CellValue) : CellValue
RANDBETWEEN: Returns random integer between two numbers
Sourcerept(text : CellValue, number_times : CellValue) : CellValue
REPT: Repeats text given number of times
Sourceright(text : CellValue, num_chars : CellValue = 1.0) : CellValue
RIGHT: Returns the specified number of characters from the end of a text string
Sourceround(value : CellValue, digits : CellValue = 0.0) : CellValue
ROUND: Rounds a number to a specified number of digits
Sourcerounddown(number : CellValue, digits : CellValue = 0.0) : CellValue
ROUNDDOWN: Rounds number down toward zero
Sourceroundup(number : CellValue, digits : CellValue = 0.0) : CellValue
ROUNDUP: Rounds number up away from zero
Sourcesearch(find_text : CellValue, within_text : CellValue, start_num : CellValue = 1.0) : CellValue
SEARCH: Returns position of one text string within another (case-insensitive)
Sourcesqrt(value : CellValue) : CellValue
SQRT: Returns the square root of a number
Sourcestdev(values :
Array(
CellValue)) :
CellValue STDEV.S: Estimates standard deviation based on a sample
Sourcestdev_p(values :
Array(
CellValue)) :
CellValue STDEV.P: Calculates standard deviation based on entire population
Sourcesubstitute(text : CellValue, old_text : CellValue, new_text : CellValue, instance_num : CellValue | Nil = nil) : CellValue
SUBSTITUTE: Replaces existing text with new text
Sourcesum(values :
Array(
CellValue)) :
CellValue SUM: Single array overload for backward compatibility
Sourcesum(*values :
CellValue |
Array(
CellValue)) :
CellValue SUM: Multiple arguments (arrays and/or scalars mixed)
Sourcesum(*values :
Array(
CellValue)) :
CellValue SUM: Multiple arrays only
Sourcesumif(range :
Array(
CellValue), criteria :
CellValue, sum_range :
Array(
CellValue) |
Nil = nil) :
CellValue SUMIF: Sums cells meeting condition
Sourceswitch_func(expression :
CellValue, pairs :
Array(
CellValue), default :
CellValue |
Nil = nil) :
CellValue SWITCH: Evaluates value against list and returns matching result
Sourcetext_func(value : CellValue, format_text : CellValue) : CellValue
TEXT: Formats a number and converts to text
Sourceto_float(value :
CellValue) :
BigFloat |
Nil Helper to convert cell value to BigFloat
Sourceto_string(value :
CellValue) :
String Helper to convert cell value to string
Sourcetoday
TODAY: Returns current date as serial number
Sourcetrim(text : CellValue) : CellValue
TRIM: Removes spaces from text except for single spaces between words
Sourceupper(text : CellValue) : CellValue
UPPER: Converts text to uppercase
Sourcevalue_func(text : CellValue) : CellValue
VALUE: Converts text to number
Sourcevar_p(values :
Array(
CellValue)) :
CellValue VAR.P: Calculates variance based on entire population
Sourcevar_s(values :
Array(
CellValue)) :
CellValue VAR.S: Estimates variance based on a sample
Sourcevlookup(lookup_value :
CellValue, table_array :
Array(
Array(
CellValue)), col_index_num :
CellValue, range_lookup :
CellValue |
Nil = true) :
CellValue Sourceyear(serial_number : CellValue) : CellValue
YEAR: Extracts year from date serial number
Sourcezero
Excel's MIN/MAX of an empty set is 0, not an error.
Source