Finding value inside a cell, returning it & checking for unique entries

MurdochQuill

Board Regular
Joined
Nov 21, 2020
Messages
84
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm trying to sort unique entries in a list of data. Currently I know how to find what I want, which can be done by the following formula:

Excel Formula:
(INT(MID(F8,SEARCH(", ",A2)+2,LEN(A2)-SEARCH(", ",A2)-4)

However I want to configure it to find the value in column A and paste it in column C, but with no duplicate values. So it would need to search a range of C2:C1000 for any duplicate values. Any help making this formula would be very appreciated.

Here's an example output as well:
Book1
ABC
1Unique ID no blanks
2FDSGDF 30 (CVNBFG, 556) A556
3DFGDFG-X 2456 (DFHGJ, 767) B767
4 EK0DFGH25 (DGJYT, 556) C884
5 DFGHF (YDJFDJ, 556) E
6 SGFH 2 (KTYUK, 556) U
7 HHH 2 (KUTYK, 884) G
8EFGHS 2 (GFJYT, 767) H
9 GFDNCV 2 (FJY, 556) V
10 XCVB 2 (JHK, 556) S
11 XCVB 2 (YRTU, 556) Z
Sheet1
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Sorry. Missed my editing window..

Because the list is going to be filtered, the output will need blanks inbetween until the unique value is found on the same row, and will need to land on the first instance of this unique number EG:

Book1
ABC
1Unique ID no blanks
2FDSGDF 30 (CVNBFG, 556) A556
3DFGDFG-X 2456 (DFHGJ, 767) B767
4 EK0DFGH25 (DGJYT, 556) C
5 DFGHF (YDJFDJ, 556) E
6 SGFH 2 (KTYUK, 556) U
7 HHH 2 (KUTYK, 884) G884
8EFGHS 2 (GFJYT, 767) H
9 GFDNCV 2 (FJY, 556) V
10 XCVB 2 (JHK, 556) S
11 XCVB 2 (YRTU, 556) Z
Sheet1
 
Upvote 0
How about
+Fluff 1.xlsm
ABC
1Unique ID
2FDSGDF 30 (CVNBFG, 556) A556
3DFGDFG-X 2456 (DFHGJ, 767) B767
4 EK0DFGH25 (DGJYT, 556) C 
5 DFGHF (YDJFDJ, 556) E 
6 SGFH 2 (KTYUK, 556) U 
7 HHH 2 (KUTYK, 884) G884
8EFGHS 2 (GFJYT, 767) H 
9 GFDNCV 2 (FJY, 556) V 
10 XCVB 2 (JHK, 556) S 
11 XCVB 2 (YRTU, 556) Z 
Main
Cell Formulas
RangeFormula
C2:C11C2=LET(Sp,FIND(", ",A2),Num,INT(MID(A2,Sp+2,LEN(A2)-Sp-4)),IF(COUNTIFS(C$1:C1,Num),"",Num))
 
Upvote 0
Solution
How about
+Fluff 1.xlsm
ABC
1Unique ID
2FDSGDF 30 (CVNBFG, 556) A556
3DFGDFG-X 2456 (DFHGJ, 767) B767
4 EK0DFGH25 (DGJYT, 556) C 
5 DFGHF (YDJFDJ, 556) E 
6 SGFH 2 (KTYUK, 556) U 
7 HHH 2 (KUTYK, 884) G884
8EFGHS 2 (GFJYT, 767) H 
9 GFDNCV 2 (FJY, 556) V 
10 XCVB 2 (JHK, 556) S 
11 XCVB 2 (YRTU, 556) Z 
Main
Cell Formulas
RangeFormula
C2:C11C2=LET(Sp,FIND(", ",A2),Num,INT(MID(A2,Sp+2,LEN(A2)-Sp-4)),IF(COUNTIFS(C$1:C1,Num),"",Num))
Thanks mate. I think I owe you a few beers by now.
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,432
Members
452,326
Latest member
johnshaji

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