Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Best way to find repeated matches?

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:


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Best way to find repeated matches?

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
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
How to find out repeated data kingkingking Excel Worksheet Functions 3 April 18th 08 03:42 PM
Add up Values if Find Matches x 2 Sean Excel Worksheet Functions 9 November 16th 07 12:21 PM
How can I find repeated numbers that are transposed? brokerdee Excel Discussion (Misc queries) 4 November 18th 06 02:53 AM
Repeated Multiple Find rcmodelr Excel Programming 3 October 16th 05 07:09 AM
how to find all matches in an array Greg Excel Discussion (Misc queries) 2 August 31st 05 09:04 PM


All times are GMT +1. The time now is 06:49 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"