Use the right value for range based on prompt