Jon von der Heyden
MrExcel MVP, Moderator
- Joined
- Apr 6, 2004
- Messages
- 10,912
- Office Version
- 365
- Platform
- Windows
Hi All
Say I have the following:
Although the match value is an array, I would have assumed the result to return an array.
Selection is same dimension (9 rows, 1 column).
I have also attempted the same using index alternative to if(row()... And I have tried an INDEX MATCH approach, instead of VLOOKUP.
Any idea why it isn't behaving as expected?
Edit: Some debugging info if it helps... The result is definitely an array result i.e. Variant(1 to 9, 1 to 1). Every value in the array is the result of the first vlookup, i.e. vlookup('Test'!A2,'Test'!D2:E4,2,false).
Regards
Jon
Say I have the following:
Code:
Selection.Value = "if(row(),vlookup('Test'!$A$2:$A$10,Test!$D$2:$E$4,2,false))"
Although the match value is an array, I would have assumed the result to return an array.
Selection is same dimension (9 rows, 1 column).
I have also attempted the same using index alternative to if(row()... And I have tried an INDEX MATCH approach, instead of VLOOKUP.
Any idea why it isn't behaving as expected?
Edit: Some debugging info if it helps... The result is definitely an array result i.e. Variant(1 to 9, 1 to 1). Every value in the array is the result of the first vlookup, i.e. vlookup('Test'!A2,'Test'!D2:E4,2,false).
Regards
Jon
Last edited: