Function to generate list of all different values/text that are appearing in the column one time or more times

Gabrielle_erre

New Member
Joined
Jan 3, 2019
Messages
21
Hi, I'm Gabriel and I am new to this website and I hope to find some help for the next table:
I would like to list all the codes names list from the column A (even if they appear one time or more) in column D and show in column E the description (from column B) for each of the List of codes.

[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]CODE[/TD]
[TD="align: center"]DESCRIPTION[/TD]
[TD="align: center"][/TD]
[TD="align: center"]List all CODES[/TD]
[TD="align: center"]Show description[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]11-a[/TD]
[TD]you[/TD]
[TD][/TD]
[TD]11-a
[/TD]
[TD]you
[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]12-a[/TD]
[TD]me[/TD]
[TD][/TD]
[TD]12-a[/TD]
[TD]me[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]10-a[/TD]
[TD]us[/TD]
[TD][/TD]
[TD]10-a[/TD]
[TD]us[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]11-a[/TD]
[TD]you[/TD]
[TD][/TD]
[TD]13-a[/TD]
[TD]we[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]12-a[/TD]
[TD]me[/TD]
[TD][/TD]
[TD]#NV[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]10-a[/TD]
[TD]us[/TD]
[TD][/TD]
[TD]#NV[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]13-a[/TD]
[TD]we[/TD]
[TD][/TD]
[TD]#NV[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]11-a[/TD]
[TD]you[/TD]
[TD][/TD]
[TD]#NV[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

To list the codes in cell D1 I used
{=index($A2:$A$10, MATCH(0,COUNTIF($D$1:D1,$A$2:$A$10),0))}

But I would like to have only the values/text of codes and no error on the list, because I will refer the cells to other sheets and apply more functions.

- I did not find a function to show me the description from col B for each code listed.

Can you help with suggestions? Thanks in advance!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
How about


Excel 2013/2016
ABCDE
1CODEDESCRIPTIONList all CODESShow description
211-ayou11-ayou
312-ame12-ame
410-aus10-aus
511-ayou13-awe
612-ame
710-aus
813-awe
911-ayou
Input
Cell Formulas
RangeFormula
D2=IFERROR(INDEX($A$2:$A$9, MATCH(0,INDEX(COUNTIF($D$1:D1,$A$2:$A$9),0),0)),"")
E2=INDEX($B$2:$B$9,MATCH(D2,$A$2:$A$9,0))
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0
I can apply the same function IFERROR also for the E2 to not have the #NV ?

If I use E2=IFERROR(INDEX($B$4:$B$10,MATCH(F4,$A$4:$A$10,0)),0) it shows 0 instead of #NV . Can you help me to correct it?
 
Upvote 0

Forum statistics

Threads
1,224,567
Messages
6,179,568
Members
452,926
Latest member
rows and columns

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