Hi I need some help here.
How do I translate this to a VBA code?
=IFERROR(INDEX('DN transaction log'!C:K,MATCH(1,('Array (2)'!D2='DN transaction log'!C:C)*("Cargo Received"='DN transaction log'!F:F),0),7),"")
Thanks a lot!!
Hi I need some help here.
How do I translate this to a VBA code?
=IFERROR(INDEX('DN transaction log'!C:K,MATCH(1,('Array (2)'!D2='DN transaction log'!C:C)*("Cargo Received"='DN transaction log'!F:F),0),7),"")
Thanks a lot!!
Re: Urgent!!! Translate index/match function to vba code
Are you looking to have VBA put that exact formula into a cell or are you looking for VBA to give you the same result as that formula?
Re: Urgent!!! Translate index/match function to vba code
I need a vba code to put exact formula into a cell, thanks a lot~
Re: Urgent!!! Translate index/match function to vba code
Which cell is it going in? What Range? Is this Range Variable i.e. number of rows that change? Which column? Which Sheet?
Re: Urgent!!! Translate index/match function to vba code
Sample Code
Sub Indexer()
'Single Cell
Worksheets("Sheet1").Select
Range("A2").Formula = "=IFERROR(INDEX('DN transaction log'!C:K,MATCH(1,('Array (2)'!D2='DN transaction log'!C:C)*(""Cargo Received""='DN transaction log'!F:F),0),7),"""")"
'Multi Cell
Dim LstRow As String
Worksheets("Sheet1").Select
LstRow = Cells(Rows.Count, "A").End(xlUp).Row
Range("B2:B" & LstRow).Formula = "=IFERROR(INDEX('DN transaction log'!C:K,MATCH(1,('Array (2)'!D2='DN transaction log'!C:C)*(""Cargo Received""='DN transaction log'!F:F),0),7),"""")"
End Sub
Display More
Re: Urgent!!! Translate index/match function to vba code
It works!! Works like magic hahaha thank you very much!!
Don’t have an account yet? Register yourself now and be a part of our community!