- How can I list every formula used in a column of my maintenance log?
- Enter =FORMULATEXT(A2) in a helper column next to the original data and copy it down. Each row will show the exact formula from column A, or #N/A if the cell holds a constant. Wrap the column in IFERROR to hide the error messages for non-formula cells.
- Why does FORMULATEXT give me #N/A for some of the cost cells?
- Because those cost cells (e.g., D2, D3, D4) contain static numbers, not formulas. FORMULATEXT only works on cells that have an underlying formula. To avoid the #N/A, either reference only formula cells or use IFERROR to replace the error with a friendly message such as "No formula".
- Can FORMULATEXT retrieve the text of an array formula or a spilled range?
- Yes, if the array formula resides in a single top-left cell, FORMULATEXT will return the array expression (e.g., =FILTER(A2:A10, B2:B10>0)). However, if you try to reference the entire spilled range, Excel will raise #VALUE! because the function expects a single cell, not a multi-cell array.
- Is FORMULATEXT available in Google Sheets and does it behave the same as in Excel?
- Google Sheets supports FORMULATEXT with identical syntax and most of the same error conditions. It returns the formula string for a given cell, produces #N/A when the cell has no formula, and #REF! for invalid references. The only notable difference is that Google Sheets does not generate a #VALUE! error for a multi-cell range; instead it returns the formula from the top-left cell of the range.