Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Contact us
Hide Buttons

VBA-Excel: Math Functions – Atn()

Description: 

The Atn func­tion in MS excel returns the arc­t­an­gent of a number.

Format:

Atn(num­ber)

Arguments:
  • Num­ber
    • Manda­tory
    • Type: Num­ber
    • Num­ber for which arc­t­an­gent needs to be calculated

Function getATN()

   Dim number1

   Dim number2

   number1 = -15

   number2 = 20

   MsgBox "The Arctangent values are " & Atn(number1) & " and " & Atn(number2)

End Function
Atn()

Atn()

 

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: