Unique Values in Groups

Stephen_IV

Well-known Member
Joined
Mar 17, 2003
Messages
1,180
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Below is a breakdown of what I am looking for. I would like to be able to get unique values in each group. For instance ID number 777 has 6 values in the group out of those I would like 5,6,14,15 to be pulled out. I have a formula I stole from Domenic (Column G =SUBSTITUTE(MCONCAT(UNIQUEVALUES(IF($A$2:$A$35=E2,", "&$C$2:$C$35,""),1)),", ","",1)) and tried to adapt it but it does not do exactly what I want but it is close. Could someone please have a look at this. Thanks in advance Stephen

Book1
ABCDEFGH
1# AccomodationsUniquesThis is what I want
277715,6,14,15777205,14,15, 5,6,14,155,6,14,15
377725,6,14,15888135,14,15, 5,14,15,26, 5,14,265,14,15,26
477735,14,15999185,14,15, 6,14,155,6,14,15
577745,14,154441614,15, 5,14,15, 6,14,155,6,14,15
677755,14,155551214,15, 6,14,156,14,15
777765,14,15333714,15, 21,2214,15,21,22
888835,14,26
988845,14,15,26
1088855,14,15
1188865,14,15
1299916,14,15
1399926,14,15
1499935,14,15
1599945,14,15
1699955,14,15
1799965,14,15
1844416,14,15
1944426,14,15
2044435,14,15
2144445,14,15
22444514,15
2344465,14,15
2455516,14,15
2555526,14,15
26555314,15
27555414,15
28555514,15
29555614,15
30333114,15
31333214,15
32333314,15
33333414,15
34333521,22
35333614,15
Sheet1
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Krishnakumar,
You are a lifesaver. Works perfect. I could not that you enough! Thanks you again!
 
Upvote 0

Forum statistics

Threads
1,224,558
Messages
6,179,512
Members
452,921
Latest member
BBQKING

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