I would like to use the following code in vba:
Dim negocio As String
Dim feeder As String
Dim origenAWB As String
Dim destinoAWB As String
Set WS = ActiveSheet
negocio = Cells(6, 6).Value
feeder = Cells(8, 6).Value
origenAWB = Cells(10, 6).Value
destinoAWB = Cells(12, 6).Value
For i = 1 To 53
WS.Cells(24, 1 + i) _
= Sheets("Proyeccion").Evaluate("=INDEX(6+i,(MATCH(1,(B:B=""" & negocio & """) * (C:C=""" & feeder & """) * (D:D=""" & origenAWB & """) * (E:E=""" & destinoAWB & """),0))")
Next i
For the INDEX part, I need to get the value of the 6+i th column, but I don't know how to do it, since columns are labeled with letters.
What I need to do is to find values that match multiple criteria in a "table". For example, if I have the following table:
A B C D E
1 a1 a2 a3 a4 a5
2 b1 b2 b3 b4 b5
3 . . .
4 . . .
5 . . .
.
.
.
I need the get the value in column E that match the values in columns A, B, C and D. For example, for values a1, a2, a3 and a4 I should get a5. All this, using VBA.