I enter this formula in excel and get the results that I want. When I put the macro recorder version into a module and run it, the code works, but is structured completely differently and doesn't make sense to me. Can someone help explain this?
Formula Directly in WS
=INDEX(Bios!J:J,MATCH('Client Summary'!D2,Bios!E:E,0))
Formula From Macro Recorder
=INDEX(Bios!C[4],MATCH('Client Summary'!RC[-2],Bios!C[-1],0))
What doesn't make sense to me is, in the first formula, the first column reference I make is to column J (the 10th column), but the macro recorder version shows column 4. The only 4th column that I leverage, is from the Client Summary sheet, but it appears that the 4th column from the Bios sheet is being leveraged, which makes no sense to me. Also, when I recorded the macro, I never went back a column.
Like I said, the macro recorder version works, but the structure doesn't make sense to me, and I want to understand the code that I'm using.
Formula Directly in WS
=INDEX(Bios!J:J,MATCH('Client Summary'!D2,Bios!E:E,0))
Formula From Macro Recorder
=INDEX(Bios!C[4],MATCH('Client Summary'!RC[-2],Bios!C[-1],0))
What doesn't make sense to me is, in the first formula, the first column reference I make is to column J (the 10th column), but the macro recorder version shows column 4. The only 4th column that I leverage, is from the Client Summary sheet, but it appears that the 4th column from the Bios sheet is being leveraged, which makes no sense to me. Also, when I recorded the macro, I never went back a column.
Like I said, the macro recorder version works, but the structure doesn't make sense to me, and I want to understand the code that I'm using.