Fix Excel Formula Errors When Adding New Database Rows
Question details
A complex text-manipulation formula fails and returns an error when a new client row is added to a shared Excel database.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Adding a new client record into an existing shared Excel database table.
- Observed behavior
- A formula using TRIM, MID, LEFT, FIND, and LEN functions fails for the newly inserted row in the Communication column.
Verify that you have editing permissions for the shared Excel database and check whether the newly added row's source data cells are completely empty or missing required characters.
Use IFERROR to Handle Missing Data in Text Formulas
Wrap your existing text-extraction formula in an IFERROR function to handle cases where the referenced cell is blank or missing expected characters.
Text functions like FIND will return an error (such as #VALUE!) if the character they are searching for (like a slash '/') is not present in the referenced cell. This frequently happens in new database rows because the data has not been fully entered yet.
Click on the cell in the database column that is currently displaying the formula error.
Click into the formula bar at the top of the screen. Add =IFERROR( right after the equals sign.
Go to the very end of your existing formula and type , "") to output a blank cell when an error occurs.
Your formula should now look similar to =IFERROR(TRIM(MID(LEFT([@Communication],16),FIND("/",[@Communication])-1,LEN([@Communication]))),""). Press Enter to save.
Drag the fill handle at the bottom right of the cell to apply the updated formula to all rows in the database table.

Check Data Formatting and Table Structure
Verify that the specific required character exists in the source data and ensure that shared table columns have not been altered.
Manage Database Formulas Seamlessly with WPS Spreadsheet
WPS Office provides robust formula handling, dynamic table management, and shared workbook features, making it easy to manage large databases without unexpected errors.
- 1. Open the database: Launch WPS Spreadsheet and open your shared database file.
- 2. Locate the error: Select the cell containing the text function error in the new row.
- 3. Apply IFERROR: Click the formula bar, use the built-in IFERROR function to wrap your existing text formula, and add an empty string return for errors.
- 4. Update the table: Press Enter to apply the change, and double-click the fill handle to seamlessly update the entire database column.

Frequently Asked Questions
Why does the FIND function return a #VALUE! error?
The FIND function returns a #VALUE! error when it cannot locate the specific text or character (such as a slash or space) within the referenced cell. This frequently occurs when the target cell is blank, which is common in newly added database rows.
How can I stop Excel formulas from calculating on completely blank rows?
You can wrap your formula in an IF statement to check if the source cell is empty first. For example, using =IF([@Communication]="", "", Your_Formula) will prevent the complex formula from running on empty rows.
Can shared workbook users break my structured table references?
Yes. If a user renames a column header or deletes a column in a formatted Excel Table, any formula using structured references (like [@Communication]) may break and display a #REF! or #NAME? error.




