ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   SIN , COS , TAN VALUES NOT CORRECT. (https://www.excelbanter.com/excel-worksheet-functions/212204-sin-cos-tan-values-not-correct.html)

HARSHAWARDHAN. S .SHASTRI[_2_]

SIN , COS , TAN VALUES NOT CORRECT.
 
I have one form in which I have added 2 text boxes. In text box 1 I am
putting angle values in degrees and in text box 2 I am looking for sin value
.. Which formula should
I write in change event of textbox1 so that i will get sin value.



Pete_UK

SIN , COS , TAN VALUES NOT CORRECT.
 
Don't forget that the trigonometrical functions in Excel expect angles
to be in radians - check it out in Excel Help.

Hope this helps.

Pete

On Dec 2, 2:19*pm, HARSHAWARDHAN. S .SHASTRI
wrote:
* I have one form in which I have added 2 text boxes. In text box 1 I am
putting angle values in degrees and in text box 2 I am looking for sin value
. Which formula should
*I write in change event of textbox1 so that i will get sin value.



Shane Devenshire[_2_]

SIN , COS , TAN VALUES NOT CORRECT.
 
Hi,

Use:
SIN(angle)
COS(angle)
TAN(angle)

All of these work in VBA as written above, however, they will fail if
written as

WorksheetFunction.Sin(angle)

or if the angle is in degrees not radians then convert to radians using

WorksheetFunction.Radians (22.5)

So your formulas might look like this

SIN(WorksheetFunction.Radians (22.5))

If this helps, please click the Yes button

Cheers,
Shane Devenshire


"HARSHAWARDHAN. S .SHASTRI" wrote:

I have one form in which I have added 2 text boxes. In text box 1 I am
putting angle values in degrees and in text box 2 I am looking for sin value
. Which formula should
I write in change event of textbox1 so that i will get sin value.




All times are GMT +1. The time now is 05:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com