SEC function: Description, Usage, Syntax, Examples and Explanation
What is SEC function in Excel?
SEC function is one of the Math and Trig functions in Microsoft Excel that returns the secant of an angle.
Syntax of SEC function
The SEC function syntax has the following arguments.
Number: Number is the angle in radians for which you want the secant.
SEC formula explanation
- The absolute value of number must be less than 2^27.
- If the angle is in degrees, either multiply the angle by PI()/180 or use the RADIANS function to covert the angle to radians.
- If number is outside of its constraints, SEC returns the #NUM! error value.
- If number is a non-numeric value, SEC returns the #VALUE! error values.
Example of SEC function
Steps to follow:
1. Open a new Excel worksheet.
2. Copy data in the following table below and paste it in cell A1
Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.
You can adjust the column widths to see all the data, if need be.
|=SEC(45)||Returns the secant of a 45 degree angle.||1.90359|
|=SEC(30)||Returns the secant of a 30 degree angle.||6.48292|