A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to I filter one list based on another list?



 
 
Thread Tools Display Modes
  #1  
Old May 19th, 2009, 11:42 AM posted to microsoft.public.excel.misc
Erlend
external usenet poster
 
Posts: 2
Default How to I filter one list based on another list?

I have one customer-list showing which of our customers have been active the
last year (list1), and one list showing all of our customers and their
adresses (list2). I want to send out a letter to all of the customers who
have been active the last year.

Both lists are sorted by customer-numbers. So list2 has the whole range from
100001 to 117950, and list1 shows approximately 4300 of these customers have
been active in 2008 or 2009. I don't want to waste money on sending out
letters to all the inactive customers, so..

Is there any way for me to sort list2, based on customer numbers, so that it
only shows the customers present in list1?
  #2  
Old May 19th, 2009, 12:39 PM posted to microsoft.public.excel.misc
Dave Peterson
external usenet poster
 
Posts: 19,791
Default How to I filter one list based on another list?

I'd insert another column to show an indicator if the value appears on the
current customer list.

I'd use a formula like:

=isnumber(match(a2,sheet2!a:a,0))

True means that there is a match.

False means that there is no match.

Then either sort or filter or .... by this column.

Erlend wrote:

I have one customer-list showing which of our customers have been active the
last year (list1), and one list showing all of our customers and their
adresses (list2). I want to send out a letter to all of the customers who
have been active the last year.

Both lists are sorted by customer-numbers. So list2 has the whole range from
100001 to 117950, and list1 shows approximately 4300 of these customers have
been active in 2008 or 2009. I don't want to waste money on sending out
letters to all the inactive customers, so..

Is there any way for me to sort list2, based on customer numbers, so that it
only shows the customers present in list1?


--

Dave Peterson
  #3  
Old May 19th, 2009, 01:48 PM posted to microsoft.public.excel.misc
Erlend
external usenet poster
 
Posts: 2
Default How to I filter one list based on another list?

This worked just as it should! Thanks a lot for the tip!

"Dave Peterson" wrote:

I'd insert another column to show an indicator if the value appears on the
current customer list.

I'd use a formula like:

=isnumber(match(a2,sheet2!a:a,0))

True means that there is a match.

False means that there is no match.

Then either sort or filter or .... by this column.

Erlend wrote:

I have one customer-list showing which of our customers have been active the
last year (list1), and one list showing all of our customers and their
adresses (list2). I want to send out a letter to all of the customers who
have been active the last year.

Both lists are sorted by customer-numbers. So list2 has the whole range from
100001 to 117950, and list1 shows approximately 4300 of these customers have
been active in 2008 or 2009. I don't want to waste money on sending out
letters to all the inactive customers, so..

Is there any way for me to sort list2, based on customer numbers, so that it
only shows the customers present in list1?


--

Dave Peterson

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.