Dynamic voltage divider
Calculate the resistor divider for the highest voltage possible. If your ADC has, let's say 12 bits, you'll be only missing 1 bit if the voltage is half the max case or 2 bits if the voltage is a quarter of the max case. Hopefully the remaining bits will be enough to do what you want.