When a person, indicted for an offense, is acquitted of a part by verdict of the jury and found guilty of the residue thereof, such verdict may be received and recorded by the court. He may be considered as convicted of the offense, if any, which is substantially charged by such residue, and be punished accordingly, although such offense would not otherwise be within the jurisdiction of said court.