This Excel tutorial explains how to use the Excel ROMAN function with syntax and examples.

Description

The Microsoft Excel ROMAN function converts a number to roman numeral.

Syntax

The syntax for the Microsoft Excel ROMAN function is:
ROMAN( number, type )
This Excel tutorial explains how to use the Excel RND function with syntax and examples.

Description

The Microsoft Excel RND function allows you to generate a random number (integer value). You can specify the random number to be a value between 2 user-specified numbers.

Syntax

The syntax for the Microsoft Excel RND function is:
Int ((upperbound - lowerbound + 1) * Rnd + lowerbound)

Parameters or Arguments

upperbound is the highest value that the random number can be.
lowerbound is the lowest value that the random number can be.

Applies To

The RND function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The RND function can be used in Microsoft Excel as the following type of function:
  • VBA function (VBA)

Example (as VBA Function)

The RND function can only be used in VBA code in Microsoft Excel.
Let's look at some Excel RND function examples and explore how to use the RND function in Excel VBA code:
Int ((6 - 1 + 1) * Rnd + 1)
Result: random number between 1 and 6

Int ((200 - 150 + 1) * Rnd + 150)
Result: random number between 150 and 200

Int ((999 - 100 + 1) * Rnd + 100)
Result: random number between 100 and 999
For example:
Dim LRandomNumber As Integer

LRandomNumber = Int ((300 - 200 + 1) * Rnd + 200)
This Excel tutorial explains how to use the Excel RANDBETWEEN function with syntax and examples.

Description

The Microsoft Excel RANDBETWEEN function returns a random number that is between a bottom and top range. The RANDBETWEEN function returns a new random number each time your spreadsheet recalculates.

Syntax

The syntax for the Microsoft Excel RANDBETWEEN function is:
RANDBETWEEN( bottom, top )

Parameters or Arguments

bottom is the smallest integer value that the RANDBETWEEN function will return.
top is the largest integer value that the RANDBETWEEN function will return.

Note

  • If bottom is a greater than top, the RANDBETWEEN function will return #NUM! error.

Applies To

The RANDBETWEEN function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007

Type of Excel Function

The RANDBETWEEN function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel RANDBETWEEN function examples and explore how to use the RANDBETWEEN function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel RANDBETWEEN examples would return:
=RANDBETWEEN(A1,A2)
Result: random number   (between 1 and 5)

=RANDBETWEEN(1,5)
Result: random number   (between 1 and 5)

=RANDBETWEEN(B1,B2)
Result: random number   (between 10 and 20)

=RANDBETWEEN(100,200)
Result: random number   (between 100 and 200)

=RANDBETWEEN(200,100)
Result: #NUM!           (because bottom is greater than top)
This Excel tutorial explains how to use the Excel RAND function with syntax and examples.

Description

The Microsoft Excel RAND function returns a random number that is greater than or equal to 0 and less than 1. The RAND function returns a new random number each time your spreadsheet recalculates.
To create a random number between a range, you might also want to look at the RANDBETWEEN function.

Syntax

The syntax for the Microsoft Excel RAND function is:
RAND( )

Parameters or Arguments

There are no parameters or arguments for the RAND function.

Note

To create a random number between two numbers, you can use the following formula:
=RAND()*(b-a)+a
Where a is the smallest number and b is the largest number that you want to generate a random number for. Please note, that this formula will never generate a number at the highest end of the range.
=RAND()*(25-10)+10
The formula above would generate a random number between 10 and 24.9999999.

Applies To

The RAND function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The RAND function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel RAND function examples and explore how to use the RAND function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel RAND examples would return:
=RAND()*(A2-A1)+A1
Result: random number   (between 50 and 149.9999999)

=RAND()*(A3-A1)+A1
Result: random number   (between 50 and 199.9999999)

=RAND()*(200-100)+100
Result: random number   (between 100 and 199.9999999)

=INT(RAND()*(200-100)+100)
Result: random number   (between 100 and 199, integer value)
This Excel tutorial explains how to use the Excel RADIANS function with syntax and examples.

Description

The Microsoft Excel RADIANS function converts degrees into radians.

Syntax

The syntax for the Microsoft Excel RADIANS function is:
RADIANS( degrees )

Parameters or Arguments

degrees is an angle in degrees that you wish to convert to radians.

Applies To

The RADIANS function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The RADIANS function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel RADIANS function examples and explore how to use the RADIANS function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel RADIANS examples would return:
=RADIANS(A1)
Result: 2.094395102

=RADIANS(A2)
Result: 1.570796327

=RADIANS(A3)
Result: 0.09424778

=RADIANS(54.6)
Result: 0.952949772
This Excel tutorial explains how to use the Excel PRODUCT function with syntax and examples.

Description

The Microsoft Excel PRODUCT function multiplies the numbers and returns the product.

Syntax

The syntax for the Microsoft Excel PRODUCT function is:
PRODUCT( number1, number2, ... number_n )

Parameters or Arguments

number1, number2, ... number_n are the numbers to multiply together. There can be up to 30 numbers entered.

Applies To

The PRODUCT function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The PRODUCT function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel PRODUCT function examples and explore how to use the PRODUCT function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel PRODUCT examples would return:
=PRODUCT(A1, A2)
Result: 12

=PRODUCT(A1, A2, A3)
Result: 54

