ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Creating a list from multiple (sometimes the same) codes (https://www.excelbanter.com/excel-discussion-misc-queries/258407-creating-list-multiple-sometimes-same-codes.html)

David

Creating a list from multiple (sometimes the same) codes
 
I have in column A a list of say 100 codes of which many may be duplicated.

I wish to produce in column B an automatic list (produced without further
manual input) using all the different codes in column A

i.e. Answers in column A may be XX12, XX13, XX13, YY45, YY45, YY45, ZZ33 & R45

In column B I want to see a list of items (don't know how they will be
sorted) showing XX12, XX13, YY45, ZZ33 & R45 thus avoiding duplications.

Therefore I don't want to produce a drop down list which requires manual
choices in column B.

How do I do this please?

Thanks

מיכאל (מיקי) אבידן

Creating a list from multiple (sometimes the same) codes
 
If you don't want to use Advanced Filter filtering Unique Items - you may
consider:
* Start your 100 item list from cell A2 and down.
2) In cell B2 type:
{=INDEX($A$2:$A$101,MATCH(,COUNTIF($B$1:$B1,$A$2:$ A$101),))}
and copy down until you get an error.
*** This is an array formula, and is to be confirmed with CTRL+SHIFT+ENTER
rather than with simply ENTER.
The curly brackets {} are not to be typed manually, those are entered by the
Excel, when the formula is entered as an Array formula.
Micky


"David" wrote:

I have in column A a list of say 100 codes of which many may be duplicated.

I wish to produce in column B an automatic list (produced without further
manual input) using all the different codes in column A

i.e. Answers in column A may be XX12, XX13, XX13, YY45, YY45, YY45, ZZ33 & R45

In column B I want to see a list of items (don't know how they will be
sorted) showing XX12, XX13, YY45, ZZ33 & R45 thus avoiding duplications.

Therefore I don't want to produce a drop down list which requires manual
choices in column B.

How do I do this please?

Thanks



All times are GMT +1. The time now is 08:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com