By: Shamima Sultana

In reply to xu.

Hello Xu,

Office 2019 itself is fine—the mismatch in Northing usually comes from regional settings or input format. Please try:

Decimal separators: Go to File → Options → Advanced → uncheck Use system separators → set Decimal to . and Thousands to , (or keep your system separators and use the locale-safe VBA tip below).

Convert text to numbers: Select your Lat/Long → Data → Text to Columns → Finish. Remove degree symbols or spaces.

Radians: Ensure the formulas/VBA convert degrees to radians (e.g., RADIANS(latitude) or lat * WorksheetFunction.Pi / 180).

Zone/Hemisphere: Pick the correct UTM zone (China is typically 48–50 N) and “Northern Hemisphere” (no 10,000,000 m offset).

If you prefer VBA to auto-handle locales, wrap inputs with:

Function ToDbl(v As Variant) As Double
Dim dec As String: dec = Application.International(xlDecimalSeparator)
Dim s As String: s = CStr(v)
If dec = "," Then s = Replace(s, ".", ",")
ToDbl = CDbl(s)
End Function

Then use ToDbl(Lat) / ToDbl(Lon) inside the UTM routine.