Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Excel: Replace 0 which is returned by UNIQUE() by another value

In Excel I use the unique() function to get unique values of a column. As soon as I have empty rows in my column, they appear as "0".

Formula for D2: =UNIQUE(C2:C8)

Current situation

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

My question:

How can I replace the "0" with another value e.g. "Empty cell"?

The result should look like this:
Desired result

I know that I can use UNIQUE() with FILTER() to ignore empty values / cells. However, in my case I want to keep them just "name" them differently.

Thanks in advance

>Solution :

Why do you need filter()?

enter image description here

Just set the last argument to 1 in unique()

Or you can do this with if() as well:

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading