Join Our Discussion

Recent site activity

Computed Columns‎ > ‎

Formulas

The following sections list computed column functions by category. Many are designed to operate like Excel, clicking on the Excel like functions will take you to Excel help on Microsoft website. When appropriate, clicking on the name of the function will link to specific XpandedReports information.

Tips and Tricks

In this topic

Operators

Date and time (Excel like)

Date and time (XR)

Information functions

Logical functions

Math functions

Text functions

 

Operators


FunctionSyntaxDescription
x + yadditionAdd x and y
x - ysubtractionSubtract y from x
x * ymultiplicationMultiply x and y
x / ydivisionDivide x by y
x ^ yexponentiation, powRaise x to the exponent y
x % ymoduloReturn the remainder of x divded by y
x == yequalityIndicates if x and y are equal
x != y, x <> yinequalityIndicates if x and y are not equal
x > ygreater thanIndicates if x is greater than y
x >= ygreater than or equal toIndicates if x is greater than or equal to y
x < yless thanIndicates if x is less than y
x <= yless than or equal toIndicates if x is less than or equal to y
Top of Page
 
 

Date and time (Excel like)


FunctionSyntaxDescription
DATEDATE(year,month,day)Returns the serial number of a particular date
DATEDIFDATEDIF(start_date,end_date,unit)Calculates the number of days, months, or years between two dates
DATEVALUEDATEVALUE(date_text)Converts a date in the form of text to a serial number
DATE_XRDATE_XR(report_date)Returns the serial number of a particular date
DAYDAY(serial_number)Converts a serial number to a day of the month
DAYS360DAYS360(start_date,end_date,method)Calculates the number of days between two dates based on a 360-day year
HOURHOUR(serial_number)Converts a serial number to an hour
MINUTEMINUTE(serial_number)Converts a serial number to a minute
MONTHMONTH(serial_number)Converts a serial number to a month
NETWORKDAYSNETWORKDAYS(start_date,end_date)Returns the number of whole workdays between two dates
NOWNOW()Returns the serial number of the current date and time
SECONDSECOND(serial_number)Converts a serial number to a second
TIMETIME(hour,minute,second)Returns the serial number of a particular time
TIMEVALUETIMEVALUE(time_text)Converts a time in the form of text to a serial number
TIME_XRTIME(report_timestamp)Returns the serial number of a particular time.
TODAYTODAY( )Returns the serial number of today's date
WEEKDAYWEEKDAY(serial_number,return_type)Converts a serial number to a day of the week
WEEKNUMWEEKNUM(serial_num,return_type)Converts a serial number to a number representing where the week falls numerically with a year
YEARYEAR(serial_number)Converts a serial number to a year
YEARFRACYEARFRAC(start_date,end_date,basis)Returns the year fraction representing the number of whole days between start_date and end_date
Top of Page
 

Date and time (XR)


