Multiple Match with No Repeats

seguin85

Active Member
Joined
Mar 17, 2015
Messages
278
Office Version
  1. 365
Platform
  1. Windows
I tried googling this but didn't know exactly how to ask it.

I want it to return:
123-08932
123-08940
123-08947
123-09013

from this list of items:


123-08932-05
123-08932-06
123-08932-07
123-08932-99
123-08940-01
123-08940-01
123-08940-99
123-08947-99
123-09013-01
123-09013-01
123-09013-02
123-09013-02
123-09013-03
123-09013-03
123-09013-04
123-09013-04
123-09013-05
123-09013-06
123-09013-07

 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
How about
+Fluff 1.xlsm
EF
1
2123-08932-05123-08932
3123-08932-06123-08940
4123-08932-07123-08947
5123-08932-99123-09013
6123-08940-01
7123-08940-01
8123-08940-99
9123-08947-99
10123-09013-01
11123-09013-01
12123-09013-02
13123-09013-02
14123-09013-03
15123-09013-03
16123-09013-04
17123-09013-04
18123-09013-05
19123-09013-06
20123-09013-07
21
Master
Cell Formulas
RangeFormula
F2:F5F2=UNIQUE(LEFT(E2:E20,9))
Dynamic array formulas.
 
Upvote 0
How about
+Fluff 1.xlsm
EF
1
2123-08932-05123-08932
3123-08932-06123-08940
4123-08932-07123-08947
5123-08932-99123-09013
6123-08940-01
7123-08940-01
8123-08940-99
9123-08947-99
10123-09013-01
11123-09013-01
12123-09013-02
13123-09013-02
14123-09013-03
15123-09013-03
16123-09013-04
17123-09013-04
18123-09013-05
19123-09013-06
20123-09013-07
21
Master
Cell Formulas
RangeFormula
F2:F5F2=UNIQUE(LEFT(E2:E20,9))
Dynamic array formulas.

My excel version doesn't include "unique", also I forgot to mention the first 3 digits might be different then 123, but I only want to return items that start with 123.

Thanks!
 
Upvote 0
Hi

Another way to extract may be using the following array formula.

=IFERROR(INDEX(IF(LEFT($A$1:$A$100,3)="123",MID($A$1:$A$100,1,FIND("-",$A$1:$A$100,5)-1),),MATCH(0,COUNTIFS($C$1:C1,IF(LEFT($A$1:$A$100,3)="123",MID($A$1:$A$100,1,FIND("-",$A$1:$A$100,5)-1),)),0)),0)

This is the layout of my spreadsheet

Enter the above formula in in C2 by pressing Control + Shift + Enter and drag it down.


1612830069161.png


Kind regards

Saba
 
Upvote 0
Hi

Another way to extract may be using the following array formula.

=IFERROR(INDEX(IF(LEFT($A$1:$A$100,3)="123",MID($A$1:$A$100,1,FIND("-",$A$1:$A$100,5)-1),),MATCH(0,COUNTIFS($C$1:C1,IF(LEFT($A$1:$A$100,3)="123",MID($A$1:$A$100,1,FIND("-",$A$1:$A$100,5)-1),)),0)),0)

This is the layout of my spreadsheet

Enter the above formula in in C2 by pressing Control + Shift + Enter and drag it down.


View attachment 31592

Kind regards

Saba
Thank you Saba! That seems to be working perfectly!
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,605
Members
449,089
Latest member
Motoracer88

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