Naceur
New Member
I have used INDEX function with a horizontal array but I have made an error. The problem is that INDEX always returns the correct answer. Here is the case:
Let's say you have the values "A", "B" and "C" in cells C3, D3 and E3.
In a blank cell, type the formula =INDEX(C3:E3,2) (this formula retrieves the value in the 2nd row in a horizontal array with ONE row.
The problem is that this formula will return the right result, i.e. the second value "B".
Now try the formula =INDEX(C3:E3,,2). It will return the same result.
Does anyone have an explanation?
NB: it doesn't work with a vertical array
Let's say you have the values "A", "B" and "C" in cells C3, D3 and E3.
In a blank cell, type the formula =INDEX(C3:E3,2) (this formula retrieves the value in the 2nd row in a horizontal array with ONE row.
The problem is that this formula will return the right result, i.e. the second value "B".
Now try the formula =INDEX(C3:E3,,2). It will return the same result.
Does anyone have an explanation?
NB: it doesn't work with a vertical array