=PRODUCT(A1, A2, A3, A4)
Result: -366.12

=PRODUCT(A1, A2, A3, A4, -2)
Result: 732.24
This Excel tutorial explains how to use the Excel POWER function with syntax and examples.

Description

The Microsoft Excel POWER function returns the result of a number raised to a given power.

Syntax

The syntax for the Microsoft Excel POWER function is:
POWER( number, power )

Parameters or Arguments

number is a base number.
power is the exponent used to raise the base number to.

Applies To

The POWER function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The POWER function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel POWER function examples and explore how to use the POWER function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel POWER examples would return:
=POWER(A1, A2)
Result: 81

=POWER(A1, A3)
Result: 140.2961154

=POWER(A2, 2)
Result: 16
This Excel tutorial explains how to use the Excel PI function with syntax and examples.

Description

The Microsoft Excel PI function returns the mathematical constant called pi, which is 3.14159265358979.

Syntax

The syntax for the Microsoft Excel PI function is:
PI( )

Parameters or Arguments

There are no parameters or arguments for the PI function.

Applies To

The PI function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The PI function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel PI function examples and explore how to use the PI function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel PI examples would return:
=PI()
Result: 3.141592654

=PI() * A1
Result: 59.69026042

=PI() / A2
Result: 0.184799568

=PI() + A3
Result: -9.858407346
This Excel tutorial explains how to use the Excel ODD function with syntax and examples.

Description

The Microsoft Excel ODD function rounds a number up to the nearest odd integer. If the number is negative, the number is rounded away from zero.

Syntax

The syntax for the Microsoft Excel ODD function is:
ODD( number )

Parameters or Arguments

number is a numeric value.

Applies To

The ODD function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The ODD function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel ODD function examples and explore how to use the ODD function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel ODD examples would return:
=ODD(A1)
Result: 211

=ODD(A2)
Result: 3

=ODD(A3)
Result: -3

=ODD(7)
Result: 7

=ODD(8)
Result: 9
This Excel tutorial explains how to use the Excel N function with syntax and examples.

Description

The Microsoft Excel N function converts a value to a number.

Syntax

The syntax for the Microsoft Excel N function is:
N( value )

Parameters or Arguments

value is a value to convert to a number.

Note

  • If value is a number, the N function returns a number.
  • If value is a date, the N function returns the date as a serial number.
  • If value is TRUE, the N function will return 1.
  • If value is FALSE, the N function will return 0.
  • If value is an error, the error value is returned.
  • For all other values, the N function will return 0.

Applies To

The N function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The N function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel N function examples and explore how to use the N function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel N examples would return:
=N(A1)
Result: 35

=N(A2)
Result: 0

=N(A3)
Result: 1

=N(A4)
Result: 0

=N(A5)
Result: #DIV/0!

=N(107)
Result: 107

=N(DATE(2012,8,16))
Result: 41137
This Excel tutorial explains how to use the Excel MOD function with syntax and examples.

Description

The Microsoft Excel MOD function returns the remainder after a number is divided by a divisor.

Syntax

The syntax for the Microsoft Excel MOD function is:
MOD( number, divisor )

Parameters or Arguments

number is a numeric value whose remainder you wish to find.
divisor is the number used to divide the number parameter. If the divisor is 0, then the MOD function will return the #DIV/0! error.

Applies To

The MOD function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The MOD function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel MOD function examples and explore how to use the MOD function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel MOD examples would return:
=MOD(A1, A2)
Result: 2

=MOD(A1, A3)
Result: -7

=MOD(34, A2)
Result: 0

=MOD(34, 0)
Result: #DIV/0!
This Excel tutorial explains how to use the Excel MMULT function with syntax and examples.

Description

The Microsoft Excel MMULT function returns the matrix product of two arrays.

Syntax

The syntax for the Microsoft Excel MMULT function is:
MMULT( array1, array2 )

Parameters or Arguments

array1is an array of numbers. array1 must have the same number of columns as the number of rows in array2.
array2is an array of numbers. array1 must have the same number of columns as the number of rows in array2.

Note

  • If any of the cells in the array contain empty or non-numeric values, the MMULT function will return the #VALUE! error.
  • If the array1 does not contain the same number of columns as the number of rows in array2, the MMULT function will return the #VALUE! error.

Applies To

The MMULT function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The MMULT function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel MMULT function examples and explore how to use the MMULT function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel MMULT examples would return:
=MMULT(A1:B2, A5:B6)
Result: 6.23

=MMULT(A1:C3, A5:C7)
Result: #VALUE!

=MMULT({1,2;3,4},{5,6;7,8})
Result: 19
This Excel tutorial explains how to use the Excel MINVERSE function with syntax and examples.

Description

The Microsoft Excel MINVERSE function returns the inverse matrix for a given matrix.

Syntax

The syntax for the Microsoft Excel MINVERSE function is:
MINVERSE( array )

Parameters or Arguments

array is an array of numbers. The array must have the same number of rows as the number of columns.

Note

  • If any of the cells in the array contain empty or non-numeric values, the MINVERSE function will return the #VALUE! error.
  • If the array does not contain the same number of rows as the number of columns, the MINVERSE function will return the #VALUE! error.

Applies To

The MINVERSE function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The MINVERSE function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel MINVERSE function examples and explore how to use the MINVERSE function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel MINVERSE examples would return:
=MINVERSE(A1:B2)
Result: 5.966850829

=MINVERSE(A1:C3)
Result: #VALUE!

=MINVERSE({1,2;3,4})
Result: -2

=MINVERSE({1,2,1;3,4,2;1,1,2})
Result: -2
This Excel tutorial explains how to use the Excel MINA function with syntax and examples.

Description

The Microsoft Excel MINA function returns the smallest value from the values provided. The MINA function compares numbers, text, and logical values (TRUE or FALSE).

Syntax

The syntax for the Microsoft Excel MINA function is:
MINA( value1, value2, ... value_n )

Parameters or Arguments

value1, value2, ... value_n are numbers, text representations of numbers, or logical values.numeric values. There can be up to 30 values entered.

Applies To

The MINA function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The MINA function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel MINA function examples and explore how to use the MINA function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel MINA examples would return:
=MINA(A2, A3)
Result: 0.23

=MINA(A2:A4)
Result: 0.23

=MINA(A2:A6)
Result: 0   (as TRUE evaluates to 1 and FALSE evaluates to 0)

=MINA(A2:A6, -35)
Result: -35

=MINA(A2, A3, -1.6)
Result: -1.6
This Excel tutorial explains how to use the Excel MIN function with syntax and examples.

Description

The Microsoft Excel MIN function returns the smallest value from the numbers provided.

Syntax

The syntax for the Microsoft Excel MIN function is:
MIN( number1, number2, ... number_n )

Parameters or Arguments

number1, number2, ... number_n are numeric values - they can be numbers, named ranges, arrays, or references to numbers. There can be up to 30 values entered.

Applies To

The MIN function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The MIN function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel MIN function examples and explore how to use the MIN function as a worksheet function in Microsoft Excel:

Based on the spreadsheet above, the following Excel MIN examples would return:
=MIN(A2, A3)
Result: 7.2

=MIN(A3, A5, -3)
Result: -3

=MIN(A2:A6)
Result: 5.4

=MIN(A2:A6, 3.6)
Result: 3.6
This Excel tutorial explains how to use the Excel MEDIAN function with syntax and examples.

Description

The Microsoft Excel MEDIAN function returns the median of the numbers provided.

Syntax

The syntax for the Microsoft Excel MEDIAN function is:
MEDIAN( number1, [number2, ... number_n] )

Parameters or Arguments

number1, number2, ... number_n are numeric values - they can be numbers, named ranges, arrays, or references to numbers. There can be up to 30 values entered.

Applies To

The MEDIAN function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The MEDIAN function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel MEDIAN function examples and explore how to use the MEDIAN function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel MEDIAN examples would return:
=MEDIAN(A2, A3)
Result: 8.85

=MEDIAN(A3, A5, 45)
Result: 7.2

=MEDIAN(A2:A6)
Result: 8.1

=MEDIAN(1, 3, 13, 14, 15)
Result: 13
This Excel tutorial explains how to use the Excel MDETERM function with syntax and examples.

Description

The Microsoft Excel MDETERM function returns the matrix determinant of an array.

Syntax

The syntax for the Microsoft Excel MDETERM function is:
MDETERM( array )

Parameters or Arguments

array is an array of numbers. The array must have the same number of rows as the number of columns.

Note

  • If any of the cells in the array contain empty or non-numeric values, the MDETERM function will return the #VALUE! error.
  • If the array does not contain the same number of rows as the number of columns, the MDETERM function will return the #VALUE! error.

Applies To

The MDETERM function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The MDETERM function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel MDETERM function examples and explore how to use the MDETERM function as a worksheet function in Microsoft Excel:

Based on the spreadsheet above, the following Excel MDETERM function will return the following:
=MDETERM(A1:B2)
Result: 1.81

=MDETERM(A1:C3)
Result: #VALUE!

=MDETERM({1,2;3,4})
Result: -2

=MDETERM({1,2,1;3,4,2;1,1,2})
Result: -3
This Excel tutorial explains how to use the Excel MAXA function with syntax and examples.

Description

The Microsoft Excel MAXA function returns the largest value from the values provided. The MAXA function compares numbers, text, and logical values (TRUE or FALSE).

Syntax

The syntax for the Microsoft Excel MAXA function is:
MAXA( value1, [value2, ... value_n] )

Parameters or Arguments

value1, value2, ... value_n are numbers, text representations of numbers, or logical values.numeric values. There can be up to 30 values entered.

Applies To

The MAXA function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The MAXA function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel MAXA function examples and explore how to use the MAXA function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel MAXA examples would return:
=MAXA(A2, A3)
Result: 0.5

=MAXA(A2:A4)
Result: 0.891

=MAXA(A2:A6)
Result: 1   (as TRUE evaluates to 1 and FALSE evaluates to 0)

=MAXA(A2, A3, 1.6)
Result: 1.6
This Excel tutorial explains how to use the Excel MAX function with syntax and examples.

Description

The Microsoft Excel MAX function returns the largest value from the numbers provided.

Syntax

The syntax for the Microsoft Excel MAX function is:
MAX( number1, [number2, ... number_n] )

Parameters or Arguments

number1, number2, ... number_n are numeric values - they can be numbers, named ranges, arrays, or references to numbers. There can be up to 30 values entered.

Applies To

The MAX function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The MAX function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel MAX function examples and explore how to use the MAX function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel MAX examples would return:
=MAX(A2, A3)
Result: 10.5

