It is not related to the INDEX being inside another function. When 0 is used for the row number in INDEX then INDEX will return all rows. It is covered by the 3rd bullet point in the Remarks section of the INDEX Helpthe syntax would be Index(range, row, col). Why we use row number as ZERO when we use Index function inside other function ?
24 11 22.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | a | b | b | |||
2 | c | d | d | |||
3 | e | f | f | |||
4 | g | h | h | |||
INDEX sample |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D1:D4 | D1 | =INDEX(A1:B4,0,2) |
Dynamic array formulas. |
Thank you Peter for this crisp explanation. I got it now.@MARZIOTULLIO
Answering a question asked of you with a video that is over an hour long is not appropriate.
@cshetty
It is not related to the INDEX being inside another function. When 0 is used for the row number in INDEX then INDEX will return all rows. It is covered by the 3rd bullet point in the Remarks section of the INDEX Help
Here is a simple example. The index function returns all rows (because of the zero) of the second column of the target range.
24 11 22.xlsm
A B C D 1 a b b 2 c d d 3 e f f 4 g h h INDEX sample
Cell Formulas Range Formula D1:D4 D1 =INDEX(A1:B4,0,2) Dynamic array formulas.