Excel: Summing noncontiguous array via indirect + address -


=indirect(address(rows(adf$1:adf1642),match(sheet2!$c$25:$c$29,sheet1!1:1,0))) 

that formula returns {"$afx$1642";"$ajr$1642";"$akf$1642";"$ajd$1642";"$aip$1642"} without indirect, , values in cells indirect prefix. need sum them all, returns first: $afx$1642.

there indeed similar topics, solutions not include lookup nature of matching array sheet 2, array in sheet 1 has multitude of columns quote, unquote, "exclude".

halp!

i'm not particularly fond of current set-up, have (a worksheet references column aip?!), nor of current formula using (there better alternative constructions using indirect/address). however, without knowing precisely trying achieve, , not being able see actual workbook, it's difficult suggest improvements.

the coercion require current construction is:

=sumproduct(n(indirect(address(rows(adf$1:adf1642),match(sheet2!$c$25:$c$29,sheet1!1:1,0)))))

regards


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -