date range - How to use LOOKUP from two different sheets? -


i have calc document has n sheets. first sheets equal , contain data. last sheet summary.

my problem need use lookup function in last sheet data in n-1 previous sheets. doesn't work:

=lookup(x, sheet1.a1:sheet9.a100, sheet1.b1:sheet9.b100) 

in case it's valid solution requires hardcode sheets, i.e.:

=lookup(x, fantastic_join_function(sheet1.a1:a100;sheet2.a1:a100;sheet3.a1:a100; ... ), fantastic_join_function(sheet1.b1:b100;sheet2.b1:b100;sheet3.b1:b100; ...)) 

but don't know fantastic_join_function...

any idea?

one way put in cell a1 (or somewhere else convenient) on summary sheet:

=lookup(x, sheet1.$a$1:$a$100, sheet1.$b$1:$b$100) 

in cell a2 put this:

=lookup(x, sheet2.$a$1:$a$100, sheet2.$b$1:$b$100) 

continue way n-1 rows.

now need rid of #n/a errors. this, put in cell b1:

=if(isna(a1),"",a1) 

then fill formula down n-1 rows.

finally, merge values single cell. numerical data. works:

=sum(b1:b100) 

for text data, concatenate n-1 cells in b column, example:

=b1&b2&b3&b4&b5 

Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -