UNIQUE function returning 0

thewiseguy

Well-known Member
Joined
May 23, 2005
Messages
1,019
Office Version
  1. 365
Platform
  1. Windows
Hi all. I am using the UNIQUE function on a column full of text and the last unique value being returned is a 0. I have this occurring in 2 different UNIQUE functions.

How can I check the reference cells to see where this is coming from?

Any help is greatly appreciated.
 
Depends on what columns you changed the formatting on. ;)

lol ok so anything in column X that does not have a value is coming back as '0'. i had the hide option engaged. can i remove the zero and not hide it? i'm having trouble finding a way to do this with a formula.
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
With this formula in X
=IF(N2="Yes","",Q2)

You should only get a 0 if N2 is not Yes & Q2 is empty
 
Upvote 0
With this formula in X
=IF(N2="Yes","",Q2)

You should only get a 0 if N2 is not Yes & Q2 is empty

yes, that is the exact case. column Q needs to be empty in certain instances. is there a workaround?
 
Upvote 0
In that case use
=SORT(UNIQUE(FILTER(INPUT!X2:X200,(INPUT!X2:X200 <>"")*(INPUT!X2:X200<>0),FALSE)))
 
Upvote 0

Forum statistics

Threads
1,224,837
Messages
6,181,255
Members
453,028
Latest member
letswriteafairytale

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top