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 » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

"Match" Function - how to find multiple matches ??



 
 
Thread Tools Display Modes
  #1  
Old March 2nd, 2004, 07:54 AM
Keith
external usenet poster
 
Posts: n/a
Default "Match" Function - how to find multiple matches ??

I am comparing two worksheets, and the only way I have found to
compare and find both exact and partial matches is by using the Match
function, and since it only works on one column - I need to use it on
one column at a time. The way you can find partial matches is by
appending an asterisk at the beginning and end of the string you are
looking for.

But my database (Sheet1) has 30,000 rows, and has multiple hits for a
given cell in Sheet2. For example, I want to find all customers that
live on Main Street. So in Sheet2, I entered *Main* in cell B4, and
then enter the following in Cell C4. This will search through column
A in sheet1 from Cell A1 through Cell A30000, where the addresses are
stored:

=MATCH(B4,Sheet1!A$1:A$30000,0)

But the problem is that it returns the row number of the first match -
which is 8. However, "Main Street" exists in row 8, row, 37, row 96,
etc.

I want to somehow search for all instances of the word "Main" in
column A. Is there any way to do this?


  #2  
Old March 2nd, 2004, 09:05 AM
Frank Kabel
external usenet poster
 
Posts: n/a
Default "Match" Function - how to find multiple matches ??

Hi Keith
see you respone in Excel.programming

P.S.: please don't multipost as this scatters your answers and create
additional effort for all who answer your questions


--
Regards
Frank Kabel
Frankfurt, Germany

Keith wrote:
I am comparing two worksheets, and the only way I have found to
compare and find both exact and partial matches is by using the Match
function, and since it only works on one column - I need to use it on
one column at a time. The way you can find partial matches is by
appending an asterisk at the beginning and end of the string you are
looking for.

But my database (Sheet1) has 30,000 rows, and has multiple hits for a
given cell in Sheet2. For example, I want to find all customers that
live on Main Street. So in Sheet2, I entered *Main* in cell B4, and
then enter the following in Cell C4. This will search through column
A in sheet1 from Cell A1 through Cell A30000, where the addresses are
stored:

=MATCH(B4,Sheet1!A$1:A$30000,0)

But the problem is that it returns the row number of the first

match -
which is 8. However, "Main Street" exists in row 8, row, 37, row 96,
etc.

I want to somehow search for all instances of the word "Main" in
column A. Is there any way to do this?


  #3  
Old March 2nd, 2004, 10:27 AM
David Byrne
external usenet poster
 
Posts: n/a
Default "Match" Function - how to find multiple matches ??

Keith wrote in message . ..
..
..
I want to somehow search for all instances of the word "Main" in
column A. Is there any way to do this?

Hi Keith,

Try

1. AutoFilter/Custom/Contains,

2. Find,(Case Sensitive) or

3. Search, (Not Case Sensitive).


David
 




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 07:36 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.