Find a range from xy coordinates