Advertisement
Advertisement
| 04.25.2008 at 02:46PM PDT, ID: 23355074 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: |
Sub vb()
Dim endrow As Long
endrow = Cells(65536, "A").End(xlUp).Row
Range("G3").Select
c = 3
Do Until c > Cells(65536, "G").End(xlUp).Row
MsgBox Application.Evaluate("SUMPRODUCT((A1:A" & endrow & "=""" & ActiveCell.Offset(0, 1).Value & """)*(B1:B" & endrow & "=" & ActiveCell.Value & "))")
ActiveCell.Offset(1, 0).Select
c = c + 1
Loop
Dim RNG As Range, RNG1 As Range
Set RNG = Range("A1:A" & Cells(65536, "A").End(xlUp).Row)
Set RNG1 = Range("B1:B" & Cells(65536, "A").End(xlUp).Row)
Range("G3").Select
c = 3
Do Until c > Cells(65536, "G").End(xlUp).Row
MsgBox Application.Evaluate("SUMPRODUCT((" & RNG.Address & "=""" & ActiveCell.Offset(0, 1).Value & """)*(" & RNG1.Address & "=" & ActiveCell.Value & "))")
ActiveCell.Offset(1, 0).Select
c = c + 1
Loop
Set RNG2 = Range("C1:C" & Cells(65536, "A").End(xlUp).Row)
Range("G3").Select
c = 3
Do Until c > Cells(65536, "G").End(xlUp).Row
Range("K8").Formula = "=SUMPRODUCT((" & RNG.Address & "=""" & ActiveCell.Offset(0, 1).Value & """)*(" & RNG1.Address & "=" & ActiveCell.Value & ")*(" & Right(RNG2.Address, 4) & "=" & Right(ActiveCell.Offset(0, 2).Value, 4) & "))"
ActiveCell.Offset(1, 0).Select
c = c + 1
Loop
End Sub
|