Although a lot of people list Andromeda as our closest neighbouring Galaxy, they are in fact, incorrect. Although it is a Dwarf Galaxy, Canis Major, with about 1 Billion stars; is actually our closest neighbour at 25,000 light years.
1 Light Year = 5,878,625,373,183.61 Miles
25,000 light years = 146,965,634,329,590,200 Miles, that's over 146 Quadrillion miles.
If you want to say Andromeda as it is a Major Galaxy its is 2.5 million light years away. 14,696,563,432,959,020,000 miles, I think that is called 14 Quintillion miles.
For further details check Check the related and source links below.
At its closest point, Uranus is 1,607,000,000 miles from Earth.
The Andromeda galaxy is approximately 2.537 million light-years away from Earth. In miles, this distance is approximately 14,800,000,000,000,000,000 miles.
Mars, like Earth, is in the Milky Way galaxy. The next nearest galaxy is the Andromeda galaxy, which is about 14,696,575,000,000,000,000 miles away.
The closest irregular galaxy to us is the Large Magellanic Cloud, which is located around 163,000 light-years away from Earth. It is a satellite galaxy of the Milky Way and can be seen with the naked eye from the southern hemisphere.
About 2.5 million light years from Earth, but since the Earth and Sun are only 8 light minutes apart, there isn't that much of a difference in how far the Andromeda Galaxy is from the Sun or Earth. So the Andromeda Galaxy is about 2.5 million light years from the Sun and Earth.
As the closest star to our sun, Proxima Centauri is in our galaxy.
Mercury is closest to the Sun at an average of about 36 million miles (about 39 percent of Earth's distance).
It is the Canis major dwarf galaxy. It is 25,000 light years away from the sun.
Earth's closest neighboring star is the sun; about 93 million miles away.
Far
Mercury is 0.5167 AU from Earth. AU stands for astronomical unit. Mercury is 48,000,000 miles from Earth at its closest approach.
The Andromeda Galaxy is the closest large galaxy to us and is approximately 2.5 million light years away! The Sagittarius Dwarf Elliptical Galaxy is the closest galaxy of any size that we know of. It's about 70,000 light years from Earth, or about 50,000 light years from the galactic center, and orbits the Milky Way.