montecarlo2012
Well-known Member
- Joined
- Jan 26, 2011
- Messages
- 986
- Office Version
- 2010
- Platform
- Windows
Good Morning, Happy friday. 5:45 am here in Orlando.
I am trying to use CountIf in a loop but I see my logic it is not working
this is what I tried in order to figure out the logic
so base on this I assume M would be a variable i, MX variable j and A variable k, and base on my start point and my end point I come out with this
and of course do not work, I am very disappointed with myself.
this is what I get manually.
So, PLEASE
how can I resolve this,
First, thank you for reading this
second, would be nice to hear from you guys, and please tell me why my logic do not work.
I am trying to use CountIf in a loop but I see my logic it is not working
this is what I tried in order to figure out the logic
VBA Code:
Sub AK()
Dim i As Integer, j As Integer, k As Integer
For i = 3 To 95
For j = 12 To 54
For k = 1 To 95
Sheet2.Cells(3, 12).Formula = "=COUNTIF(SHEET1!I:J,sheet2!K)"
Next
Next
Next
End Sub
this is what I get manually.
So, PLEASE
how can I resolve this,
First, thank you for reading this
second, would be nice to hear from you guys, and please tell me why my logic do not work.