PC Review


Reply
Thread Tools Rate Thread

Best way to find repeated matches?

 
 
Keith R
Guest
Posts: n/a
 
      5th Dec 2007
I came up with a worksheet formula that does what I need, which I was then
going to bring over to VBA to find matching rows and grab some additional
data:


 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      6th Dec 2007
The are two methods for converting worksheet formulas to VBA code.

Method 1 - If VBA has an equivalent function then change the code to VBA
function. A simple case of this is the IF function.

for worksheet
=if(condition,true,false)

for VBA
if condition then
true statements
else
false statenments
end if

Method 2 - use worksheet function in VBA
worksheet
=countif(A1:C5,">=5")

VBA
total = worksheetfunction.countif(Range("A1:C5"),">=5")


Sometimes you need to use a combination of Method 1 and Method 2
If you post your formul I can do the conversion if you have any problems.

"Keith R" wrote:

> I came up with a worksheet formula that does what I need, which I was then
> going to bring over to VBA to find matching rows and grab some additional
> data:
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find matches e Microsoft Access Queries 2 6th Feb 2009 03:21 PM
Add up Values if Find Matches x 2 Sean Microsoft Excel Worksheet Functions 9 16th Nov 2007 12:21 PM
How to find matches Cub71 Microsoft C# .NET 1 28th Mar 2007 09:15 PM
find matches in a column Mark Scott Microsoft Excel Discussion 4 26th Jul 2006 12:43 AM
Find non-matches =?Utf-8?B?amZsZXRjaGVy?= Microsoft Access Queries 1 19th Nov 2004 12:18 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:29 AM.