View Single Post
 
Old 04-25-2012, 12:38 PM
Jamal NUMAN Jamal NUMAN is offline Windows 7 64bit Office 2010 64bit
Expert
 
Join Date: Nov 2010
Posts: 615
Jamal NUMAN is on a distinguished road
Question

Quote:
Originally Posted by macropod View Post
Hi Jamal,

The underscore under the degree symbol is part of the font you're using. If you don't like it, use a different font.

When using the custom format, all you need to remember is that values in it must be multiplied by 24 to get the 'real' values and 'real' values must be divided by 24 for the custom format. Of course, when comparing the custom format values to a 'real' value, you can apply the conversion to either the custom format value or the 'real' value.

Instead of your IF formula, you can use:
=MOD(B3,15)*24 or =MOD(B3*24,180)
Many thanks Paul for the prompt answers
I couldn’t figure out how the MOD can replace the entire if statement
Then if statement says:
If C3> 180˚, then H3=C3-180˚
If C3<180˚, then H3=C3+180˚
Then how these two equations can be combined in one single MOD function?
I followed your valuable notes regarding multiplying and dividing by 24 and it works very well.
A screenshot and xlsx file are attached.
Best
Jamal
Attached Images
File Type: jpg Clip_891.jpg (110.7 KB, 61 views)
Attached Files
File Type: xlsx Angles.xlsx (11.1 KB, 30 views)
Reply With Quote