If you’re going to calculate distances between two geological locations, then you want to calculate Great Circle distances, as that will be the shortest path at the surface of the planet.
A straight line distance might require tunneling down into the planet a surprising amount of distance, and is an absolute lower bound on the possible distance between the two points, but is not a realistic distance that could actually be achieved in most cases.
but I kept getting some "#NAME" error and I don't have time to figure it out.
Bad UX, Google. This should have been easy.
Better yet, you're freaking Google, why isn't there a DISTANCE("Hong Kong", "Singapore", "straightline") function?
I have to get back to work but if someone can figure the rest of this out please comment back.