The invention discloses a
data recovery method,
electronic equipment, a computer readable storage medium and a
computer program product, and relates to the technical field of
data processing. The method comprises the following steps: generating recording rule information related to an Excel document
recording format; the
record rule information at least comprises data validity
verification rules corresponding to different
record types and is used for identifying valid records; performing global scanning on the to-be-recovered Excel document, and in the global scanning process of the to-be-recovered Excel document, performing validity
verification on a document fragment based on the
record rule information every time the document fragment with a preset length is scanned; and when the document fragment is an effective record, calling a predefined
processing interface to output the document fragment. According to the method and the device, the problems of incomplete recorded information and low accuracy in related technologies can be solved, and on the basis of ensuring the
data accuracy, the Excel document content is restored to the greatest extent.