Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have four columns of names that are a named range
called "names". I am looking for some code that will export only the unique names in the "names" range to ONE column that I wish to name "unique". Any help would be greatly appreciated. Steve |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Steve,
You can do this using an array formula. Enter the following formula in the H2 cell as an array (while in edit mode, hold down Ctrl+Shift and press Enter). =INDEX(Names,MIN(IF(COUNTIF($H$1:H1,Names)=0,ROW(N ames)-MIN(ROW(Names))+1)), MATCH(0,COUNTIF($H$1:H1,INDEX(Names,MIN(IF(COUNTIF ($H$1:H1, Names)=0,ROW(Names)-MIN(ROW(Names))+1)),,1)),0),1) Now copy the formula down the page until it starts producing #N/A errors. John Green Sydney Australia "Steve" wrote in message ... I have four columns of names that are a named range called "names". I am looking for some code that will export only the unique names in the "names" range to ONE column that I wish to name "unique". Any help would be greatly appreciated. Steve |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
John, That Solution worked great !
Thanks Steve -----Original Message----- Steve, You can do this using an array formula. Enter the following formula in the H2 cell as an array (while in edit mode, hold down Ctrl+Shift and press Enter). =INDEX(Names,MIN(IF(COUNTIF($H$1:H1,Names)=0,ROW( Names)- MIN(ROW(Names))+1)), MATCH(0,COUNTIF($H$1:H1,INDEX(Names,MIN(IF(COUNTI F ($H$1:H1, Names)=0,ROW(Names)-MIN(ROW(Names))+1)),,1)),0),1) Now copy the formula down the page until it starts producing #N/A errors. John Green Sydney Australia "Steve" wrote in message ... I have four columns of names that are a named range called "names". I am looking for some code that will export only the unique names in the "names" range to ONE column that I wish to name "unique". Any help would be greatly appreciated. Steve . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
converting email address names in a range of cells to real names | Excel Worksheet Functions | |||
Counting Unique Names | Excel Worksheet Functions | |||
Unique Names w/ Conditions | Excel Worksheet Functions | |||
counting unique names - again | Excel Worksheet Functions | |||
Finding unique names--then converting those names to unique number | Excel Discussion (Misc queries) |