(excel 2013) 3D formula with VLOOKUP function -
some time ago asking similar question in here 3d formula same position of cells facing more difficult problem. have sheet named storage , other sheets called shop1, shop2.
in storage have of sold not in every shop sell same , goods. in shop dont find specific example. , want. in every sheet store number of sold goods , in storage have sum number of sold goods. lookup if item storage sold in each shop , if yes, lookup number , add sum.
it easy if items storage on same row. example sum items on row 2 be
=sum(shop1:shop4!c2)
but there plenty white , waste places because shop sell part of goods storage. use vlookup function it. thaught can use
=sum(vlookup(a2;shop1:shop2!a:b;2;false))
but formula gives me error message. how give 3d formula vlookup function?
thanks answer
edit: want add item storage not on same row on each shop, example item1 can on third row in shop1 sheet on 10th row on shop2 sheet , in shop3 sheet not find item1.
first go name manager (formulas tab) , define following:
name: sheetlist
refers to: ={"shop1","shop2","shop3","shop4"}
(or whatever happen sheet names in question.)
the required formula then:
=sumproduct(sumif(indirect("'"&sheetlist&"'!a:a");a2;indirect("'"&sheetlist&"'!b:b")))
regards
Comments
Post a Comment