A couple of thoughts....
Yes, any Arduino that uses an ATMega328, including the Nano, has a Vref pin (0-5V). They also have an internal Vref and, if you don't specify, they will use the Vin pin (see
here).
If you are using a voltage divider to go from 0-24v to 0-5v, 1% resistors (E96 range) offer an advantage of more choices relative to 5% or 10%
Using an Arduino, you want the impedance of the signal into the converter within a 2k-10k range (see the ATMega328 data sheet which I am to lazy to go link and am going on memory which may or may not be completely accurate).
Use an op-amp (with a 5v nano, a rail-to-rail 5v op amp like the MCP601 will work as will many others) in a unity-gain configuration so you don't need to worry too much about the impedance matching.
So, you go to your friendly neighborhood calculator - like
this one. Plug in your values and you can use 5230 for R1 and 1370 for R2 or a multiple, to reduce current draw, keeping the ratio (of course you want to verify the values with your meter). At the bottom of the page you will see the op-amp buffer already drawn out for you. 0-24V to 0-4.98V, Easy Peasy. So close to the Vin you may be ok with the accuracy as is and not bother with trying to duplicate the high range (the 4.98V) and using it for Vref.