Light takes 93 years to travel from that star to Earth. That means it's a very long way away, since light travels at 186,000 miles per second (300,000 km per second).
I think you mean the Omega nebula. That's estimated to be about 5000 to 6000 light years away from Earth.
if by lights you mean light years, no planet in our solar system is that far away, however, the closest star, aside from our sun, is about 4.2 light-years away Proxima Centauri.
Probably you mean Alpha Centauri. That star is about 4.4 light years away.
I assume you really mean Zubenelgenubi (alpha librae) in which case it's about 77.2 light years away.
Do you mean light years? well its 4.26 light years away
Which star do you mean? Sol, commonly called the Sun is 93 million miles away from earth. The next nearest, Proxima Centauri in the Alpha Centuri system is 4.2 light years away.
They are so far away that the light they emit takes many years to get here. Distances that large are measured in light years. A light year is the distance that light travels in one mean earth year.
The sun is the closest star to the earth. All the other stars are MUCH too far away to give any heat and light. The second nearest star is bout 400 light years away. (Light years mean the distance you travel at the speed of light, which is WAY too fast. Even humans haven't created anything that travels at the speed of light.)
If you mean the star Kepler-11, it is at a distance of about 2000 light-years.
This question is many years from being answered, if indeed it can ever be answered, given your parameters. "Earth-like planet". This would mean roughly the same size as the earth, besides having atmosphere, etc. "Located light years away". It is all we can do to detect if a star light years away has an accretion disc or a Jupiter-sized planet orbiting it. An earth-sized planet, in the so-called "Goldilocks" zone around a star at a distance of several light years? Impossible.Inference of such a thing would be the best we could do. Reaching the point where we can say that "There is an earth-like planet in the Goldilocks zone around Beta Zaptoris at a distance of 27 light years from earth"? That will be many, many years yet, if ever. We can already do this with some very large planets (or planet-like bodies) in a few cases, but that is the extreme edge of astronomy at the moment.
Andromeda Galaxy is 2.52±0.14 million light-years from Earth.
I assume you mean M31, the Andromeda Galaxy. It is approximately 2.5 million light-years from us; that means that it takes light 2.5 million years to travel from there to here (or from here to there).