• Today

Ignoring Blank Cells in Excel

Blank or empty cells in Excel cause more problems than they should. A function that can help you ignore them is TOCOL function.

Sign up to hear about free Excel training.

I won't share your email with anyone.

  • 1 min read

As an example in the image below we have some numbers and text in a range with some blank cells between them.

If you use the UNIQUE function to remove the duplicates, look what happens.

Notice that 0 (zero) appears twice. Not very unique.

It happens because a blank/empty cell is treated as zero when you link to it but UNIQUE treats a blank and zero as separate and shows them both.

To fix this we can use the TOCOL function which has an option to ignore blanks.

The TOCOL function on its own can be useful if you need to summarise a list that has lots of blank cells – see image below.

You can use the TRIMRANGE referencing to handle a long list but ignore the blank cells on the end of the range.

There is also a TOROW function that has the same options. It creates a horizontal spill range.

0 comments

Joinor login to leave a comment