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

Data Analysis

  • How To Perform and Interpret Regression Analysis in Excel
  • How to create a Histogram in Excel
  • Data Series in Excel
  • Subtotal function in Excel
  • How To Load Analysis ToolPak in Excel

References

  • How to use Excel MMULT Function
  • Count rows that contain specific values in Excel
  • How to get address of last cell in range in Excel
  • MATCH function: Description, Usage, Syntax, Examples and Explanation
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions

Data Validations

  • Excel Data validation allow uppercase only
  • Excel Data validation must begin with
  • Excel Data validation exists in list
  • Excel Data validation no punctuation
  • How To Create Drop-down List in Excel

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:

Worked Example:   3D-reference example in Excel

{TRUE,FALSE,TRUE}

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

Worked Example:   How To Insert, Edit Show or Hide Comments

{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.

Worked Example:   How to get first row number in range in Excel

Post navigation

Previous Post:

How to generate random date between two dates 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

  • How to use Excel XOR Function
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • How to use IFS function in Excel
  • How to use Excel AND Function
  • AND function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Find Last Day of the Month in Excel
  • List holidays between two dates in Excel
  • Get days before a date in Excel
  • Display the current date and time in Excel
  • Calculate number of hours between two times in Excel

Grouping

  • Group numbers at uneven intervals in Excel
  • Map text to numbers in Excel
  • Calculate conditional mode with criteria in Excel
  • If cell contains one of many things in Excel
  • Group times into unequal buckets in Excel

General

  • Cell References: Relative, Absolute and Mixed Referencing Examples
  • How to get random value from list or table in Excel
  • Subtotal by invoice number in Excel
  • How to calculate percentage discount in Excel
  • Find, Select, Replace and Go To Special in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning