Function Problems

How to Automatically Display 'Record Not Clean' for Missing Phone Numbers in Spreadsheets

Maira MehtabMaira Mehtab Nov 10, 2026 869 views

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.

How to Automatically Flag Missing Phone Numbers as 'Record Not Clean' in Spreadsheets
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 you start

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.

Solution 1Recommended

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.

1
Select the target cell

Click on the first cell in the column where you want the validation result to appear, such as cell H1.

2
Enter the IF and ISNUMBER formula

Type the formula =IF(ISNUMBER(G1), "", "Record Not Clean") into the formula bar and press Enter.

3
Apply the formula to the entire column

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 the IF and ISNUMBER Functions for Purely Numeric Phone Numbers
Data Formatting Consideration: This method assumes phone numbers do not contain hyphens or spaces. If they do, the spreadsheet treats them as text, and this formula will incorrectly flag valid numbers as 'Record Not Clean'.
Efficient Data Validation with WPS Spreadsheet

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. 1. Open your dataset: Launch WPS Spreadsheet and open your contact or database file.
  2. 2. Input the validation formula: In the adjacent column (e.g., column H), enter the =IF(ISNUMBER(G1), "", "Record Not Clean") formula.
  3. 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.
100% compatible with Microsoft Excel formulas and functionsBuilt-in advanced data validation rules for error-free data entryLightweight application with fast processing for large databasesFamiliar user interface requiring no learning curve
microsoft office alternative - wps office

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.