How to Automatically Display 'Record Not Clean' for Missing Phone Numbers in Spreadsheets
Question details
The user needs a formula to automatically display 'Record Not Clean' in a column when the adjacent cell does not contain a valid phone number.

- Product
- Spreadsheets
- Device & OS
- not provided
- Scenario
- Validating data entry for phone numbers to ensure database cleanliness.
- Observed behavior
- Requires a function to check column G and output a specific error text in column H if the phone number is missing or invalid.
Before applying these formulas, verify whether your phone numbers are stored as plain text (e.g., containing spaces or hyphens) or pure numeric values, as this determines which formula will work best for your dataset.
Use the IF and ISNUMBER Functions for Purely Numeric Phone Numbers
Best for datasets where phone numbers are stored strictly as continuous numeric values without dashes, spaces, or special characters.
This approach uses the ISNUMBER function to check if the cell contains a valid number. If it does, the formula returns a blank space; if it is empty or contains text, it flags the record.
Click on the first cell in the column where you want the validation result to appear, such as cell H1.
Type the formula =IF(ISNUMBER(G1), "", "Record Not Clean") into the formula bar and press Enter.
Hover over the bottom-right corner of cell H1 until the fill handle appears, then drag it down to apply the validation to all rows in your dataset.

Use Regular Expressions for Strict Length and Text Validation
Ideal for ensuring the phone numbers strictly match specific digit lengths (like 7 or 10 digits), regardless of whether they are formatted as text.
Easily Validate Data and Clean Records in WPS Office
WPS Spreadsheet provides powerful data validation tools and fully supports standard Microsoft Excel formulas like IF and ISNUMBER, helping you clean and manage your datasets effortlessly.
- 1. Open your dataset: Launch WPS Spreadsheet and open your contact or database file.
- 2. Input the validation formula: In the adjacent column (e.g., column H), enter the =IF(ISNUMBER(G1), "", "Record Not Clean") formula.
- 3. Fill the column: Double-click the fill handle in the bottom-right corner of the cell to automatically validate all phone numbers in your sheet.

Frequently Asked Questions
How do I ignore empty cells so they aren't marked as 'Record Not Clean'?
You can nest another IF statement to check for blank cells using the ISBLANK function. Use this formula: =IF(ISBLANK(G1), "", IF(ISNUMBER(G1), "", "Record Not Clean")).
What if my phone numbers contain dashes, like 555-1234?
If numbers include dashes, the ISNUMBER function will fail because the data is formatted as text. You can use the LEN function to check the character count instead, such as =IF(LEN(G1)>=8, "", "Record Not Clean"), or use Data Validation rules.
Can I automatically highlight the 'Record Not Clean' cells in red?
Yes, you can use Conditional Formatting. Select your validation column, navigate to Conditional Formatting > Highlight Cells Rules > Equal To, type 'Record Not Clean', and select a red fill color.




