Excel SIN Function
The Excel SIN function returns trigonometric sine of an angle (angle should be in radians).
The SIN function is a built-in function in Excel that is categorized as a Math/Trig Function. It can be used as a worksheet function and a VBA function in Excel. As a worksheet function, the SIN function can be used as part of a formula in a worksheet cell. While as a VBA function, this function can be used in a Excel macro code. The Excel macro code can be created using the Microsoft Visual Basic Editor.
Syntax
SIN(number)
Parameters
number |
Required. Specify the angle in radian. |
Return Value
Returns the trigonometric sine of an angle.
Notes
- If the argument is in degrees, multiply it by PI()/180 or use the RADIANS function to convert it to radians.
- If the argument is a non-numeric value, SIN returns #VALUE! error.
- If the argument is outside its constraints, SIN returns #NUM! error.
Example: Using as Worksheet Function
The example below shows how to use the SIN function as worksheet function.
Based on the Excel spreadsheet above, the output of the following worksheet formula will be:
=SIN(D5) Result: 0 =SIN(D6) Result: 0.500 =SIN(D7) Result: 0.707 =SIN(D8) Result: 0.866 =SIN(D9) Result: 0.966 =SIN(D10) Result: 1
Example: Using angles in Degrees
To supply an angle to SIN function in degrees, the angle can be multiplied by PI()/180. Alternatively, the angle expressed in degrees can be used in the SIN function by converting it into radians using RADIANS function. For example, to get the SIN of 30 degrees, the following formula can be used:
=SIN(30 * PI()/180) Result: 0.5 =SIN(RADIANS(30)) Result: 0.5
Example: Using as VBA Function
The SIN function can also be used in VBA code in Microsoft Excel. Consider the example below:
Dim FValue As Double FValue = Sin(1)
In this example, the variable called FValue will contain the value of 0.841470984807897.
❮ Excel Functions