Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Creating a Unique List

I need to create a unique list and have it update automatically when new
information is added. Here's the scenario:

I have a list of locations in AJ14:AJ104. I need to extract this
information, reducing it down to unique items only. There may be blanks in
the original list that I don't want in my new list, so below is what I've
been doing. The frustration is it works in 2007 but not in 2003. I have using
exact formulas from the Excel 2003 Bible, so I can't figure out why it
doesn't work in 2003. Here goes:

AJ14:AJ104 (range name DIGIMARKETS): original list

AK14:AK104 (range name MARKETS): I use the following array formula to
return NON-BLANK cells.

=IF(ISERR(SMALL(IF(DigiMarkets<"",ROW(INDIRECT("1 :"&ROWS(DigiMarkets)))),ROW(INDIRECT("1:"&ROWS(Dig iMarkets))))),"",INDEX(DigiMarkets,SMALL(IF(DigiMa rkets<"",ROW(INDIRECT("1:"&ROWS(DigiMarkets)))),R OW(INDIRECT("1:"&ROWS(DigiMarkets))))))

AL14:AL104: I then use the following array formula to return A UNIQUE LIST:

=INDEX(Markets,SMALL(IF(MATCH(Markets,Markets,0)=R OW(INDIRECT("1:"&ROWS(Markets))),MATCH(Markets,Mar kets,0),""),ROW(INDIRECT("1:"&ROWS(Markets)))))


FIRST PROBLEM, in 2003 the array formula in AL14:AL104 only returns the #NA
error message -- thought it works perfectly in 2007. The array formula in
AK14:AK104 works just fine.

SECOND PROBLEM, I'd like to do this is an easier way so that it doesn't take
forever to open due to all the calculations and array formulas.

Any help you could provide would be wonderful.

Thanks much,

Ellen
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default Creating a Unique List

Ellen,

Try this.

http://www.ozgrid.com/forum/showthread.php?t=64237

It uses VBA code to extract unique values.

HTH

"Ellen G" wrote:

I need to create a unique list and have it update automatically when new
information is added. Here's the scenario:

I have a list of locations in AJ14:AJ104. I need to extract this
information, reducing it down to unique items only. There may be blanks in
the original list that I don't want in my new list, so below is what I've
been doing. The frustration is it works in 2007 but not in 2003. I have using
exact formulas from the Excel 2003 Bible, so I can't figure out why it
doesn't work in 2003. Here goes:

AJ14:AJ104 (range name DIGIMARKETS): original list

AK14:AK104 (range name MARKETS): I use the following array formula to
return NON-BLANK cells.

=IF(ISERR(SMALL(IF(DigiMarkets<"",ROW(INDIRECT("1 :"&ROWS(DigiMarkets)))),ROW(INDIRECT("1:"&ROWS(Dig iMarkets))))),"",INDEX(DigiMarkets,SMALL(IF(DigiMa rkets<"",ROW(INDIRECT("1:"&ROWS(DigiMarkets)))),R OW(INDIRECT("1:"&ROWS(DigiMarkets))))))

AL14:AL104: I then use the following array formula to return A UNIQUE LIST:

=INDEX(Markets,SMALL(IF(MATCH(Markets,Markets,0)=R OW(INDIRECT("1:"&ROWS(Markets))),MATCH(Markets,Mar kets,0),""),ROW(INDIRECT("1:"&ROWS(Markets)))))


FIRST PROBLEM, in 2003 the array formula in AL14:AL104 only returns the #NA
error message -- thought it works perfectly in 2007. The array formula in
AK14:AK104 works just fine.

SECOND PROBLEM, I'd like to do this is an easier way so that it doesn't take
forever to open due to all the calculations and array formulas.

Any help you could provide would be wonderful.

Thanks much,

Ellen

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Creating a Unique List

Thanks so much -- however, it appears that the VBA code requires user input
or manipulation -- unless I'm misunderstanding it.

I am building a "template" that multiple end users will use. I have
automated a large part of it, but am hesitant to require them to doing
something they easily forget that would impact the outcome.

My frustration is that the arrays I use are completely successful in 2007
and doing exactly what I need them to do. However, it is not successful in
2003, which my of my end users will be using.

Sigh.

Ellen

"Huber57" wrote:

Ellen,

Try this.

http://www.ozgrid.com/forum/showthread.php?t=64237

It uses VBA code to extract unique values.

HTH

"Ellen G" wrote:

I need to create a unique list and have it update automatically when new
information is added. Here's the scenario:

I have a list of locations in AJ14:AJ104. I need to extract this
information, reducing it down to unique items only. There may be blanks in
the original list that I don't want in my new list, so below is what I've
been doing. The frustration is it works in 2007 but not in 2003. I have using
exact formulas from the Excel 2003 Bible, so I can't figure out why it
doesn't work in 2003. Here goes:

AJ14:AJ104 (range name DIGIMARKETS): original list

AK14:AK104 (range name MARKETS): I use the following array formula to
return NON-BLANK cells.

=IF(ISERR(SMALL(IF(DigiMarkets<"",ROW(INDIRECT("1 :"&ROWS(DigiMarkets)))),ROW(INDIRECT("1:"&ROWS(Dig iMarkets))))),"",INDEX(DigiMarkets,SMALL(IF(DigiMa rkets<"",ROW(INDIRECT("1:"&ROWS(DigiMarkets)))),R OW(INDIRECT("1:"&ROWS(DigiMarkets))))))

AL14:AL104: I then use the following array formula to return A UNIQUE LIST:

=INDEX(Markets,SMALL(IF(MATCH(Markets,Markets,0)=R OW(INDIRECT("1:"&ROWS(Markets))),MATCH(Markets,Mar kets,0),""),ROW(INDIRECT("1:"&ROWS(Markets)))))


FIRST PROBLEM, in 2003 the array formula in AL14:AL104 only returns the #NA
error message -- thought it works perfectly in 2007. The array formula in
AK14:AK104 works just fine.

SECOND PROBLEM, I'd like to do this is an easier way so that it doesn't take
forever to open due to all the calculations and array formulas.

Any help you could provide would be wonderful.

Thanks much,

Ellen

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default Creating a Unique List

Ellen,

Another way to do it would be to record a macro as you do an advanced filter
and paste unique values in a new location. It would still capture the blank
cell (if there were at least one), but then you could sort the new list to
put the blank at the bottom.



"Ellen G" wrote:

Thanks so much -- however, it appears that the VBA code requires user input
or manipulation -- unless I'm misunderstanding it.

I am building a "template" that multiple end users will use. I have
automated a large part of it, but am hesitant to require them to doing
something they easily forget that would impact the outcome.

My frustration is that the arrays I use are completely successful in 2007
and doing exactly what I need them to do. However, it is not successful in
2003, which my of my end users will be using.

Sigh.

Ellen

"Huber57" wrote:

Ellen,

Try this.

http://www.ozgrid.com/forum/showthread.php?t=64237

It uses VBA code to extract unique values.

HTH

"Ellen G" wrote:

I need to create a unique list and have it update automatically when new
information is added. Here's the scenario:

I have a list of locations in AJ14:AJ104. I need to extract this
information, reducing it down to unique items only. There may be blanks in
the original list that I don't want in my new list, so below is what I've
been doing. The frustration is it works in 2007 but not in 2003. I have using
exact formulas from the Excel 2003 Bible, so I can't figure out why it
doesn't work in 2003. Here goes:

AJ14:AJ104 (range name DIGIMARKETS): original list

AK14:AK104 (range name MARKETS): I use the following array formula to
return NON-BLANK cells.

=IF(ISERR(SMALL(IF(DigiMarkets<"",ROW(INDIRECT("1 :"&ROWS(DigiMarkets)))),ROW(INDIRECT("1:"&ROWS(Dig iMarkets))))),"",INDEX(DigiMarkets,SMALL(IF(DigiMa rkets<"",ROW(INDIRECT("1:"&ROWS(DigiMarkets)))),R OW(INDIRECT("1:"&ROWS(DigiMarkets))))))

AL14:AL104: I then use the following array formula to return A UNIQUE LIST:

=INDEX(Markets,SMALL(IF(MATCH(Markets,Markets,0)=R OW(INDIRECT("1:"&ROWS(Markets))),MATCH(Markets,Mar kets,0),""),ROW(INDIRECT("1:"&ROWS(Markets)))))


FIRST PROBLEM, in 2003 the array formula in AL14:AL104 only returns the #NA
error message -- thought it works perfectly in 2007. The array formula in
AK14:AK104 works just fine.

SECOND PROBLEM, I'd like to do this is an easier way so that it doesn't take
forever to open due to all the calculations and array formulas.

Any help you could provide would be wonderful.

Thanks much,

Ellen

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 153
Default Creating a Unique List

I need to create a unique list and have it update automatically when new
information is added. Here's the scenario:

I have a list of locations in AJ14:AJ104. I need to extract this
information, reducing it down to unique items only. There may be blanks in
the original list that I don't want in my new list, ...


Here's a different approach that might help getting started.

Start with columns AK and AL empty.

In AK14, put
=IF(COUNTIF($AJ$14:$AJ14,$AJ14)=1,MAX($AK$13:$AK13 )+1,"")

In AL14, put
=IF(ROW()-13MAX(AK:AK),"",
OFFSET($AJ$14,MATCH(ROW()-13,AK:AK,0)-14,0))

Then select AK14:AL14 and copy down to row 104.

Modify to suit.


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 806
Default Creating a Unique List

Hello Ellen,

I suggest to look at
http://sulprobil.com/html/listfreq.html

It's really your choice:
1. Unique filter
2. Pivot table
3. VBA
4. Worksheet functions

Regards,
Bernd
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pick out unique components in a list with unique and common iksuinje Excel Discussion (Misc queries) 2 August 20th 08 09:57 PM
Creating a Unique Reference from 2 cells Christina Byrne Excel Discussion (Misc queries) 3 July 22nd 08 06:31 PM
Identify & List unique values from a list using functions/formulas momtoaj Excel Worksheet Functions 3 May 31st 07 06:18 PM
Creating A Unique List of Values From A Table carl Excel Worksheet Functions 8 May 17th 07 11:39 AM
Any Way of Creating a 'Unique Key'? hustla7 New Users to Excel 6 August 19th 06 04:42 PM


All times are GMT +1. The time now is 09:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"