Unique List Generator Based on Prefix

BMcHale

New Member
Joined
Sep 26, 2017
Messages
18
****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
ABCD
1ListPrefixList
2N12111N1N12111
3M14999N12987
4N12987N12555
5A33001
6N33444
7N12555
8A33888
9
10

<tbody>
</tbody>

Sheet14

Array Formulas
CellFormula
D2{=IF(D1="","",IFERROR(INDEX($A$2:$A$100,SMALL(IF(LEFT($A$2:$A$100,LEN($C$2))=$C$2,ROW($A$2:$A$100)-ROW($A$2)+1),ROWS($D$2:$D2))),""))}

<tbody>
</tbody>


<tbody>
</tbody>

</body>Hi All,

I'm using an array function to list values with a specified prefix, However the function I'm using will still obviously list duplicated values, Is there any way in which my formula can be edited, or indeed a new formula created that will give a list of unique values with a specified prefix.

Below is an example of what I'd be after and my currently used formula.


ABCD
1ListPrefixList
2N12555N12N12555
3M14999N12987
4N12987N12111
5A33001
6N12555
7A33888
8N12111
9M14648
10N12987


<tbody>
</tbody>

Sheet14

Array Formulas
CellFormula
D2{=IF(D1="","",IFERROR(INDEX($A$2:$A$100,SMALL(IF(LEFT($A$2:$A$100,LEN($C$2))=$C$2,ROW($A$2:$A$100)-ROW($A$2)+1),ROWS($D$2:$D2))),""))}

<tbody>
</tbody>


<tbody>
</tbody>
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,215,136
Messages
6,123,251
Members
449,093
Latest member
Vincent Khandagale

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