I am trying to create an excel macro which involves copying data between two workbooks (say wb1 and wb2).
In wb2 I want to assign a certain formula to a series of cells of a specific column. So the cell of wb1 referenced in the formula has to be incremented.
F1(wb2) = COUNTIF(range in wb1,contidion)*A1(wb1)*B1(wb1)
F5(wb2) = COUNTIF(range in wb1,condition)*A2(wb1)*B2(wb1)
.
.
.
F50(wb2)= COUNTIF(range in wb1,condition)*A10(wb1)*B10(wb1)
How can I acheieve this using excel Macros ?