Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cell Search Function

I need a way to compare one cell to the adjacent cells and/or a range o
cells... wherein the cells would not be exactly matched strings o
text.

Example:

A1 - Bags of Apples
A2 - Bags of Oranges
-or-
A1 - C17 2004 Envelop
A2 - C19 2003 Envelopes

In these examples the formula would provide some indicator of note
like "Match" or something.

Is there anyway to do this with a function or macro

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Cell Search Function

Hi
there's no build-in function for this. so you have to
develop this kind of 'pobability match' on your own.

How do you define a match?
- specific number/percentage of characters are identical
- this first or the last part of the two strings are
identical
- ...


-----Original Message-----
I need a way to compare one cell to the adjacent cells

and/or a range of
cells... wherein the cells would not be exactly matched

strings of
text.

Example:

A1 - Bags of Apples
A2 - Bags of Oranges
-or-
A1 - C17 2004 Envelop
A2 - C19 2003 Envelopes

In these examples the formula would provide some

indicator of note,
like "Match" or something.

Is there anyway to do this with a function or macro?


---
Message posted from http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Cell Search Function

Well, most of the instances occur where the first 5-20 characters ar
identical. However, many instances are like the second example tha
are more troublesome. Those would need to match a word that might b
in the middle of the description in one field and at the end of th
description in another. For example: Dec 2004 Broc & Oct 2004 Bro
should match, but should not match based solely on the date so tha
they would match with 2004 Outlet Flyr. So I guess if a number o
characters match up, independent of where they are located in th
string I would like to have the cell beside put a count of matches o
just an asterisk or something.

Thanks if anyone has an idea how to help

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Cell Search Function

I have use the =if formula to do this.
In cell C1 enter =if(a1=b1,"Match","No match")
I use this usually to find out why data that is suppose to
match doesn't. In the above example using "" instead of
"Match" leaves the cell blank.
This works well when the cells are side by side or on the
same row. In your example you listed cells a1 and a2. In
this case i suppose you would have to put the =if formula
some where else. as to using it for a range of cells, You
would have to have a =if formula for each cell in the
range.

-----Original Message-----
Hi
there's no build-in function for this. so you have to
develop this kind of 'pobability match' on your own.

How do you define a match?
- specific number/percentage of characters are identical
- this first or the last part of the two strings are
identical
- ...


-----Original Message-----
I need a way to compare one cell to the adjacent cells

and/or a range of
cells... wherein the cells would not be exactly matched

strings of
text.

Example:

A1 - Bags of Apples
A2 - Bags of Oranges
-or-
A1 - C17 2004 Envelop
A2 - C19 2003 Envelopes

In these examples the formula would provide some

indicator of note,
like "Match" or something.

Is there anyway to do this with a function or macro?


---
Message posted from http://www.ExcelForum.com/

.

.

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
Search Function cra88 Excel Worksheet Functions 2 August 5th 09 07:44 PM
SEARCH Function nc Excel Discussion (Misc queries) 2 August 5th 09 06:03 PM
Search Function Dinesh Excel Worksheet Functions 7 January 15th 09 05:54 AM
function for search NickySven Excel Discussion (Misc queries) 2 August 5th 08 09:31 PM
Search function se01rw Excel Discussion (Misc queries) 1 February 13th 06 02:06 PM


All times are GMT +1. The time now is 10:03 PM.

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"