excel - Using INDIRECT to sum cells in another spreadsheet -


in worksheet titled “data!” have following successful formula:

=sum(indirect(char(64+match(e3,a3:n3,0))&match($b165,$a$1:$a$900,0)&":"&(char(64+match(e3,a3:n3,0))&match($b165,$a$1:$a$900,0)+$o$2-1))) 

please don't bother details, problem related referencing spreadsheet, explained below. in sum, above formula works intended summing cells e124 e133. in cell e3 have desired column name. in b165 have desired year.

i need formula in different worksheet. so, in second worksheet i’ve written:

=sum(indirect("data!"&(char(64+match(data!e3,data!a3:n3,0))&match($o3,data!a1:a900,0)&":"&"data!"&(char(64+match(data!e3,data!a3:n3,0)&match($o$3,data!a1:a900,0))))) 

however, brings me #value error.

when break formula 2 parts works.

that is, works: char(64+match(data!e3,data!a3:n3,0))&match($o3,data!a1:a900,0)

and works: (char(64+match(data!e3,data!a3:n3,0)&match($o$3,data!a1:a900,0)))

but when combine 2 breaks down. suppose error has parts bolded below reference initial worksheet.

=sum(indirect(**"data!"**&(char(64+match(data!e3,data!a3:n3,0))&match($o3,data!a1:a900,0)&":"**&"data!"**&(char(64+match(data!e3,data!a3:n3,0)&match($o$3,data!a1:a900,0)))))) 

any guidance appreciated!!

updated
updated formula, , works perfect now.
here corrected version of formula:

=sum(indirect("data!"&(char(64+match(data!e3,data!a3:n3,0))&match($g3,data!a1:a900,0)&":"&char(64+match(data!e3,data!a3:n3,0))&(match($g$3,data!a1:a900,0)+data!$o$2-1)))) 

i think gonna work.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -