Formula Analysis¶
Extract and analyze Excel formulas.
Formula parsing and analysis utilities for spreadsheets.
- class sheetwise.formula_parser.FormulaTokenizer[source]¶
Helper class to tokenize Excel formulas safely.
- class sheetwise.formula_parser.FormulaParser[source]¶
Extracts, analyzes and simplifies Excel formulas from spreadsheets. Optimized for memory usage with streaming reads.
- CELL_REF_PATTERN = re.compile('([A-Z]+[0-9]+|[A-Z]+\\:[A-Z]+|[0-9]+\\:[0-9]+|[A-Z]+[0-9]+\\:[A-Z]+[0-9]+)')¶
- extract_formulas(excel_path, sheet_name=None)[source]¶
Extract all formulas from an Excel file using Memory-Efficient Streaming.
- simplify_formula(formula)[source]¶
Generate a simplified explanation using robust tokenization. Handles nested functions better than Regex.
- Return type: