Formula required to completed the below condition

Achyuth

New Member
Joined
Aug 13, 2021
Messages
8
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hello Everyone,

I have a query below with these condition, requesting to please help me solve this.

QA TagMod TagDifference
0c103e02,9961fd48,a4b63c62,a7eb2d76,d044fd17,ea1bea7e725f5ee4,a7eb2d760c103e02
0c103e02,9961fd48,a4b63c62,a7eb2d76,cafa8afb,d044fd17,ea1bea7e9961fd48,a4b63c620c103e02
18915865none18915865
344922fa71a81f31344922fa
4f9ff4d8none4f9ff4d8
6782f693none6782f693
6782f693none6782f693
6782f693none6782f693
6782f693none6782f693
725f5ee4,df494a74,f7205075df494a74,f7205075725f5ee4
809d1041a7eb2d76809d1041
d8d0d525noned8d0d525

I have used this formual which returns only one value which is not there, is there a way to return all the values present, I mean up to 10 missing values.

Please help

Formula I have used is

=SUBSTITUTE(TRIM(SUBSTITUTE(CONCAT(IF(MID(","&S111&",",ROW(INDIRECT("1:"&LEN(S111)+1)),1)=",",IF(ISERROR(SEARCH(MID(","&S111&",",ROW(INDIRECT("1:"&LEN(S111)+1)),FIND(",",","&S111&",",ROW(INDIRECT("2:"&LEN(S111)+2)))-ROW(INDIRECT("1:"&LEN(S111)+1))+1),","&T111&",")),MID(","&S111&",",ROW(INDIRECT("1:"&LEN(S111)+1)),FIND(",",","&S111&",",ROW(INDIRECT("2:"&LEN(S111)+2)))-ROW(INDIRECT("1:"&LEN(S111)+1))+1),""),"")),","," "))," ",",")
 
Below is revised data set.

Data 1Data 2OutputName
1,2,3,4,51,23,4,5Person 1
1,3,46,71,3,4Person 2
1,3,4,5,85,101,3,4,8Person 3
2,5,6,71,3,4,6,82,5,7Person 4
6,8,9,06,9,08Person 1
1,4,5,6,7,01,3,5,64,7,0Person 2
3,5,7,95,7,93Person 3
2,6,8,02,56,8,0Person 4
1,4,5,7,24,7,21,5Person 1
9,7,5,4,19,7,15,4Person 2
3,4,5,6,73,6,74,5Person 3
3,6,8,0,13,0,16,8Person 4
1,4,51,45Person 1
1,221Person 2
5,6,76,75Person 3
4,8,08,04Person 4

Formula used : =SUBSTITUTE(TRIM(SUBSTITUTE(CONCAT(IF(MID(","&A2&",",ROW(INDIRECT("1:"&LEN(A2)+1)),1)=",",IF(ISERROR(SEARCH(MID(","&A2&",",ROW(INDIRECT("1:"&LEN(A2)+1)),FIND(",",","&A2&",",ROW(INDIRECT("2:"&LEN(A2)+2)))-ROW(INDIRECT("1:"&LEN(A2)+1))+1),","&B2&",")),MID(","&A2&",",ROW(INDIRECT("1:"&LEN(A2)+1)),FIND(",",","&A2&",",ROW(INDIRECT("2:"&LEN(A2)+2)))-ROW(INDIRECT("1:"&LEN(A2)+1))+1),""),"")),","," "))," ",",")

Desired output which I am trying to achieve now using pivot table is below:
NameOutput Occurrence
Person 11,3,4,5,8
Person 21,3,4,5,7,0
Person 31,3,4,5,8
Person 42,4,5,6,7,8,0

Thank you so much for the earlier solution
 
Upvote 0

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Why are you continuing to use that very long & volatile formula when a shorter, non-volatile one is available?

This is how I would be approaching it

Achyuth.xlsm
ABCDEFG
1Data 1Data 2OutputNameNameOutpuut Occurrence
21,2,3,4,51,23,4,5Person 1Person 11,3,4,5,8
31,3,46,71,3,4Person 2Person 20,1,3,4,5,7
41,3,4,5,85,101,3,4,8Person 3Person 31,3,4,5,8
52,5,6,71,3,4,6,82,5,7Person 4Person 40,2,4,5,6,7,8
66,8,9,06,9,08Person 1
71,4,5,6,7,01,3,5,64,7,0Person 2
83,5,7,95,7,93Person 3
92,6,8,02,56,8,0Person 4
101,4,5,7,24,7,21,5Person 1
119,7,5,4,19,7,15,4Person 2
123,4,5,6,73,6,74,5Person 3
133,6,8,0,13,0,16,8Person 4
141,4,51,45Person 1
151,221Person 2
165,6,76,75Person 3
174,8,08,04Person 4
Sheet3
Cell Formulas
RangeFormula
F2:F5F2=UNIQUE(D2:D17)
G2:G5G2=TEXTJOIN(",",1,SORT(UNIQUE(FILTERXML("<p><c>"&SUBSTITUTE(TEXTJOIN(",",1,FILTER(C$2:C$17,D$2:D$17=F2)),",","</c><c>")&"</c></p>","//c"))))
C2:C17C2=LET(f,FILTERXML("<p><c>"&SUBSTITUTE(A2,",","</c><c>")&"</c></p>","//c"),TEXTJOIN(",",1,IF(ISERROR(FIND(","&f&",",","&B2&",")),f,"")))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,194
Members
453,021
Latest member
pingpong7117

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