If from the evidence it appears that the land upon which the execution has been levied can be divided without material injury, the court shall, by an order, set off to the claimant so much of the land, including the residence, not exceeding the quantity prescribed in section 40-101, as will amount in value to the homestead exemption, and the execution may be enforced against the remainder of the land, except that if the residence and the ground on which it is situated, with five acres surrounding the same, amount in value to more than the homestead exemption, other lands may be selected on which no building or residence stands as the homestead for the debtor and his or her family.