How to Search Excel Workbooks for Function Names and Formulas
Question details
The user needs to find specific function names or formula calls across multiple closed Excel workbooks, which is a capability not reliably supported by native Excel or Windows File Explorer.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Auditing a directory of Excel files to identify which workbooks use a specific custom add-in function before updating or changing its syntax.
- Observed behavior
- Excel normally restricts search functionality to the currently open workbook, and Windows File Explorer does not consistently search inside the formula content of closed XLSX or XLSM files.
Gather all the Excel workbooks (.xlsx, .xlsm) you want to search into a single main folder or directory to make the bulk scanning process faster and more targeted.
Use Agent Ransack to Search Closed Excel Files
Agent Ransack is a powerful file-content search utility that can look directly inside the XML structure of closed XLSX and XLSM files to find specific formula text.
Modern Excel files (XLSX and XLSM) are essentially compressed archives containing XML files. Because function names and formulas are stored as plain text within these XML files, third-party text search tools can read them without needing to open Microsoft Excel.
By using Agent Ransack, you can search entire directories of closed workbooks to locate where specific functions are being called.
Visit the official Mythicsoft website to download Agent Ransack and install it on your Windows computer.
Launch Agent Ransack. In the 'Look in' field, browse and select the specific folder that contains the Excel workbooks you want to audit.
In the 'Containing text' field, type the name of the function you are looking for. For example, type 'fmttime(' if you are searching for a custom format time function.
Click the 'Start' button. The tool will parse the underlying XML of the closed Office files and present a list of workbooks that contain the specified formula.

Edit and Audit Formulas Seamlessly with WPS Office
While bulk searching closed files requires third-party utilities, managing, editing, and auditing complex formulas within your spreadsheets is effortless with WPS Office. It provides a highly compatible, lightweight, and free alternative to Microsoft Excel.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file you wish to search.
- 2. Access the Find tool: Press Ctrl + F to open the Find and Replace dialog.
- 3. Set search parameters: Click 'Options', then change the 'Look in' dropdown to 'Formulas'.
- 4. Locate functions: Enter your function name and click 'Find All' to see every instance across the active sheet or workbook.

Frequently Asked Questions
Can Windows File Explorer search inside Excel formulas?
Generally, no. While Windows File Explorer can search standard cell text if the proper Office iFilter is installed, it does not reliably search the underlying formula content or custom function names stored in the XML structure of closed Excel files.
How can I search for formulas across all sheets in a single open workbook?
Open your workbook and press Ctrl + F to open the Find dialog. Click 'Options' (or 'More'), change the 'Within' dropdown from 'Sheet' to 'Workbook', and ensure the 'Look in' dropdown is set to 'Formulas'. Type your function name and click 'Find All'.
Why are function names stored in XML format in modern Excel files?
Since the introduction of the Office Open XML format (OOXML), modern Excel files (.xlsx, .xlsm) are structured as zipped archives of XML files. This open standard stores structural data, cell values, and formulas in plain XML code, which allows external text parsers to read the raw contents without launching Excel.




