Thanks you so much for all your answers, I really appreciate that you used your time on answering me.
IDS: I took data into excel and it was much easier than Fortran, and I got some plots out after some manipulating, but my input file will get renewed often, so in the long run, it is better...
How to do find and replace in Fortran or ideas for a different way of solving the problem
BACKGROUND
I am reading in a column of asteroid diameters from a file, some of the asteroids are however not spherical but can be e.g. potato shaped, and then instead of a diameter I get something like...