Forum

Notifications
Clear all

Extract Duplicates in an array, and list single instance of the duplicates Horizontally

5 Posts
2 Users
0 Reactions
169 Views
(@amanlangitymail-com)
Posts: 3
Active Member
Topic starter
 

I have Office 365, using PC

I have attached my sample data file, I am trying to filter out the duplicates in an array and list the unique instance of the duplicates  horizontally.

Please see provide xlsx, appreciate any help on the matter

 
Posted : 04/09/2021 12:42 am
(@mynda)
Posts: 4762
Member Admin
 

Hi Alver,

Welcome to our forum! Please tell us whether you're using Excel Office 365 so we know what functions you have available to use?

Thanks,

Mynda

 
Posted : 04/09/2021 2:53 am
(@amanlangitymail-com)
Posts: 3
Active Member
Topic starter
 

Thank you for your response, I am using Excel Office 365 on a PC

One of my formula is =SORT(UNIQUE(IF(COUNTIF($C$5:V$7,C5:V7)>2,INDEX(Midday_Last3,,),""),))

5                       42              
  5                 42                  
  5                     42              

I was able to filter the numbers but not sure how to display it properly Horizontally

5 42
 
Posted : 04/09/2021 8:44 am
(@mynda)
Posts: 4762
Member Admin
 

Hi Alver,

UNIQUE considers a whole row or whole column when it looks for unique results. Therefore each row or column in your 2D array has a different sequence of numbers, as opposed to assessing the numbers in the entire 2D array as a single column or row of values.

Therefore, you can use this formula where SMALL reduces the array to a single row of values:

=IFERROR(UNIQUE(SMALL(IF(COUNTIF(Midday_Last3,Midday_Last3)>2,INDEX(Midday_Last3,,),""),COLUMN(C3:V4)),TRUE),"")

Hope that helps.

Mynda

 
Posted : 05/09/2021 12:08 am
(@amanlangitymail-com)
Posts: 3
Active Member
Topic starter
 

Hi Mynda,

Thanks a lot for the answer it did it automatically generate the numbers, but the first instance of the duplicate is not being added, not sure why for the second part where the criteria if the occurrence of the number is 2x the 1st instance is skip in the list generated.  

=IFERROR(UNIQUE(SMALL(IF(COUNTIF(Midday_Last3,Midday_Last3)=2,INDEX(Midday_Last3,,),""),COLUMN(C3:V4)),TRUE),"")

Alver

 
Posted : 05/09/2021 8:45 am
Share: