Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default Reducing a List by Eliminating Entries from Another List

Hi,

I have several massive lists that I need some excel kung fu help with. Best
way to explain the challenge is with an example. I have lists A & B and want
to make list C as follows:

list A - dog, cat, ball, orange, cloud, peppers
list B - hockey, beer, smart, rain, ball, ocean

list C needs to be list B with any entries that are also in list A removed,
in this case "ball" needs to be removed, so list C becomes

list C - hockey, beer, smart, rain, ocean

comprende'? can anyone PLEASE HELP with this?

Thanks!

p.s. these lists are 5 to 10k worth of entries long in columns
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Reducing a List by Eliminating Entries from Another List

Hi Ralph,

=IF(A1<"",IF(COUNTIF(A:B,A1)1,"",A1),IF(INDIRECT (ADDRESS(ROW()-MATCH("",A:A,-1),2))<"",IF(COUNTIF(A:B,INDIRECT(ADDRESS(ROW()-MATCH("",A:A,-1),2)))1,"",INDIRECT(ADDRESS(ROW()-MATCH("",A:A,-1),2))),""))

This assumes that list A is in column A, list B is in column B, and that the
only blank cells are at the end of each list - otherwise will need a way to
trap where each list ends, a unique qualifier.

Peggy

"Ralph" wrote in message
...
Hi,

I have several massive lists that I need some excel kung fu help with.
Best
way to explain the challenge is with an example. I have lists A & B and
want
to make list C as follows:

list A - dog, cat, ball, orange, cloud, peppers
list B - hockey, beer, smart, rain, ball, ocean

list C needs to be list B with any entries that are also in list A
removed,
in this case "ball" needs to be removed, so list C becomes

list C - hockey, beer, smart, rain, ocean

comprende'? can anyone PLEASE HELP with this?

Thanks!

p.s. these lists are 5 to 10k worth of entries long in columns


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default Reducing a List by Eliminating Entries from Another List

Peggy,

Thanks for writing! I tried using your formula and it appears to be working
but it is creating an added/unexpected problem that I hadn't anticipated.
The problem is that in column A there are duplicate entries, i.e. dog, beer,
beer, beer, cat ...

Your formula would probably work if I had a way to first eliminate these
duplicate entries in column A. Can you suggest a way to do this OR revise
the formula you gave me to accomodate for this complexity?

As it stands now, where there are duplicate entries in column A, such as
beer, beer, beer NOT A SINGLE instance of beer will show up in column C which
is not what I need.

Do you follow me?

THANKS!
Ralph

"Peggy Shepard" wrote:

Hi Ralph,

=IF(A1<"",IF(COUNTIF(A:B,A1)1,"",A1),IF(INDIRECT (ADDRESS(ROW()-MATCH("",A:A,-1),2))<"",IF(COUNTIF(A:B,INDIRECT(ADDRESS(ROW()-MATCH("",A:A,-1),2)))1,"",INDIRECT(ADDRESS(ROW()-MATCH("",A:A,-1),2))),""))

This assumes that list A is in column A, list B is in column B, and that the
only blank cells are at the end of each list - otherwise will need a way to
trap where each list ends, a unique qualifier.

Peggy

"Ralph" wrote in message
...
Hi,

I have several massive lists that I need some excel kung fu help with.
Best
way to explain the challenge is with an example. I have lists A & B and
want
to make list C as follows:

list A - dog, cat, ball, orange, cloud, peppers
list B - hockey, beer, smart, rain, ball, ocean

list C needs to be list B with any entries that are also in list A
removed,
in this case "ball" needs to be removed, so list C becomes

list C - hockey, beer, smart, rain, ocean

comprende'? can anyone PLEASE HELP with this?

Thanks!

p.s. these lists are 5 to 10k worth of entries long in columns



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default Reducing a List by Eliminating Entries from Another List

ACTUALLY, just to be sure, did you want me to paste this formula in cell C1
and copy it down column C? because if so, now that I look at what it's doing
it is NOT giving me the list in column B minus what's in column A ... hmmm

"Peggy Shepard" wrote:

Hi Ralph,

=IF(A1<"",IF(COUNTIF(A:B,A1)1,"",A1),IF(INDIRECT (ADDRESS(ROW()-MATCH("",A:A,-1),2))<"",IF(COUNTIF(A:B,INDIRECT(ADDRESS(ROW()-MATCH("",A:A,-1),2)))1,"",INDIRECT(ADDRESS(ROW()-MATCH("",A:A,-1),2))),""))

This assumes that list A is in column A, list B is in column B, and that the
only blank cells are at the end of each list - otherwise will need a way to
trap where each list ends, a unique qualifier.

Peggy

"Ralph" wrote in message
...
Hi,

I have several massive lists that I need some excel kung fu help with.
Best
way to explain the challenge is with an example. I have lists A & B and
want
to make list C as follows:

list A - dog, cat, ball, orange, cloud, peppers
list B - hockey, beer, smart, rain, ball, ocean

list C needs to be list B with any entries that are also in list A
removed,
in this case "ball" needs to be removed, so list C becomes

list C - hockey, beer, smart, rain, ocean

comprende'? can anyone PLEASE HELP with this?

Thanks!

p.s. these lists are 5 to 10k worth of entries long in columns



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 806
Default Reducing a List by Eliminating Entries from Another List

Hello Ralph,

Select C1:C1000 and array-enter:
=Pstat("count",ISERROR(MATCH(B1:B1000,A1:A1000,0)) ,B1:B1000)

Pstat you can find he
http://sulprobil.com/html/pstat.html

Regards,
Bernd


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default Reducing a List by Eliminating Entries from Another List

thanks Bernd, column c just ended up with a bunch of "#NAME?", don't think it
worked or I didn't do something right, please advise!

"Bernd P" wrote:

Hello Ralph,

Select C1:C1000 and array-enter:
=Pstat("count",ISERROR(MATCH(B1:B1000,A1:A1000,0)) ,B1:B1000)

Pstat you can find he
http://sulprobil.com/html/pstat.html

Regards,
Bernd

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default Reducing a List by Eliminating Entries from Another List

also, this formula seems to really be bearing down on my ram and that was
only for 1000 rows, i need something to handle up to 10,000 rows, etc... if
possible, thanks!

"Bernd P" wrote:

Hello Ralph,

Select C1:C1000 and array-enter:
=Pstat("count",ISERROR(MATCH(B1:B1000,A1:A1000,0)) ,B1:B1000)

Pstat you can find he
http://sulprobil.com/html/pstat.html

Regards,
Bernd

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default Reducing a List by Eliminating Entries from Another List

is there anybody out there who can help me with this issue please???

"Ralph" wrote:

also, this formula seems to really be bearing down on my ram and that was
only for 1000 rows, i need something to handle up to 10,000 rows, etc... if
possible, thanks!

"Bernd P" wrote:

Hello Ralph,

Select C1:C1000 and array-enter:
=Pstat("count",ISERROR(MATCH(B1:B1000,A1:A1000,0)) ,B1:B1000)

Pstat you can find he
http://sulprobil.com/html/pstat.html

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
Help needed reducing list. Chris Mitchell Excel Worksheet Functions 6 September 30th 08 01:01 PM
how to identify unique list of 200 random entries from a list of 3 tjb Excel Worksheet Functions 3 August 13th 07 02:15 PM
make a list from another list ignoring duplicate entries from orig Kroka Excel Worksheet Functions 1 March 7th 07 10:36 PM
Removing all entries in one list that appear in a different list WLarson Excel Discussion (Misc queries) 1 May 12th 06 02:39 AM
Eliminating blank cells in a list on a ROW grime Excel Worksheet Functions 5 November 3rd 05 05:41 PM


All times are GMT +1. The time now is 06:01 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"