=MAX(A3, A5, 45)
Result: 45

=MAX(A2:A6)
Result: 200

=MAX(A2:A6, 325)
Result: 325
This Excel tutorial explains how to use the Excel LOG10 function with syntax and examples.

Description

The Microsoft Excel LOG10 function returns the base-10 logarithm of a number.

Syntax

The syntax for the Microsoft Excel LOG10 function is:
LOG10( number )

Parameters or Arguments

number is a numeric value that must be greater than 0.

Applies To

The LOG10 function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The LOG10 function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel LOG10 function examples and explore how to use the LOG10 function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel LOG10 examples would return:
=LOG10(A1)
Result: 1.301029996

=LOG10(A2)
Result: 1.397940009

=LOG10(A3)
Result: 2

=LOG10(200)
Result: 2.301029996
This Excel tutorial explains how to use the Excel LOG function with syntax and examples.

Description

The Microsoft Excel LOG function returns the logarithm of a number to a specified base.

Syntax

The syntax for the Microsoft Excel LOG function is:
LOG( number, [base] )

Parameters or Arguments

number is a numeric value that must be greater than 0.
base is optional. This is the base to use to calculate the logarithm of a number. If this parameter is omitted, the LOG function will use a base of 10.

Applies To

The LOG function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The LOG function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)
  • VBA function (VBA)

Example (as Worksheet Function)

Let's look at some Excel LOG function examples and explore how to use the LOG function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel LOG examples would return:
=LOG(A1)
Result: 1.301029996

=LOG(A1, 10)
Result: 1.301029996

=LOG(A1, A2)
Result: 0.930676558

=LOG(A2, 5.1)
Result: 1.975690972

=LOG(200, 3)
Result: 4.822736302
This Excel tutorial explains how to use the Excel LN function with syntax and examples.

Description

The Microsoft Excel LN function returns the natural logarithm of a number.

Syntax

The syntax for the Microsoft Excel LN function is:
LN( number )

Parameters or Arguments

number is a numeric value that must be greater than 0.

Applies To

The LN function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The LN function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel LN function examples and explore how to use the LN function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel LN examples would return:
=LN(A1)
Result: 2.995732274

=LN(A2)
Result: 3.218875825

=LN(A3)
Result: 4.605170186

=LN(200)
Result: 5.298317367
This Excel tutorial explains how to use the Excel LINEST function with syntax and examples.

Description

The Microsoft Excel LINEST function uses the least squares method to calculate the statistics for a straight line and returns an array describing that line. The LINEST function uses the following line equation:
y = mx + b                  (for a single range of x values)
y = m1x1 + m2x2 + ... + b   (for multiple ranges of x values)

Syntax

The syntax for the Microsoft Excel LINEST function is:
LINEST( y_values, [x_values], [constant], [additional_statistics] )

Parameters or Arguments

y_values is the known set of "y values" from the line equation.
x_values is the optional. It is the known set of "x values" from the line equation. If this parameter is omitted, x_values is assumed to be {1,2,3,...} with the same number of values as y_values.
constant is optional. It is either TRUE or FALSE. If this parameter is omitted, the function will assume TRUE. If constant is TRUE, b in the line equation is calculated normally. If constant is FALSE, b becomes 0 so that the line equation is evalulated as y = mx.
additional_statistics is optional. It is either TRUE or FALSE. If this parameter is omitted, the function will assume FALSE. If additional_statistics is TRUE, the function will return additional regression statistics. If additional_statistics is FALSE, the function will returns only m coefficients and b constant.

Applies To

The LINEST function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The LINEST function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel LINEST function examples and explore how to use the LINEST function as a worksheet function in Microsoft Excel:
This first example we have entered the y values in column A (cells A2 through A6) and the x values in column B (cells B2 through B6). Then we have entered the following LINEST function in both cells D2 and E2 as follows:
=LINEST(A2:A6,B2:B6,TRUE,FALSE)
The LINEST functions are written as array formulas. When creating your array formula, you need to do the following:
  1. Enter the formulas in both cells D2 and E2
  2. Highlight cells D2 and E2
  3. Press F2 (in Windows) or CONTROL-U (on Mac)
  4. Press Ctrl+Shift+Enter
This creates {} brackets around your formulas as follows:
{=LINEST(A2:A6,B2:B6,TRUE,FALSE)}
You can see how the formula look in the images below.
Microsoft Excel
Microsoft Excel
The value in cell D2 returns the slope of 0.5 and the value in cell E2 returns the y-intercept of 0.
This formula could also be written as follows (entering values instead of cell ranges):
=LINEST({2,3,5,7,10},{4,6,10,14,20},TRUE,FALSE)
The LINEST functions are written as array formulas. When creating your array formula, you need to do the following:
  1. Enter the formulas in both cells D2 and E2
  2. Highlight cells D2 and E2
  3. Press F2 (in Windows) or CONTROL-U (on Mac)
  4. Press Ctrl+Shift+Enter
This creates {} brackets around your formulas as follows:
{=LINEST({2,3,5,7,10},{4,6,10,14,20},TRUE,FALSE)}
Microsoft Excel
This Excel tutorial explains how to use the Excel LARGE function with syntax and examples.

Description

The Microsoft Excel LARGE function returns the nth largest value from a set of values.

Syntax

