Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default match vs find question

right now i'm using find to search a row of values for an item, if it find it, i
use the rngfound row to enter some data below. if it doesn't find it, it adds an
item to the range.

i could use application.match to return the position, too, so i'm just wondering
if one way is preferred over the other.

--


Gary



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default match vs find question

I would guess that Find is aesthetically better, as it is not Excel
dependent, and has more flexibility in the search pattern and then looking
for next. Match scores if you want to do a nearest value find. Horses for
courses I guess. I tend to use Application.Match in responses I give, but I
actually use Find more in my own code.

I have no idea if one is faster ( I would guess Find), never had the need to
time it.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
right now i'm using find to search a row of values for an item, if it find
it, i use the rngfound row to enter some data below. if it doesn't find
it, it adds an item to the range.

i could use application.match to return the position, too, so i'm just
wondering if one way is preferred over the other.

--


Gary





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default match vs find question

thanks for the response, bob.

--


Gary


"Bob Phillips" wrote in message
...
I would guess that Find is aesthetically better, as it is not Excel dependent,
and has more flexibility in the search pattern and then looking for next. Match
scores if you want to do a nearest value find. Horses for courses I guess. I
tend to use Application.Match in responses I give, but I actually use Find more
in my own code.

I have no idea if one is faster ( I would guess Find), never had the need to
time it.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
right now i'm using find to search a row of values for an item, if it find
it, i use the rngfound row to enter some data below. if it doesn't find it,
it adds an item to the range.

i could use application.match to return the position, too, so i'm just
wondering if one way is preferred over the other.

--


Gary







  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default match vs find question

Another point I forgot to mention Gary is that Application.Match is useful
in testing if a value exists in an array.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
thanks for the response, bob.

--


Gary


"Bob Phillips" wrote in message
...
I would guess that Find is aesthetically better, as it is not Excel
dependent, and has more flexibility in the search pattern and then looking
for next. Match scores if you want to do a nearest value find. Horses for
courses I guess. I tend to use Application.Match in responses I give, but
I actually use Find more in my own code.

I have no idea if one is faster ( I would guess Find), never had the need
to time it.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
right now i'm using find to search a row of values for an item, if it
find it, i use the rngfound row to enter some data below. if it doesn't
find it, it adds an item to the range.

i could use application.match to return the position, too, so i'm just
wondering if one way is preferred over the other.

--


Gary









  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default match vs find question

ok, appreciate the follow up

--


Gary


"Bob Phillips" wrote in message
...
Another point I forgot to mention Gary is that Application.Match is useful in
testing if a value exists in an array.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
thanks for the response, bob.

--


Gary


"Bob Phillips" wrote in message
...
I would guess that Find is aesthetically better, as it is not Excel
dependent, and has more flexibility in the search pattern and then looking
for next. Match scores if you want to do a nearest value find. Horses for
courses I guess. I tend to use Application.Match in responses I give, but I
actually use Find more in my own code.

I have no idea if one is faster ( I would guess Find), never had the need to
time it.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
right now i'm using find to search a row of values for an item, if it find
it, i use the rngfound row to enter some data below. if it doesn't find it,
it adds an item to the range.

i could use application.match to return the position, too, so i'm just
wondering if one way is preferred over the other.

--


Gary











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
find the second match using the match function Ray Excel Worksheet Functions 1 April 6th 09 10:19 PM
Find an exact match and go to that match Heath Excel Discussion (Misc queries) 0 February 12th 09 02:28 AM
Find partial match from column A,B and fill partial match in C? Tacrier Excel Discussion (Misc queries) 4 October 24th 08 11:24 PM
Find Exact Match using INDEX, MATCH DoubleUU Excel Worksheet Functions 3 August 15th 08 02:42 PM
newbie pivot table question (using match to find a value) Keith R Excel Discussion (Misc queries) 1 May 1st 07 03:38 PM


All times are GMT +1. The time now is 10:18 AM.

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

About Us

"It's about Microsoft Excel"