Trigonometry & Math functiona in Excel

G

Guest

A29=(C10-C37)/2*(TAN(RADIANS(B27)))
C10=12.5 feet
B27=55 degrees
C37=0.9 feet
answer=8.283 feet (Correct result)
The above formula works.

Why the formula below does not work? Does not give the correct result.
A29=(C10-(C37*0.0833)/2*(TAN(RADIANS(B27))))
I am simply changing C37 from decimal of feet into inches
Can someone help with this dilemma please?
Many thanks in advance.
Serge
 
B

Bernard Liengme

It all in the parentheses!
This A29=(C10-C37)/2*(TAN(RADIANS(B27)))
could be coded as
A29=(C10-C37)/2*TAN(RADIANS(B27))

But this A29=(C10-(C37*0.0833)/2*(TAN(RADIANS(B27))))
should be A29=(C10-(C37*0.0833))/2*(TAN(RADIANS(B27)))
or A29=(C10-(C37*0.0833))/2*TAN(RADIANS(B27))

best wishes
 
G

Guest

A29=(C10-C37)/2*(TAN(RADIANS(B27)))
C10=12.5 feet
B27=55 degrees
C37=0.9 feet
answer=8.283 feet (Correct result)
The above formula works.

Why the formula below does not work? Does not give the correct result.
A29=(C10-(C37*0.0833)/2*(TAN(RADIANS(B27))))
I am simply changing C37 to 10.8 inches to decimal of feet.
Can someone help with this dilemma please?
Many thanks in advance.
Serge
 
R

renegan

Bernard is right about parantheses but there is still an error on your
formula. by multiplying C37 with 0.08333333 you don't turn it into
inches, actually you don't turn it into anything. You should multiply
with 12 to turn it into inches which won't work either since you cannot
subtract inches from feet. I am not sure what you are trying to do by
doing that multiplication on C37 but if you want to get result in
inches, just multiply your result from your previous formula by 12.
 
G

Guest

Hello Renegan,
You are correct, It was too late when I click 'Post" when I realized I made
a mistake in my explanation.
But It's all working fine now.

Thank you for your input.
Serge
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Trigonometry in Excel 7
Trigonometry in Excel 5
Help: Javascript to Excel VBA? 3

Top