The syntax for the Microsoft Excel LARGE function is:
LARGE( array, nth_position )

Parameters or Arguments

array is a range or array from which you want to return the nth largest value.
nth_position is the position from the largest to return.

Note

  • If nth_position is larger than the number of values in array, the LARGE function will return the #NUM! error.
  • If array is empty, the LARGE function will return the #NUM! error.

Applies To

The LARGE function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The LARGE function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel LARGE function examples and explore how to use the LARGE function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel LARGE examples would return:
=LARGE(A1:A5, 1)
Result: 32

=LARGE(A1:A5, 2)
Result: 8

=LARGE(A1:A5, 3)
Result: 5.7

=LARGE(A1:A5, 4)
Result: 4

=LARGE(A1:A5, 5)
Result: -2.3

=LARGE({6, 23, 5, 2.3}, 2)
Result: 6
This Excel tutorial explains how to use the Excel INT function with syntax and examples.

Description

The Microsoft Excel INT function returns the integer portion of a number.

Syntax

The syntax for the Microsoft Excel INT function is:
INT( expression )

Parameters or Arguments

expression is a numeric expression whose integer portion is returned.

Note

  • If the expression is negative, the INT function will return the first negative number that is less than or equal to the expression.

Applies To

The INT function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The INT function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)
  • VBA function (VBA)

Example (as Worksheet Function)

Let's look at some Excel INT function examples and explore how to use the INT function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel INT examples would return:
=INT(A1)
Result: 210

=INT(A2)
Result: 2

=INT(A3)
Result: -3

=INT(-4.5)
Result: -5
This Excel tutorial explains how to use the Excel FREQUENCY function with syntax and examples.

Description

The Microsoft Excel FREQUENCY function returns how often values occur within a set of data. It returns a vertical array of numbers.

Syntax

The syntax for the Microsoft Excel FREQUENCY function is:
FREQUENCY( data, intervals )

Parameters or Arguments

data is an array or range of values for which to count the frequencies.
intervals is an array or range of intervals that yoiu want to group the values in data.

Applies To

The FREQUENCY function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003

Type of Excel Function

The FREQUENCY function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel FREQUENCY function examples and explore how to use the FREQUENCY function as a worksheet function in Microsoft Excel.
Let's start with some easy examples.
Microsoft Excel
Based on the spreadsheet above, the following Excel FREQUENCY examples would return:
=FREQUENCY(B2:B10,D2)
Result: 2

=FREQUENCY(B2:B10,D3)
Result: 3

=FREQUENCY(B2:B10,D4)
Result: 5

=FREQUENCY(B2:B10,D5)
Result: 7

=FREQUENCY(B2:B10,89)
Result: 7   (same as previous)
This Excel tutorial explains how to use the Excel FORMAT function (as it applies to numeric values) with syntax and examples.

Description

The Microsoft Excel FORMAT function takes a numeric expression and returns it as a formatted string.

Syntax

The syntax for the Microsoft Excel FORMAT function is:
Format ( expression, [ format ] )

Parameters or Arguments

expression is the value to format.
format is optional. It is the format to apply to the expression. You can either define your own format or use one of the named formats that Excel has predefined such as:
Format Explanation
General Number Displays a number without thousand separators.
Currency Displays thousand separators as well as two decimal places.
Fixed Displays at least one digit to the left of the decimal place and two digits to the right of the decimal place.
Standard Displays the thousand separators, at least one digit to the left of the decimal place, and two digits to the right of the decimal place.
Percent Displays a percent value - that is, a number multiplied by 100 with a percent sign. Displays two digits to the right of the decimal place.
Scientific Scientific notation.
Yes/No Displays No if the number is 0. Displays Yes if the number is not 0.
True/False Displays True if the number is 0. Displays False if the number is not 0.
On/Off Displays Off if the number is 0. Displays On is the number is not 0.

Applies To

The FORMAT function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The FORMAT function can be used in Microsoft Excel as the following type of function:
  • VBA function (VBA)

Example (as VBA Function)

The FORMAT function can only be used in VBA code in Microsoft Excel.
Let's look at some Excel FORMAT function examples and explore how to use the FORMAT function in Excel VBA code:
Format(210.6, "#,##0.00")
Result: '210.60'

Format(210.6, "Standard")
Result: '210.60'

Format(0.981, "Percent")
Result: '98.10%'

Format(1267.5, "Currency")
Result: '$1,267.50'
For example:
Dim LValue As String

LValue = Format(0.981, "Percent")
This Excel tutorial explains how to use the Excel FLOOR function with syntax and examples.

Description

The Microsoft Excel FLOOR function returns a number rounded down based on a multiple of significance.

Syntax

The syntax for the Microsoft Excel FLOOR function is:
FLOOR( number, significance )

Parameters or Arguments

number is the number that you wish to round down.
significance is the multiple of significance that you wish to round a number to.

Note

  • If the sign of the number and the significance parameters are different, the FLOOR function will return the #NUM! error.

Applies To

The FLOOR function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The FLOOR function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel FLOOR function examples and explore how to use the FLOOR function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel FLOOR examples would return:
=FLOOR(A1, 1)
Result: 169

=FLOOR(A1, 0.05)
Result: 169.65

=FLOOR(A2, 0.05)
Result: 169.6

=FLOOR(A3, 2)
Result: 2

=FLOOR(A4, 2)
Result: #NUM!

=FLOOR(-4.5, -1)
Result: -4
This Excel tutorial explains how to use the Excel FIX function with syntax and examples.

Description

The Microsoft Excel FIX function returns the integer portion of a number.

Syntax

The syntax for the Microsoft Excel FIX function is:
Fix( expression )

Parameters or Arguments

expression is a numeric expression whose integer portion is returned.

Note

  • If the expression is negative, the FIX function will return the first negative number that is greater than or equal to the expression.

Applies To

The FIX function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, xcel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The FIX function can be used in Microsoft Excel as the following type of function:
  • VBA function (VBA)

Example (as VBA Function)

The FIX function can only be used in VBA code in Microsoft Excel.
Let's look at some Excel FIX function examples and explore how to use the FIX function in Excel VBA code:
Fix(210.67)
Result: 210

Fix(2.98)
Result: 2

Fix(-2.98)
Result: -2
For example:
Dim LNumber As Double

LNumber = Fix(210.67)
This Excel tutorial explains how to use the Excel FACT function with syntax and examples.

Description

The Microsoft Excel FACT function returns the factorial of a number.

Syntax

The syntax for the Microsoft Excel FACT function is:
FACT( number )

Parameters or Arguments

number is a numeric value.

Applies To

The FACT function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The FACT function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel FACT function examples and explore how to use the FACT function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel FACT examples would return:
=FACT(A1)
Result: 6

=FACT(A2)
Result: 6

=FACT(A3)
Result: 1

=FACT(A4)
Result: #NUM!

=FACT(4)
Result: 24
This Excel tutorial explains how to use the Excel EXP function with syntax and examples.

Description

The Microsoft Excel EXP function returns e raised to the nth power, where e = 2.71828183.

Syntax

The syntax for the Microsoft Excel EXP function is:
EXP( number )

Parameters or Arguments

number is the power to raise e to.

Applies To

The EXP function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The EXP function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)
  • VBA function (VBA)

Example (as Worksheet Function)

Let's look at some Excel EXP function examples and explore how to use the EXP function as a worksheet function in Microsoft Excel:

Based on the spreadsheet above, the following Excel EXP examples would return:
=EXP(A1)
Result: 20.08553692

=EXP(A2)
Result: 22.19795128

=EXP(A3)
Result: 0.049787068

=EXP(-4.5)
Result: 0.011108997
This Excel tutorial explains how to use the Excel EVEN function with syntax and examples.

Description

The Microsoft Excel EVEN function rounds a number up to the nearest even integer. If the number is negative, the number is rounded away from zero.

Syntax

The syntax for the Microsoft Excel EVEN function is:
EVEN( number )

Parameters or Arguments

number is a numeric value.

Applies To

The EVEN function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The EVEN function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel EVEN function examples and explore how to use the EVEN function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel EVEN examples would return:
=EVEN(A1)
Result: 212

=EVEN(A2)
Result: 4

=EVEN(A3)
Result: -4

=EVEN(6121)
Result: 6122
This Excel tutorial explains how to use the Excel DEGREES function with syntax and examples.

Description

The Microsoft Excel DEGREES function converts radians into degrees.

Syntax

The syntax for the Microsoft Excel DEGREES function is:
DEGREES( radians )

Parameters or Arguments

radians is an angle in radians that you wish to convert to degrees.

Applies To

The DEGREES function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The DEGREES function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel DEGREES function examples and explore how to use the DEGREES function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel DEGREES examples would return:
=DEGREES(A1)
Result: 11.4591559

=DEGREES(A2)
Result: 20.05352283

=DEGREES(A3)
Result: -180.4817055

=DEGREES(2.11)
Result: 120.8940948

=DEGREES(Pi())
Result: 180
This Excel tutorial explains how to use the Excel COUNTIFS function with syntax and examples.

Description

The Microsoft Excel COUNTIFS function counts the number of cells in a range, that meets a single or multiple criteria.

Syntax

The syntax for the Microsoft Excel COUNTIFS function is:
COUNTIFS( criteria_range1, criteria1, [criteria_range2, criteria2, ... criteria_range_n, criteria_n] )

Parameters or Arguments

criteria_range1 is the range of cells that you want to apply criteria1 against.
criteria1 is used to determine which cells to count. criteria1 is applied against criteria_range1.
criteria_range2, ... criteria_range_n is optional. It is the range of cells that you want to apply criteria2, ... criteria_n against. There can be up to 127 ranges.
criteria2, ... criteria_n is optional. It is used to determine which cells to count. criteria2 is applied against criteria_range2, criteria3 is applied against criteria_range3, and so on. There can be up to 127 criteria.

Applies To

The COUNTIFS function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007

Type of Excel Function

The COUNTIFS function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel COUNTIFS function examples and explore how to use the COUNTIFS function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel COUNTIFS examples would return:
=COUNTIFS(A2:A9,"=2013")
Result: 4   (applies 1 criteria)

=COUNTIFS(A2:A9,"=2013",B2:B9,"=Oranges")
Result: 2   (applies 2 criteria)

=COUNTIFS(A2:A9,">=2009",B2:B9,"=Oranges", A2:A9,"<=2012")
Result: 1   (applies 3 critiera)

=COUNTIFS(A2:A9,">=2009",B2:B9,"=B*")
Result: 2   (Uses the * wildcard to match on all products that start with B)

