Be the first user to complete this post

  • 0
Add to List

Excel- VBA/Formula Math Functions – Cos()

Description: 

The Cos function in MS excel returns the cosine angle of a number.

Format:

COS(number)

Arguments:
  • Number
    • Mandatory
    • Type: Number
    • Number for which cosine angle needs to be calculated


Example:

Function getCOS()

   Dim number1

   Dim number2

   number1 = 90

   number2 = 100

   MsgBox "The Cosine angles are " & Cos(number1) & " and " & Cos(number2)

End Function
Cos() - Function
Cos() - Function

Using COS() as Excel Formula

Cos Formula
Cos Formula