Array formula on INDEX function not working
Because B1:B2 just returns the first value in that array, 2.
Try this
=SUM(INDEX(IF(ISNUMBER(MATCH(ROW(A1:A5),B1:B2,0)), A1:A5),0))
--
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"vsoler" wrote in message
oups.com...
.......A.........B
1.....1..........2
2.....3..........4
3.....7
4.....12
5.....13
To my surprise, {=SUM(INDEX(A1:A5;B1:B2))} returns 3, and not 15
(entered with Ctrl-Shift-Enter)
Can anybody explain and give correct formula?
Thank you
|