Convert to range format