# How to Use Excel SEC Function?

Excel is a powerful tool that helps to perform various mathematical calculations on its spreadsheet. It offers built-in formulas and functions for performing mathematical operations. You can also use graphic tools, pivot tables, and a macro programming language called Visual Basic for Applications (VBA).

In this post, you will learn how to use Excel SEC Function in Office 365 with its syntax, explanation, and examples. Get an official version of MS Excel from the following link:

https://www.microsoft.com/en-in/microsoft-365/excel

## Explanation of SEC Function

• It is one of the built-in functions in Microsoft Excel.
• This function returns the Secant values (ratio) of the given (angle) radians.
• For example, RADIANS(0.785) returns the secant value as 1.41365

## Syntax

• Here, you will see the syntax of the SEC function.
• To apply this function on your spreadsheet, you have to select a cell and enter the formula in the following format.
• Once you enter the formula, just click on the button to get the result.

=SEC(number)

Argument Explanation

Number – The angle in radians to which you need to find the secant value.

Note: If the argument is a non-numeric value (letters and special characters) and then it returns #VALUE! Error.

## Examples

Let’s see an example to know how SEC Function works in the Excel spreadsheet.

• Initially, you have to open your Excel workbook on your PC and launch a worksheet that has data.
• For example, we have given the degree values in Column B, and their corresponding radians in Column C.
• Here, we will get the secant value of the given radians in Column E using the SEC function.
• Then, you have to enter the formula in the cell as shown below to get the result.
• After entering the formula, you need to click the button to get the output, as shown below. You can drag down the cell to fill the remaining cells.

## Input that Causes Error

• If the argument is a non-numeric value (letters and special characters) and then it returns #VALUE! Error.