=COUNTIFS(A2:A9,">=2009",B2:B9,"=B?nanas")
Result: 2   (Uses the ? wildcard to match on a single character, ie: Bananas, Benanas, Binanas, Bonanas, and so on)
This Excel tutorial explains how to use the Excel COUNTIF function with syntax and examples.

Description

The Microsoft Excel COUNTIF function counts the number of cells in a range, that meets a given criteria.
If you wish to apply multiple criteria, try using the COUNTIFS function.

Syntax

The syntax for the Microsoft Excel COUNTIF function is:
COUNTIF( range, criteria )

Parameters or Arguments

range is the range of cells that you want to count based on the criteria.
criteria is used to determine which cells to count.

Applies To

The COUNTIF function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The COUNTIF function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel COUNTIF function examples and explore how to use the COUNTIF function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel COUNTIF examples would return:
=COUNTIF(A2:A7, D2)
Result: 1

=COUNTIF(A:A, D2)
Result: 1

=COUNTIF(A2:A7, ">=2001")
Result: 4
This Excel tutorial explains how to use the Excel COUNTBLANK function with syntax and examples.

Description

The Microsoft Excel COUNTBLANK function counts the number of empty cells in a range.

Syntax

The syntax for the Microsoft Excel COUNTBLANK function is:
COUNTBLANK( range )

Parameters or Arguments

range is the range of cells to count empty cells.

Applies To

The COUNTBLANK function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The COUNTBLANK function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel COUNTBLANK function examples and explore how to use the COUNTBLANK function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel COUNTBLANK examples would return:
=COUNTBLANK(A1:A4)
Result: 1

=COUNTBLANK(A1:A6)
Result: 3

=COUNTBLANK(A1:B4)
Result: 3
This Excel tutorial explains how to use the Excel COUNTA function with syntax and examples.

Description

The Microsoft Excel COUNTA function counts the number of cells that are not empty as well as the number of arguments that contain values.

Syntax

The syntax for the Microsoft Excel COUNTA function is:
COUNTA( argument1, [argument2, ... argument_n] )

Parameters or Arguments

argument1, argument2, ... argument_n are either ranges of cells or values. There can be up to 30 arguments.

Applies To

The COUNTA function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The COUNTA function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel COUNTA function examples and explore how to use the COUNTA function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel COUNTA examples would return:
=COUNTA(A1:A6)
Result: 5

=COUNTA(A1:A6, 129)
Result: 6

=COUNTA(A1:A6, 129, "techonthenet")
Result: 7

=COUNTA(A1:A6, 129, "techonthenet", -2)
Result: 8
This Excel tutorial explains how to use the Excel COUNT function with syntax and examples.

Description

The Microsoft Excel COUNT function counts the number of cells that contain numbers as well as the number of arguments that contain numbers.

Syntax

The syntax for the Microsoft Excel COUNT function is:
COUNT( argument1, [argument2, ... argument_n] )

Parameters or Arguments

argument1, argument2, ... argument_n are either ranges of cells or values. There can be up to 30 arguments.

Applies To

The COUNT function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The COUNT function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel COUNT function examples and explore how to use the COUNT function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel COUNT examples would return:
=COUNT(A1:A6)
Result: 3

=COUNT(A1:A6, 129)
Result: 4

=COUNT(A1:A6, 129, "techonthenet")
Result: 4

=COUNT(A1:A6, 129, "techonthenet", -2)
Result: 5
This Excel tutorial explains how to use the Excel COSH function with syntax and examples.

Description

The Microsoft Excel COSH function returns the hyperbolic cosine of a number.

Syntax

The syntax for the Microsoft Excel COSH function is:
COSH( number )

Parameters or Arguments

number is any number.

Applies To

The COSH function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The COSH function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel COSH function examples and explore how to use the COSH function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel COSH examples would return:
=COSH(A1)
Result: 1.020066756

=COSH(A2)
Result: 1.061877819

=COSH(A3)
Result: 11.68945835

=COSH(2.11)
Result: 4.184739626
This Excel tutorial explains how to use the Excel COS function with syntax and examples.

Description

The Microsoft Excel COS function returns the cosine of an angle.

Syntax

The syntax for the Microsoft Excel COS function is:
COS( number )

Parameters or Arguments

number is a numeric value.

Applies To

The COS function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The COS function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)
  • VBA function (VBA)

Example (as Worksheet Function)

Let's look at some Excel COS function examples and explore how to use the COS function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel COS examples would return:
=COS(A1)
Result: 0.980066578

=COS(A2)
Result: 0.939372713

=COS(A3)
Result: -0.999964658

=COS(200)
Result: 0.487187675

Example (as VBA Function)

The COS function can also be used in VBA code in Microsoft Excel.
Let's look at some Excel COS function examples and explore how to use the COS function in Excel VBA code:
Dim LNumber As Double

LNumber = Cos(210)
This Excel tutorial explains how to use the Excel CONVERT function with syntax and examples.

Description

The Microsoft Excel CONVERT function will convert a number from one measurement unit to another measurement unit.

Syntax

The syntax for the Microsoft Excel CONVERT function is:
CONVERT( number, from_units, to_units )

Parameters or Arguments

