Show AllShow All

Examples of common formulas

You can use the following examples in calculated columns. Examples that do not include column references can be used to specify the default value of a column.

 Important   Formulas can only be used in columns with the data type Calculated. You cannot change the data type of a column to Calculated.

Conditional formulas

ShowCheck if a number is greater than or less than another number

ShowReturn a logical value after comparing column contents

ShowDisplay zeroes as blanks or dashes

Date and time formulas

ShowAdd dates

ShowCalculate the difference between two dates

ShowCalculate the difference between two times

ShowConvert times

ShowInsert Julian dates

ShowShow dates as the day of the week

Math formulas

ShowAdd numbers

ShowSubtract numbers

ShowCalculate the difference between two numbers as a percentage

ShowMultiply numbers

ShowDivide numbers

ShowCalculate the average of numbers

ShowCalculate the median of numbers

ShowCalculate the smallest or largest number in a range

ShowCount values

ShowIncrease or decrease a number by a percentage

ShowRaise a number to a power

ShowRound a number

Text formulas

ShowChange the case of text

ShowCombine first and last names

ShowCombine text and numbers from different columns

ShowCombine text with a date or time

ShowCompare column contents

ShowCheck if a column value or a part of it matches specific text

ShowCount nonblank columns

ShowRemove characters from text

ShowRemove spaces from the beginning and end of a column

ShowRepeat a characater in a column

Other formulas

ShowHide error values in columns