montecarlo2012
Well-known Member
- Joined
- Jan 26, 2011
- Messages
- 986
- Office Version
- 2010
- Platform
- Windows
Hello.
Thank you for reading this.
I don't know how to loop all these little macros.
my reading data are at sheet2 M2:M37 to the last row on each row, (each row is different)
my display data will be at sheet1 B2:B102
Have a nice Sunday.
VBA Code:
Sub Macro1()
Range("B2:B102").Select
Selection.FormulaArray = _
"=FREQUENCY(Sheet2!RC[11]:RC[1528],Sheet1!RC[-1]:R[100]C[-1])"
End Sub
Sub Macro2()
Range("C2:C102").Select
Selection.FormulaArray = _
"=FREQUENCY(Sheet2!R[1]C[10]:R[1]C[1482],Sheet1!RC[-2]:R[100]C[-2])"
End Sub
Sub Macro3()
Range("D2:D102").Select
Selection.FormulaArray = _
"=FREQUENCY(Sheet2!R[2]C[9]:R[2]C[1460],Sheet1!RC[-3]:R[100]C[-3])"
End Sub
I don't know how to loop all these little macros.
my reading data are at sheet2 M2:M37 to the last row on each row, (each row is different)
my display data will be at sheet1 B2:B102
Have a nice Sunday.