Hi All,
I need help to edit below formula.
I want to autofill the formulas starting with the IFERROR (G2) in the column G until the last row that contains the data in the cells next to it (Column C, D, E & I).
Column C,D, E & I is the cells that the IFERROR refers to.
Sub fill_all_column()
' Fill the range G2 till EndRow
Dim rg As Range
Dim cll As Range
Set rg = Range("G2:EndRow")
For Each cll In rg
cll.FormulaR1C1 = "=IFERROR(INDEX('Register OUT'!R3C:R2000C11,MATCH(1,(DataBase!R2C3='Register OUT'!R3C3:R2000C3)*(DataBase!R2C4='Register OUT'!R3C4:R2000C4)*(DataBase!R2C5='Register OUT'!R3C5:R2000C5)*(DataBase!R2C9='Register OUT'!R3C9:R2000C9),0),7),0)"
End Sub
Highlighted with red color need to change depends on rows number.
Thank you.
I need help to edit below formula.
I want to autofill the formulas starting with the IFERROR (G2) in the column G until the last row that contains the data in the cells next to it (Column C, D, E & I).
Column C,D, E & I is the cells that the IFERROR refers to.
Sub fill_all_column()
' Fill the range G2 till EndRow
Dim rg As Range
Dim cll As Range
Set rg = Range("G2:EndRow")
For Each cll In rg
cll.FormulaR1C1 = "=IFERROR(INDEX('Register OUT'!R3C:R2000C11,MATCH(1,(DataBase!R2C3='Register OUT'!R3C3:R2000C3)*(DataBase!R2C4='Register OUT'!R3C4:R2000C4)*(DataBase!R2C5='Register OUT'!R3C5:R2000C5)*(DataBase!R2C9='Register OUT'!R3C9:R2000C9),0),7),0)"
End Sub
Highlighted with red color need to change depends on rows number.
Thank you.