如果在其旁边的列中有一定的值,如何select一个单元格
我有一个Excel工作簿3张:
工作表1和工作表2
Columns AG 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。
所以我需要知道第一年(第一列)的总和,如果列H读取数字1转移到表格3上的一个单元格,然后如果列H读取一个单元格到第一年的第一列数字2等。
有任何想法吗?
这可能适合:
= SUMIF(!Sheet 1中H:H,1,工作表Sheet I:!I)+ SUMIF(Sheet 2中H:!H,1,Sheet 2中I:!I)
编辑 – 和其他单元格(!):
= SUMIF(!Sheet 1中H:H,2,工作表Sheet I:!I)+ SUMIF(Sheet 2中H:1 H,2,Sheet 2中I:!I)
在ColumnI中添加来自Sheet1和Sheet2的总计行数值的总计,其中ColumnH包含相应行中的条件(1代表一个单元格,2代表另一个单元格)。
= SUMIF