number is the value to be converted (number is written in from_units).
from_units is the original units of measure for number. It can be one of the following values:
Value Measurement Unit Measurement Type
"m" Meter Length/Distance
"mi" Mile Length/Distance
"Nmi" Nautical mile Length/Distance
"in" Inch Length/Distance
"ft" Foot Length/Distance
"yd" Yard Length/Distance
"ang" Angstrom Length/Distance
"pica" Pica Length/Distance
"g" Gram Weight/Mass
"sg" Slug Weight/Mass
"lbm" Pound Weight/Mass
"u" Atomic unit Weight/Mass
"ozm" Ounce Weight/Mass
"yr" Year Time
"day" Day Time
"hr" Hour Time
"mn" Minute Time
"sec" Second Time
"C" or "cel" Celsius Temperature
"F" or "fah" Fahrenheit Temperature
"K" or "kel" Kelvin Temperature
"tsp" Teaspoon Liquid Volume
"tbs" Tablespoon Liquid Volume
"oz" Fluid ounce Liquid Volume
"cup" Cup Liquid Volume
"pt" or "us_pt" US pint Liquid Volume
"uk_pt" UK pint Liquid Volume
"qt" Quart Liquid Volume
"gal" Gallon Liquid Volume
"l" or "lt" Liter Liquid Volume
"N" Newton Force
"dyn" or "dy" Dyne Force
"lbf" Pound Force Force
"Pa" or "p" Pascal Pressure
"atm" Atmosphere Pressure
"mmHg" mm of Mercury Pressure
"HP" or "h" Horsepower Power
"W" or "w" Watt Power
"J" Joule Energy
"e" Erg Energy
"c" Thermodynamic calorie Energy
"cal" IT calorie Energy
"eV" or "ev" Electron volt Energy
"HPh" or "hh" Horsepower-hour Energy
"Wh" or "wh" Watt-hour Energy
"flb" Foot-pound Energy
"BTU" or "btu" BTU Energy
"T" Tesla Magnetism
"ga" Gauss Magnetism
to_units is the units of measure that you wish to convert number to.

Applies To

The CONVERT function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007

Type of Excel Function

The CONVERT function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel CONVERT function examples and explore how to use the CONVERT function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel CONVERT examples would return:
=CONVERT(A1,"in","ft")
Result: 2

=CONVERT(A2,"F","C")
Result: -15

=CONVERT(A3,"mn","sec")
Result: 120

=CONVERT(1,"mn","sec")
Result: 60
This Excel tutorial explains how to use the Excel COMPLEX function with syntax and examples.

Description

The Microsoft Excel COMPLEX function converts coefficients (real and imaginary) into a complex number. The complex number can be in either form, x + yi or x + yj.

Syntax

The syntax for the Microsoft Excel COMPLEX function is:
COMPLEX( real_coefficient, imaginary_coefficient, [suffix] )

Parameters or Arguments

real_coefficient is the real coefficient of the complex number.
imaginary_coefficient is the imaginary coefficient of the complex number.
suffix is optional. It is either "i" or "j" which is to represent the suffix for the imaginary component of the complex number. If suffix is omitted, the COMPLEX function assumes that suffix is "i".

Note

  • If real_coefficient is not a numeric value, the COMPLEX function will return a #VALUE! error.
  • If imaginary_coefficient is not a numeric value, the COMPLEX function will return a #VALUE! error.
  • If suffix is not either "i" or "j", the COMPLEX function will return a #VALUE! error.
  • If suffix is entered in uppercase (ie "I" or "J" instead of "i" or "j"), the COMPLEX function will return a #VALUE! error.

Applies To

The COMPLEX function can be used in the following versions of Microsoft Excel:
  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007

Type of Excel Function

The COMPLEX function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel COMPLEX function examples and explore how to use the COMPLEX function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the spreadsheet above, the following Excel COMPLEX examples would return:
=COMPLEX(A2,B2)
Result: 3+5i

=COMPLEX(A2,B2,"i")
Result: 3+5i

=COMPLEX(A2,B2,"j")
Result: 3+5j

=COMPLEX(A3,B3)
Result: 2+i

=COMPLEX(A3,B3,"i")
Result: 2+i

=COMPLEX(A3,B3,"j")
Result: 2+j
This Excel tutorial explains how to use the Excel COMBINA function with syntax and examples.

Description

The Microsoft Excel COMBINA function returns the number of combinations for a specified number of items and includes repetitions.

Syntax

The syntax for the Microsoft Excel COMBINA function is:
COMBINA( number, chosen )

Parameters or Arguments

number is the number of items represented as an integer. It can not be a negative value and it must be greater than or equal to chosen. If a non-integer value is entered for this parameter, the COMBINA function will truncate the value.
chosen is the number of items in a combination. It can not be a negative value. If a non-integer value is entered for this parameter, the COMBINA function will truncate the value.

Applies To

The COMBINA function can be used in the following versions of Microsoft Excel:
  • Excel 2013

Type of Excel Function

The COMBINA function can be used in Microsoft Excel as the following type of function:
  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel COMBINA function examples and explore how to use the COMBINA function as a worksheet function in Microsoft Excel:

Based on the spreadsheet above, the following Excel COMBINA examples would return:
=COMBINA(A1, A2)
Result: 2002

=COMBINA(A1, A3)
Result: 220

=COMBINA(21, 5)
Result: 53130

Total Pageviews

2016 © BiztechCS
Planer theme by BiztechCS