By: Bhubon Costa

In reply to Justin Matthews.

Greetings Justin,
#VALUE error occurs when the function doesn’t find any recognized source value. It might have occurred if the degree values were not in degree formats. Follow the steps below to convert the value into degree format first and then apply the function Convert_to_Decimal with our VBA.

Step 1:
Add a degree (°) symbol after a number with a keyboard shortcut.

Alt + 0176

(Example: 32°).

Step 2:
Add a minute (‘) symbol after the minute’s value with the apostrophe (‘) key from the keyboard (Example: 16’).

Step 3:
Add a second (“) symbol after the second’s value by pressing

SHIFT + Apostrophe (')

(Example: 48″)

Step 4:
Your degree format will show like (32°16’48”).
Finally, apply the Convert_to_Decimal function to the degree value.

Hope this will work with your issue. You can also mail us the Excel file. We will provide the Excel file with the required solution. Please give us your further feedback.