FunctionSyntaxDescription
DATEDIF_XRDATEDIF_XR(start_date,end_date,unit)Calculates the number of days, months, or years between two dates
DATE_FROM_TEXTDATE_FROM_TEXT(text_column, text_format)Converts a text value to a Date value.
DATE_XRDATE_XR(report_date)Returns the serial number of a particular date
DAYS360_XRDAYS360_XR(start_date,end_date,method)Calculates the number of days between two dates based on a 360-day year
DAY_XRDAY_XR(report_date)Converts a report date to a day of the month
HOUR_XRHOUR_XR(report_date)Converts a report date to an hour
MINUTE_XRMINUTE_XR(report_timestamp)Converts a report date to a minute
MONTH_XRMONTH_XR(report_date)Converts a report date to a month
NETWORKDAYS_XRNETWORKDAYS_XR(start_date,end_date)Returns the number of whole workdays between two dates
NOW_XRNOW_XR()Returns the report date of the current date and time. Used in with other Date XR functions.
TEXT_TO_DATETEXT_TO_DATE(text_column, text_format)Converts a text value to a Date value.
TIME_XRTIME(report_timestampReturns the serial number of a particular time.
WEEKDAY_XRWEEKDAY_XR(report_date,return_type)Converts a report date to a day of the week
WEEKNUM_XRWEEKNUM_XR(report_date,return_type)Converts a report date to a number representing where the week falls numerically with a year
YEARFRAC_XRYEARFRAC_XR(start_date,end_date,basis)Returns the year fraction representing the number of whole days between start_date and end_date
YEAR_XRYEAR_XR(report_date)Converts a report date to a year
Top of Page
 

Information


FunctionSyntaxDescription
ISBLANKISBLANK(value)Returns TRUE if the value is blank
ISEVENISEVEN(value)Returns TRUE if the number is even
ISLOGICALISLOGICAL(value)Returns TRUE if the value is a logical value
ISNONTEXTISNONTEXT(value)Returns TRUE if the value is not text
ISNUMBERISNUMBER(value)Returns TRUE if the value is a number
ISODDISODD(value)Returns TRUE if the number is odd
ISTEXTISTEXT(value)Returns TRUE if the value is text
NN(value)Returns a value converted to a number
TYPETYPE(value)Returns a number indicating the data type of a value
Top of Page
 

Logical


FunctionSyntaxDescription
ANDAND(logical1,logical2, ...)Returns TRUE if all of its arguments are TRUE
FALSEFALSE()Returns the logical value FALSE
IFIF(logical_test,value_if_true,value_if_false)Specifies a logical test to perform
NOTNOT(logical)Reverses the logic of its argument
OROR(logical1,logical2,...)Returns TRUE if any argument is TRUE
TRUETRUE()Returns the logical value TRUE
XORXOR(logical1,logical2,...)Indicates if one, but not both, of logical values is true. The result is true if they are different or false if they are not the same.
Top of Page
 

Math


FunctionSyntaxDescription
ABSABS(number)Returns the absolute value of a number
ACOSACOS(number)Returns the inverse cosine (arc cosine) of a x
CEILCEIL(number)Returns number rounded up, away from zero, to the nearest multiple of significance. For example, if you want to avoid using pennies in your prices and your product is priced at $4.42, use the formula =CEILING(4.42,0.05) to round prices up to the nearest nickel.
CEILINGCEILING(number,significance)Rounds a number to the nearest integer or to the nearest multiple of significance
EVENEVEN(number)Rounds a number up to the nearest even integer
EXPEXP(number)Returns e raised to the power of a given number
FACTFACT(number)Returns the factorial of a number
FLOORFLOOR(number,significance)Rounds a number down, toward zero
INTINT(number)Rounds a number down to the nearest integer
LNLN(number)Returns the natural logarithm of a number
LOGLOG(number,base)Returns the logarithm of a number to a specified base
LOG10LOG10(number)Returns the base-10 logarithm of a number
MAXMAX(number1, number2, number3,...)Returns the largest value in a set of values.
MINMIN(number1, number2, number3,...)Returns the smallest number in a set of values.
MODMOD(number,divisor)Returns the remainder from division
MROUNDMROUND(number,multiple)Returns a number rounded to the desired multiple
ODDODD(number)Rounds a number up to the nearest odd integer
POWPOWER(number,power)Returns the result of a number raised to a power
POWERPOWER(number,power)Returns the result of a number raised to a power
QUOTIENTQUOTIENT(numerator,denominator)Returns the integer portion of a division
RANDRAND( )Returns a random number between 0 and 1
RANDBETWEENRANDBETWEEN(bottom,top)Returns a random number between the numbers you specify
ROMANROMAN(number,form)Converts an arabic numeral to roman, as text
ROUNDROUND(number,num_digits)Rounds a number to a specified number of digits
ROUNDDOWNROUNDDOWN(number,num_digits)Rounds a number down, toward zero
ROUNDUPROUNDUP(number,num_digits)Rounds a number up, away from zero
SIGNSIGN(number)Returns the sign of a number. 1 for positive, -1 for negative
SQRTSQRT(number)Returns a positive square root
SUMSUM(number1, number2, number3,...)Adds all the numbers in a range of cells.
Top of Page
 

Text


FunctionSyntaxDescription
ABBREVIATEABBREVIATE(text,number_times)Abbreviates a text using ellipses. This will turn "Now is the time for all good men" into "Now is the time for...".
CAPCAP(text)Capitalize words in the text. Individual words/names will be given uppercase first letters, with all other letters in lowercase.
CHARCHAR(number)Returns the character specified by the code number
CODECODE(text)Returns a numeric code for the first character in a text string
COMPARE_IGNORECASECOMPARE_IGNORECASE(text1,text2)Compares two text and returns TRUE if they are equal ignoring the case, FALSE otherwise.
CONCATCONCAT(text1,text2,...)Joins several text items into one text item
CONCATENATECONCATENATE(text1,text2,...)Joins several text items into one text item
CONCAT_WSCONCAT_WS(sep, text1,text2,...)Concatenate with separator. Joins several text items into one text item.
CONTAINS_ANY CONTAINS_ANY (text,searchChars)Checks if the text contains any character in the given set of characters.
CONTAINS_NONECONTAINS_NONE(text,invalidText)Checks that the text does not contain certain characters. An empty text ("") always returns true.
CONTAINS_ONLYCONTAINS_ONLY(text1,text2)Checks if the text contains only certain characters. An empty text ("") always returns true.
COUNTMATCHESCOUNTMATCHES(text,sub)Counts the number of occurrences of one text in another
DIFFERENCEDIFFERENCE(text1,text2)Compares two text, and returns the portion where they differ. (More precisely, return the remainder of the second text, starting from where it's different from the first.)
ENDS_WITHENDS_WITH(text,suffix)Check if a text ends with a suffix. The comparison is case sensitive.
ENDS_WITH_IGNORECASEENDS_WITH_IGNORECASE(text,suffix)Check if a text ends with a suffix. The comparison is case insensitive.
EXACTEXACT(text1,text2)Compares two text strings and returns TRUE if they are exactly the same, FALSE otherwise. EXACT is case-sensitive but ignores formatting differences. Use EXACT to test text being entered into a document.
FINDFIND(find_text,within_text,start_num)Finds one text value within another (case-sensitive)
INSERTINSERT(old_text, pos, len, new_text)Replaces characters within text. Replaces part of a text string, based on the number of characters you specify, with a different text string.
LCASELCASE(text)Converts text to lowercase
LEFTLEFT(text,num_chars)LEFT returns the first character or characters in a text string, based on the number of characters you specify.
LENLEN(text)Returns the number of characters in a text string
LENGTHLENGTH(text)Returns the number of characters in a text string
LPADLPAD(text, max_len, pad_text)Pad the left side of string str with copies of string pad, up to a total padding of len characters.
MIDMID(text,start_num,num_chars)Returns a specific number of characters from a text string starting at the position you specify
POSITIONPOSITION(find_text,within_text)Returns the starting position of the first occurrence of find_text in within_text. 0 is returned if not found.
REMOVEREMOVE(text,remove)Removes all occurrences of a sub text from within the source string. Removes a text only if it is at the begining of a source text, otherwise returns the source text. An empty ("") source text will return the empty string. A empty search text will return the source string.
REMOVEENDREMOVEEND(text, remove)Removes a sub text only if it is at the end of a source string, otherwise returns the source string. An empty ("") source text will return the empty string. A empty search text will return the source string.
REMOVESTARTREMOVESTART(text, remove)Removes a sub text only if it is at the begining of a source string, otherwise returns the source string. An empty ("") source text will return the empty string. A empty search text will return the source string.
REPEATREPEAT(text,number_times)Repeats text a given number of times
REPLACEREPLACE(old_text,start_num,num_chars,new_text)Replaces characters within text
REPLACEALLREPLACEALL(text, search, replacement)Parameters:
REPTREPT(text,number_times)Repeats text a given number of times
REVERSEREVERSE(text)Returns a reversed copy of the input string str
RIGHTRIGHT(text,num_chars)Returns the rightmost characters from a text value
RPADRPAD(text, max_len, pad_text)Pad the right side of string str with copies of string pad, up to a total padding of len characters.
SEARCHSEARCH(find_text,within_text,start_num)Finds one text value within another (not case-sensitive)
SPLIT_TEXTSPLIT_TEXT(text, splitChar, section)SPLIT_TEXT returns the section or characters in a text string, based on the split character and sub section you specify.
STARTS_WITHSTARTS_WITH(text,prefix)Check if text starts with a prefix. The comparison is case sensitive.
STARTS_WITH_IGNORECASESTARTS_WITH_IGNORECASE(text,prefix)Check if text starts with a prefix. The comparison is case insensitive.
SUBSTRINGSUBSTRING(text,num_chars,num_chars)SUBSTRING returns the first character or characters in a text string, based on the number of characters you specify.
SUB_STRING_BETWEENSUB_STRING_BETWEEN(text, text open, text close)Gets the text that is nested in between two Strings. Only the first match is returned. A empty input text returns empty. An empty ("") open and close returns an empty string.
TT(value)Converts its arguments to text
TRIMTRIM(text)Removes spaces from text. (removes leading and trailing whitespace)
UCASEUCASE(text)Converts text to uppercase
UNCAPITALIZEUNCAPITALIZE(text)Returns a uncapitalized copy of the input text. Only the first letter of each word is changed.
VALUEVALUE(text)Converts a text argument to a number
Top of Page

Sign in  |  Recent Site Activity  |  Terms  |  Report Abuse  |  Print page  |  Powered by Google Sites