我有一张包含3张的Excel工作簿:
第1页和第2页
Columns A-G have text entered into them Column H is a selection of either 1,2, 3 or H from a drop down list Column I has numeric (currency) value entered into it (called year 1) Column J has numeric (currency) value entered into it (called year 2) Column K has numeric (currency) value entered into it (called year 3) Column L has numeric (currency) value entered into it (called year 4) Column M has numeric (currency) value entered into it (called year 5) Column N has numeric (currency) value entered into it (called years 6-10)
表3包含一个表格。
我需要一个能够获取数字并转移并将它们添加到表3中的公式。
所以我需要知道第1年(第I列)的总数,如果H列读取数字1以转移到表3中的单元格,然后进入不同的单元格,则第1年(第I列)的总数(如果列) H读数字2等。
有什么想法吗?
答案 0 :(得分:2)
这可能适合:
= SUMIF(Sheet1!H:H,1,Sheet1!I:I)+ SUMIF(Sheet2!H:H,1,Sheet2!I:I)
编辑 - 以及其他单元格(!):
= SUMIF(Sheet1!H:H,2,Sheet1!I:I)+ SUMIF(Sheet2!H:H,2,Sheet2!I:I)
从SheetI和Sheet2中添加ColumnI中行值总和的总计,其中ColumnH包含相应行中的标准(一个单元格为1,另一个单元格为2)。