2013-08-02 48 views
0

我已經Excel工作簿用3片在柱一定值:如何選擇單元,如果它有在它旁邊

表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個數字等。

任何想法?

回答

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:H,2, Sheet2!I:I)

在ColumnI中添加來自Sheet1和Sheet2行數值總和的總計,其中ColumnH包含相應行中的條件(1代表一個單元格,2代表另一個單元格)。

=SUMIF

相關問題