Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • What-If Analysis: Scenarios and Goal Seek in Excel
  • Number and Text Filters Examples in Excel
  • How to Sort by Color in Excel
  • How to create running total in an Excel Table
  • How to Use Solver Tool in Excel

References

  • How to use Excel FORMULATEXT function
  • VLOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • How to get last column number in range in Excel
  • Multi-criteria lookup and transpose in Excel
  • Excel Advanced Lookup using Index and Match Functions

Data Validations

  • How To Create Drop-down List in Excel
  • Excel Data validation with conditional list
  • Excel Data validation specific characters only
  • Excel Data validation date in specific year
  • Excel Data validation unique values only

How to return TRUE when all cells in range are blank in Excel

by

To return TRUE when all cells in a range are blank or empty, you can use a formula based on SUMPRODUCT and a logical test that suits the use case.

Formula

=SUMPRODUCT(--(range<>""))=0

Explanation

In the example shown, the formula in E5 is:

=SUMPRODUCT(--(B5:D5<>""))=0

How this formula works

Working from the inside out, this formula contains an expression inside SUMPRODUCT that tests each cell in a range like so:

--(B5:D5<>"")

Inside the parentheses, the result of B5:D5<>”” looks like this:

{TRUE,FALSE,TRUE}

The double hyphen then converts the TRUE FALSE values to one’s and zeros:

{1,0,1}

Note that the 1’s in this array correspond to cells that are not blank or empty. Then, with only one array to work with, SUMPRODUCT simply multiples these values together and returns the result.

Any time the result is greater than zero, we know that not every cell in the range is blank. To force the formula to return TRUE if every cell is blank, and FALSE if not, we simply add =0 to the end of the formula.

Post navigation

Previous Post:

How to calculate project complete percentage in Excel

Next Post:

Popularly Used Excel Functions and their examples

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • Not Equal To ‘<>‘ operator in Excel
  • Extract multiple matches into separate rows in Excel
  • Excel If, Nested If, And/Or Criteria Examples
  • IF function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Add days exclude certain days of week in Excel
  • Sum through n months in Excel
  • Create date range from two dates in Excel
  • Convert Excel time to decimal seconds
  • How to enter Today’s Date or Static Date and Time in Excel

Grouping

  • Map inputs to arbitrary values in Excel
  • Running count group by n size in Excel
  • How to randomly assign data to groups in Excel
  • Map text to numbers in Excel
  • If cell contains one of many things in Excel

General

  • Count cells that do not contain many strings in Excel
  • How to generate random number between two numbers in Excel
  • How to calculate total from percentage in Excel
  • How to calculate percent sold in Excel
  • How to get original number from percent change in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning