Unique Distinct Lists Quirk?

Jnrrpg11

New Member
Joined
Jun 29, 2017
Messages
28
Hello Everyone,

Im trying too understand whats happening with a small oddity when creating a Unique Distinct list.

Screen_Shot_2017_08_17_at_18_07_28.png


So in Column 'C' I have list of names with duplicates and in the column 'G' I have a Unique Distinct List created using the red formula at the top.
Ive extended the Array beyond the number of names necessary so I know that if another name appeared in range C5:C24 it would populate below the first UDL.
However when I extend the range to take into account an increasing Name list in future (UDL2/Green formula), I get a 0 between the last name the first #N/A .
Im not super clued in on Unique Distinct Lists but it seems like a strange quirk and I know I can use an IFNA to remove the #N/A but i cannot get rid of the 0.
Can one any explain whats happening here and potentially suggest a solution?

Many Thanks.
 
Last edited:

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
If we evaluate the lookup array of the match we get
Code:
=INDEX($C$5:$C$28,MATCH(0,{1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;0;0;0;0},0))
The zeros at the end are the blank cells and since your are matching on zero it returns as row number.

If you put a space in the empty cells in column C the it returns as blank instead of zero.

Or you could check if it returns zero and make it return ""
Code:
=IF(INDEX($C$5:$C$28,MATCH(0,COUNTIF($J$4:J4,$C$5:$C$28),0))=0,"",INDEX($C$5:$C$28,MATCH(0,COUNTIF($J$4:J4,$C$5:$C$28),0)))
 
Upvote 0
Hey Scott,
Ive looked online for weeks and never managed to find a solution to this.

Thanks for the reply, works perfectly.


Kind Regards
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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