General
CostOS is pre loaded with the majority of the Excel functions and it also gives the ability to the estimators to define their own functions. For defining custom Functions within CostOS you can refer on the Getting Started Chapter at the "Creating Custom Functions" section.
Preloaded Excel Type Functions¶
Below is the list of all pre-loaded functions, similar to those within Microsoft Excel, and what they do within CostOS:
| Function | Description |
|---|---|
| ABS | Returns the absolute value of a number |
| ACOS | Returns the arccosine (in radians) of a number |
| ACOSH | Returns the inverse hyperbolic cosine of a number |
| AND | Returns TRUE if all conditions are TRUE. It returns FALSE if any of the conditions are FALSE |
| ASIN | Returns the arcsine (in radians) of a number |
** ASINH ** Returns the inverse hyperbolic sine of a number
** ATAN ** Returns the arctangent (in radians) of a number
** ATAN2 ** Returns the arctangent (in radians) of (x,y) coordinates
** ATANH ** Returns the inverse hyperbolic tangent of a number
AVEDEV Returns the average of the absolute deviations of the numbers provided
AVERAGE Returns the average (arithmetic mean) of the numbers provided
AVERAGEA Returns the average (arithmetic mean) of the numbers provided. The AverageA function is different from the Average function in that it treats TRUE as a value of 1 and FALSE as a value of 0")
BETADIST Returns the cumulative beta probability density function
BETAINV Returns the inverse of the cumulative beta probability density function
BINOMDIST Returns the individual term binomial distribution probability
CEILING Returns a number rounded up based on a multiple of significance
CHAR Returns the character based on the ASCII value
CHIDIST Returns the one-tailed probability of the chi-squared distribution
CHIINV Calculates the inverse of the right-tailed probability of the chi-square distribution"));
CHOOSE Returns a value from a list of values based on a given position
CLEAN Removes all nonprintable characters from a string
CODE Removes returns the ASCII value of a character or the first character in a cell
COMBIN Returns the combinations for a specified number of items
CONCATENATE Allows you to join 2 or more strings together
CONFIDENCE Returns a value that you can use to construct a confidence interval for a population mean
CORREL Returns the correlation coefficient of the array1 and array2 cell ranges"
COS Returns the cosine of an angle
COSH Returns the hyperbolic cosine of a number
COUNT Counts the number of cells that contain numbers as well as the number of arguments that contain numbers
COUNTA Counts the number of cells that are not empty as well as the number of arguments that contain values
COVAR Returns the covariance, the average of the products of deviations for two data sets
CRITBINOM Returns the inverse of the Cumulative Binomial Distribution
DATE Returns the serial number of a date
DAY Returns the day of the month (a number from 1 to 31) given a date value
DB Returns the depreciation of an asset for a given time period based on the fixed-declining balance method
DCOUNT Returns the depreciation of an asset for a given time period based on the fixed-declining balance method
DCOUNTA Returns the number of cells in a column or database that contains nonblank values and meets a given criteria
DDB Returns the depreciation of an asset for a given time period based on the double-declining balance method
DEGREES Converts radians into degrees
DEVSQ Returns the sum of squares of deviations of data points from their sample mean
DGET Retrieves from a database a single record that matches a given criteria
DMAX Returns the largest number in a column in a list or database, based on a given criteria
DMIN Returns the smallest number in a column in a list or database, based on a given criteria
DPRODUCT Returns the product of the numbers in a column in a list or database, based on a given criteria
DSTDEV Returns the standard deviation of a population based on a sample of numbers in a column in a list or database, based on a given criteria
DSTDEVP Returns the standard deviation of a population based on the entire population of numbers in a column in a list or database, based on a given criteria
DSUM Sums the numbers in a column or database that meets a given criteria
DVAR Returns the variance of a population based on a sample of numbers in a column in a list or database, based on a given criteria
DVARP Returns the variance of a population based on the entire population of numbers in a column in a list or database, based on a given criteria
EVEN Rounds a number up to the nearest even integer. If the number is negative, the number is rounded away from zero
EXACT Compares two strings and returns TRUE if both values are the same. Otherwise, it will return FALSE
EXP Returns number raised to the nth power, where e = 2.71828183
EXPONDIST Returns the value of the exponential distribution for a give value of x
FACT Returns the factorial of a number
FALSE Returns a logical value of FALSE
FDIST Returns the F probability distribution
FIND Returns the location of a substring in a string
FINV Returns the inverse of the F probability distribution
FLOOR Returns a number rounded down based on a multiple of significance
FORECAST Returns a prediction of a future value based on existing values provided
FREQUENCY Returns a frequency distribution as a vertical array
GEOMEAN Returns the geometric mean of an array or range of positive data
HOUR Returns the hour of a time value(from 0 to 23)
IF Returns one value if a specified condition evaluates to TRUE, or another value if it evaluates to FALSE
INDIRECT Returns the reference to a cell based on its string representation
INFO Returns information about the operating environment
INT Returns the integer portion of a number
ISBLANK Checks for blank or null values
ISERR Checks for error values
ISLOGICAL Checks for for a logical value (ie: TRUE or FALSE)
ISNA Checks for a #N/A (value not available) error
ISNONTEXT Checks for a value that is not text
ISNUMBER Checks for a numeric value
ISREF Checks for a reference
ISTEXT Checks for a text value
KURT Returns the kurtosis of a data set
LEFT Extracts a substring from a string, starting from the left-most character
LEN Returns the length of the specified string
LN Returns the natural logarithm of a number
LOG Returns the logarithm of a number to a specified base, base is optional
LOG10 Returns the base-10 logarithm of a number
LOWER Converts all letters in the specified string to lowercase
MATCH Searches for a value in an array and returns the relative position of that item
MAX Returns the largest value from the numbers provided
MAXA Returns the largest value from the values provided"
MID Extracts a substring from a string (starting at any position)
MIN Returns the smallest value from the numbers provided
MINA Returns the smallest value from the values provided. The MinA function compares numbers, text, and logical values (TRUE or FALSE)
MINUTE Returns the minute of a time value (from 0 to 59)
MOD Returns the remainder after a number is divided by a divisor
MODE Tells you the most frequently occurring value in a list of numbers"));
MONTH Returns the month(a number from 1 to 12) given a date value"));
N The Excel N function converts data into a numeric value
NA Returns the #N/A error value
NORMSDIST Returns the standard normal cumulative distribution function"));
NOT Returns the reversed logical value"));
NOW Returns the current system date and time
ODD Rounds a number up to the nearest odd integer
OR Returns TRUE if any of the conditions are TRUE.Otherwise, it returns FALSE
PERMUT Returns the number of permutations for a specified number of items
PI Returns the mathematical constant called pi, which is 3.14159265358979
POWER Returns the result of a number raised to a given power
PRODUCT Multiplies the numbers and returns the product
PROPER Sets the first character in each word to uppercase and the rest to lowercase
RADIANS Converts degrees into radians
RAND Returns a random number that is greater than or equal to 0 and less than 1
REPLACE Replaces a sequence of characters in a string with another set of characters
REPT Returns a repeated text value a specified number of times
RIGHT Extracts a substring from a string starting from the right-most character
ROUND Returns a number rounded to a specified number of digits
ROUNDDOWN Returns a number rounded down to a specified number of digits.Always rounds towards 0.
ROUNDUP Returns a number rounded up to a specified number of digits.Rounds away from 0
ROW Returns the row number of a cell reference
ROWS Returns the number of rows in a cell reference"));
SEARCH Returns the location of a substring in a string.The search is NOT case-sensitive
SECOND Returns the second of a time value (from 0 to 59)
SIGN Returns the sign of a number. If the number is positive, the Sign function will return +. If the number is negative , the Sign function will return -. If the number is 0, the Sign function will return 0"));
SIN Returns the sine of an angle
SINH Returns the hyperbolic sine of a number
SQRT Returns the square root of a number
STDEV Returns the standard deviation of a population based on a sample of numbers
STDEVP Returns the standard deviation of a population based on an entire population of numbers
SUBSTITUTE Replaces a set of characters with another
SUM Adds all numbers in a range of cells and returns the result
SUMSQ Returns the sum of the squares of a series of values
SYD Returns the depreciation of an asset for a given time period based on the sum-of-years' digits depreciation method
T Tests whether a supplied value is text and if so, returns the supplied text; If not, returns an empty text string
TAN Returns the tangent of an angle
TANH Returns the hyperbolic tangent of a number
TEXT Returns a value converted to text with a specified format
TIME Returns the decimal number for a particular time
TODAY Returns the current system date
TRIM Returns a text value with the leading and trailing spaces removed
TRUE Returns a logical value of TRUE
TRUNC Returns a number truncated to a specified number of digits
TYPE Returns the type of a value
UPPER Allows you to convert text to all uppercase
VALUE Converts a text value that represents a number to a number
VAR Returns the variance of a population based on a sample of numbers
VARA Returns the variance of a population based on a sample of numbers, text, and logical values (ie: TRUE or FALSE)
VARP Returns the variance of a population based on an entire population of numbers
VARPA Returns the variance of a population based on an entire population of numbers, text, and logical values (ie: TRUE or FALSE)
VDB Returns the depreciation of an asset for a given time period based on a variable declining balance depreciation method
WEEKDAY Returns a number representing the day of the week, given a date value
YEAR Returns a four-digit year(a number from 1900 to 9999) given a date value
Preloaded Project Related Functions¶
The following functions refer to data related to the current open Project.
| Function | Description |
|---|---|
| PRJStartDate | Returns the start date of the current project |
| ProjectDuration | Returns an integer representing the current projects duration in months |
| ProjectLocation | Returns the location of the current project |
| ProjectStateProvince | Returns the state province of the current project |
| ProjectCountry | Returns the country of the current project |
Additional Functions¶
The following functions are essential for defining logic on the smart assemblies.
** ArgInShowing ** Checks if the supplied argument in name is shown on the form
** ARG_VALID_SHOWING ** Checks if the supplied argument in name is showing on the form and is valid as well. Also when installing CostOS there are some pre-loaded functions which are used on the demo assemblies as well as for quantity takeoff. The user can delete them, although this is not recommended.
** Vol_Cone ** Returns the volume of a cone based on its radius and height
** Vol_Cube ** Returns the volume of a cube based on the length of its side
** Vol_Cylinder ** Returns the volume of a cylinder based on its height and radius
** Vol_Pyramid_Eq ** Returns the volume of a pyramid with equal sides based on the length of its sides and its height
** Vol_Slab ** Returns the volume of a Slab or a Rectangular based on the length of its sides
** Vol_Sphere ** Returns the volume of a sphere based on its radius
** CraneRail ** Returns the weight of crane rails based on their type and length
** HEA ** Returns the weight of HEA steel sections based on their length (European Type Sections)
** HEB ** Returns the weight of HEB steel sections based on their length (European Type Sections)
** IPE ** Returns the weight of IPE steel sections based on their length (European Type Sections)
** IPN ** Returns the weight of IPN steel sections based on their length (European Type Sections)
** ORTHOGONAL ** Returns the weight of Orthogonal steel sections based on their length
** SquareSections ** Returns the weight of Square Sections
** UPN ** Returns the weight of UPN steel sections based on their length (European Type Sections)