LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default use LIKE within sumproduct in macro, possible?

hello, i was wondering if it would be possible to use LIKE somehow
within my sumproduct here is example

Sub TxMissing()
Dim nameOfViolation As String

For i = 7 To 500
If Sheets("Summary").Cells(i, "A").Value = "" Then
Exit Sub
End If
cnt = Evaluate("SUMPRODUCT((Detail!$D$7:$D$500" & _
"=""Tx Missing"")*(Detail!$B$7:$B$500=Summary!$A$" & _
'<---------- THIS LINE
i & "))")
Worksheets("Summary").Cells(i, "L").Value = cnt
Next i

End Sub
-----------------------------------------------------------------
where it says Tx Missing it is not always appears as Tx Missing,
sometimes it would have certain numbers after that sentence, and they
would be always random, for example Tx Missing-15678, or Tx
Missing-14786, so how would I specify in my macro that i need it to
look not for exact words, but for a sentece that starts with Tx
Missing.....
i have tryed to use < signs instead of = will work in my case for
this function, but i have similar funtions that i will need to create
and they are not workting properly :( please help me :)

 
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
SumProduct not Working in a Macro Booey Excel Worksheet Functions 6 March 18th 10 09:13 AM
SUMPRODUCT macro Kim Excel Discussion (Misc queries) 2 September 21st 09 04:36 PM
macro with SUMPRODUCT help [email protected] Excel Programming 8 August 30th 06 10:27 PM
sumproduct in Excel Macro Richard Excel Programming 5 June 26th 06 09:41 PM
How to use SUMPRODUCT in macro? Tarek Excel Programming 6 April 27th 05 07:03 AM


All times are GMT +1. The time now is 04:42 PM.

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"