I'm doing some data processing, and I want to achieve this:
A 1
B 36
C 0
D 36
...
To achieve this, I came up with a formula which I want to loop down one column :
Range("C2").Select
ActiveCell.FormulaR1C1 = _
"=IFERROR(VLOOKUP(RC[-1],'incident_summary - Jan.csv'!R3C2:R11C3,2,FALSE),0)"
Range("C2").Select
Selection.AutoFill Destination:=Range("C2:C11"), Type:=xlFillDefault
Range("C2:C11").Select
This formula uses vLookup to look for the data point in the source workbook, all of which are located in the same folder on my shared network. As the source workbook may not contain all the data points, ifError is set to return the number for that data point as 0 in the destination workbook.
As you can tell from above, I have 10 data points per month, which I need to fill up for 12 months in one column.
But is I cannot understand how can I loop this formula while changing 'incident_summary - Jan.csv' to Feb, Mar, Apr, etc... as I need to loop this formula for a whole year aka Jan-Dec so any suggestions?