Hi
I'm not sure how to word this so bear with me!
I asked a while ago how to find the first instance of "" using MATCH, to which I got a great reply...
' =MATCH(TRUE,INDEX(A1:A20="",0),0) '
This works perfectly and is entered as a normal formula (rather than an array formula - Crtl+Shift+Enter).
My query is, what is the difference in using ' INDEX(A1:A20="",0) ' and simply ' A1:A20="" '?
Using ' =MATCH(TRUE,A1:A20="",0) ' gives an error. Although when I enter this as an array formula it works the same as the answer I was given above.
When evaluating the lookup_array section of the MATCH function (using F9) both ' INDEX(A1:A20="",0) ' and ' A1:A20="" ' return and array, e.g. FALSE; FALSE; TRUE; FALSE, etc, etc, etc.
So why when the array is return from using INDEX does it not have to be entered as an array formula? I can't find the answer to this anywhere, maybe because i'm not sure what to search for. However, I think, and hope, the answer is quite interesting!
..........................................Afterthought...................................
Just a thought as I was typing this! Is it something to do with INDEX having an array as it's first "parameter" (if that's why they're called in Excel)? Does this expect to return an array where-as with MATCH the first parameter is not an array? NOT SURE!?! Please help me understand!
I'm not sure how to word this so bear with me!
I asked a while ago how to find the first instance of "" using MATCH, to which I got a great reply...
' =MATCH(TRUE,INDEX(A1:A20="",0),0) '
This works perfectly and is entered as a normal formula (rather than an array formula - Crtl+Shift+Enter).
My query is, what is the difference in using ' INDEX(A1:A20="",0) ' and simply ' A1:A20="" '?
Using ' =MATCH(TRUE,A1:A20="",0) ' gives an error. Although when I enter this as an array formula it works the same as the answer I was given above.
When evaluating the lookup_array section of the MATCH function (using F9) both ' INDEX(A1:A20="",0) ' and ' A1:A20="" ' return and array, e.g. FALSE; FALSE; TRUE; FALSE, etc, etc, etc.
So why when the array is return from using INDEX does it not have to be entered as an array formula? I can't find the answer to this anywhere, maybe because i'm not sure what to search for. However, I think, and hope, the answer is quite interesting!
..........................................Afterthought...................................
Just a thought as I was typing this! Is it something to do with INDEX having an array as it's first "parameter" (if that's why they're called in Excel)? Does this expect to return an array where-as with MATCH the first parameter is not an array? NOT SURE!?! Please help me understand!