Help with dynamic unique list

Status
Not open for further replies.

qwertytrewq

New Member
Joined
Apr 19, 2018
Messages
9
i have data from which i need to extract unique list. i have everything up and running but my data has lot more rows n columns and excel takes forever to calculate it. Please suggest way to simplify these formula to cut back on processing time or any other way to get the desired dynamic list.

[TABLE="class: grid, width: 1410"]
<colgroup><col width="94" span="15" style="width:71pt"> </colgroup><tbody>[TR]
[TD="width: 94"]Column A[/TD]
[TD="width: 94"]Column B[/TD]
[TD="width: 94"]Column C[/TD]
[TD="width: 94"]Column D[/TD]
[TD="width: 94"]Column E[/TD]
[TD="width: 94"]Column F[/TD]
[TD="width: 94"]Column G[/TD]
[TD="width: 94"]Column H[/TD]
[TD="width: 94"]Column I[/TD]
[TD="width: 94"]Column J[/TD]
[TD="width: 94"]Column K[/TD]
[TD="width: 94"]Column L[/TD]
[TD="width: 94"]Column M[/TD]
[TD="width: 94"]Column N[/TD]
[TD="width: 94"]Column O[/TD]
[/TR]
[TR]
[TD="colspan: 5"]Below is Sample Data[/TD]
[TD][/TD]
[TD="width: 282, colspan: 3"]Below is Calculation step to get Unique Value in Sequence as in Sample Data[/TD]
[TD][/TD]
[TD="colspan: 5"]Below is Desired Dynamic List obtained from Sample Data[/TD]
[/TR]
[TR]
[TD="colspan: 2"]Sample[/TD]
[TD="colspan: 3"]Data related to the sample[/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]Sample[/TD]
[TD="colspan: 3"]Data related to the names[/TD]
[/TR]
[TR]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]data1[/TD]
[TD]data2[/TD]
[TD]data3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]data1[/TD]
[TD]data2[/TD]
[TD]data3[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Doe[/TD]
[TD]x[/TD]
[TD]y[/TD]
[TD]z[/TD]
[TD][/TD]
[TD]John ; Doe[/TD]
[TD]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/TD]
[TD]Dou[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[/TR]
[TR]
[TD]Jane[/TD]
[TD]Dou[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD]x[/TD]
[TD][/TD]
[TD]Jane ; Dou[/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD]Jane[/TD]
[TD]Dou[/TD]
[TD]y[/TD]
[TD]y[/TD]
[TD]y[/TD]
[TD][/TD]
[TD]Jane ; Dou[/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]


Formula in G5 : =A5&" ; "&B5
Formula in H5 : =IFERROR(LOOKUP(2,1/(COUNTIF($H$4:H4,$G$5:$G$12)=0),$G$5:$G$12),"")
Formula in I5 : =IFERROR(LOOKUP(2,1/(COUNTIF($I$4:I4,$H$5:$H$12)=0),$H$5:$H$12),"")
Formula in K5 : =LEFT(I5,SEARCH(" ; ",I5)-1)
Formula in L5 : =RIGHT(I5,LEN(I5)-SEARCH(" ; ",I5)-2)
Formula in M5 : =INDEX($C$5:$C$12,MATCH(1,INDEX((K5=$A$5:$A$12)*(L5=$B$5:$B$12),0,1),0))
Formula in N5 : =INDEX($D$5:$D$12,MATCH(1,INDEX((K5=$A$5:$A$12)*(L5=$B$5:$B$12),0,1),0))
Formula in O5 : =INDEX($E$5:$E$12,MATCH(1,INDEX((K5=$A$5:$A$12)*(L5=$B$5:$B$12),0,1),0))


Thanks for looking into this.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Correction in table - Shift H4 three cells to right

[TABLE="class: grid, width: 1410"]
<colgroup><col width="94" span="15" style="width:71pt"> </colgroup><tbody>[TR]
[TD="width: 94"]Column A[/TD]
[TD="width: 94"]Column B[/TD]
[TD="width: 94"]Column C[/TD]
[TD="width: 94"]Column D[/TD]
[TD="width: 94"]Column E[/TD]
[TD="width: 94"]Column F[/TD]
[TD="width: 94"]Column G[/TD]
[TD="width: 94"]Column H[/TD]
[TD="width: 94"]Column I[/TD]
[TD="width: 94"]Column J[/TD]
[TD="width: 94"]Column K[/TD]
[TD="width: 94"]Column L[/TD]
[TD="width: 94"]Column M[/TD]
[TD="width: 94"]Column N[/TD]
[TD="width: 94"]Column O[/TD]
[/TR]
[TR]
[TD="colspan: 5"]Below is Sample Data[/TD]
[TD][/TD]
[TD="width: 282, colspan: 3"]Below is Calculation step to get Unique Value in Sequence as in Sample Data[/TD]
[TD][/TD]
[TD="colspan: 5"]Below is Desired Dynamic List obtained from Sample Data[/TD]
[/TR]
[TR]
[TD="colspan: 2"]Sample[/TD]
[TD="colspan: 3"]Data related to the sample[/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]Sample[/TD]
[TD="colspan: 3"]Data related to the names[/TD]
[/TR]
[TR]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]data1[/TD]
[TD]data2[/TD]
[TD]data3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]First Name[/TD]
[TD]Last Name[/TD]
[TD]data1[/TD]
[TD]data2[/TD]
[TD]data3[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Doe[/TD]
[TD]x[/TD]
[TD]y[/TD]
[TD]z[/TD]
[TD][/TD]
[TD]John ; Doe[/TD]
[TD]Jane ; Dou[/TD]
[TD]John ; Dow[/TD]
[TD][/TD]
[TD]John[/TD]
[TD]Dow[/TD]
[TD]z[/TD]
[TD]x[/TD]
[TD]y[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Dow[/TD]
[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D]Jane ; Dou[/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD]Jane[/TD]
[TD]Dou[/TD]
[TD]y[/TD]
[TD]y[/TD]
[TD]y[/TD]
[TD][/TD]
[TD]Jane ; Dou[/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Correction - Shift H3 three cells to the right i.e. "Sample" to be in K3:L3 and "Data related to the names" in M3:MO3
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,888
Messages
6,175,205
Members
452,618
Latest member
Tam84

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