I've got to take some of that back.
With <Ctrl> <Enter>, *nothing* works correctly, not even in D1

3 !
--
Regards,
RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------
Frank, XPpro, XL'02,
Your example works for me *accurately*, no matter where I enter it!
Can't duplicate your "bad" results,
--
Regards,
RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------
Hi Alan
I don't know what you mean by "a different type of object".
the result of this function is neither an array of results (as you can
see by pressing F9 in the formula bar and the non function of the
initial formula the OP posted) nor a single result as it returns
different values depending on the location of the target cell.
I think Harlan once called this a 'different type of collection'.
I guess I also don't know what you mean by "the cell position you enter
the formula in"; could you give an example to show that you get
different results depending on which two cells are used to array enter
the result?
lets assume the following setup:
A B C
1 A 10 C
2 B 20 A
3 C 30 B
Now try the following:
1. Select D1

3 and enter the following formula with CTRL+ENTER (NOT as
array formula)
=VLOOKUP(C1:C3,A1:B3,2,0)
And you'll get the (expected?) result of
30
10
20
2. Now enter the same in the cells E2:E4 and you'll get the result
10
20
#NA
Personally I don't like the idea that the SAME formula I'm entering
returns a DIFFERENT result depending on the cell location I'm entering
this formula in. I know that the result would wlays be 30, 10, 20 if I
would enter the formula as multi-cell array formula in 3 cells but
still I find it strange that the non-array formula returns different
results.
And this is for me a good reason to avoid this kind of syntax. And
coming back to 'this formula does not return an array'. If VLOOKUP
would return an array the array formula
=SUM(VLOOKUP(C1:C3,A1:B3,2,0))
would return 60. But it just returns 30

)
the same 'problem' can also be found for the INDEX function.
On the other hand LOOKUP and MATCH DO return an array of scalars
So I would consider this as one of Excel's mysteries. Maybe someone
else could offer a more detailed explanation for this behaviour
(Harlan?)
Frank