Check Required Fields Are Filled

Excel Formulas › Auditing & Error-Proofing

All versionsCOUNTBLANK

Before submitting a form or importing data, confirm every required cell is filled. COUNTBLANK counts the empties in a row, and a flag marks records that are incomplete.


Quick formula: is a record's required range complete?
=IF(COUNTBLANK(required_range) = 0, "Complete", "Missing fields")
Count blanks in the required cells; zero means the record is complete and ready.

Functions used (tap for the full reference guide):

The example

Email left blank → incomplete.

AB
1RecordStatus
2Row 5 (all filled)Complete
3Row 6 (no email)Missing fields

The formula

The formula:

=IF(COUNTBLANK(required_range) = 0, "Complete", "Missing fields") // no blanks = complete

How it works

How it works:

  1. COUNTBLANK(required_range) counts the empty cells among the required fields.
  2. Zero blanks → Complete; one or more → flag for follow-up.
  3. Show which are missing by counting per field, or by listing the blank headers.
  4. Beware: a cell holding "" (empty text from a formula) isn’t blank to COUNTBLANK in all cases — test with =A2="" if unsure.

Tell the user what’s missing, not just that something is. Beyond a Complete/Incomplete flag, list the gaps: =TEXTJOIN(", ", TRUE, IF(required_cells="", header_row, "")) (array) names every empty required field. A form that says “Missing: Email, Phone” gets fixed; one that just says “Incomplete” gets ignored.

Try it: interactive demo

Live demo

Required fields (leave some blank).

Status ·

Variations

Count missing

How many empty:

=COUNTBLANK(required_range)

List missing fields

Name the gaps (array):

=TEXTJOIN(", ", TRUE, IF(req_cells="", headers, ""))

All records complete?

Whole sheet:

=SUMPRODUCT(--(COUNTBLANK(...)>0))=0

Pitfalls & errors

Empty text vs blank. A formula returning "" may not count as blank — test with =A2="".

Spaces aren’t blank. A cell with a space is “filled” — TRIM-check if needed.

Define required. Point the range only at the cells that must be filled.

Practice workbook

📊
Download the free Check Required Fields Are Filled practice workbook
A required-fields sheet with the count, list-missing, and all-records variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I check required fields are filled in Excel?
Use =IF(COUNTBLANK(required_range)=0, "Complete", "Missing fields") on each record's required cells.
How do I list which fields are missing?
Array-enter =TEXTJOIN(", ", TRUE, IF(req_cells="", headers, "")) to name every empty required field.
Why does a blank-looking cell count as filled?
A formula returning "" or a cell with a space isn't truly empty. Test with =A2="" or TRIM.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Count blank cells · Default if blank · Check all cells filled

Function references: COUNTBLANKCOUNTA