Hi all! I am trying to translate a formula I have been using in Excel to work in the Smartsheet environment. The use of this formula is to calculate the azimuth from one point to another by using the latitude between the points and the departure between the two points. This is the formula that works in Excel:
=IF(AND(C10=0,B10>0),"EAST",IF(AND(C10=0,B10<0),"West",IF(AND(C10>0,B10=0),"North",IF(AND(C10<0,B10=0),"South",IF(C10="","",IF(AND(C10>0,B10>0),DEGREES(ATAN(B10/C10)),IF(AND(C10<0,B10>0),90+ABS(DEGREES(ATAN(C10/B10))),IF(AND(C10<0,B10<0),180+DEGREES(ATAN(B10/C10)),IF(AND(C10>0,B10<0),270+ABS(DEGREES(ATAN(C10/B10))),"")))))))))
For my purposes, C10 = [Latitude]1 and B10 = [Departure]1 in Smartsheet world. I think my main issue is Smartsheet doesn't use ATAN and the formatting is a bit different overall. Any suggestions would be very helpful! Thanks in advance!