2017-02-24 35 views
0

我需要「工作移位」上的「工資」欄等於「工資」選項卡上按日期計算的工資總和。使用vlookup進行Sumifs。我認爲

看來我無法嵌入圖像,所以我也複製了下面的幾行。

因此,這將是這樣的:

Example of Spreadsheet

曾爲移標籤:

Badge Number Person Number First Name Last Name Full Name Apply Date Start DTM End DTM Cost Center Operation Wages   
420 H540004420 Jeffrey O'Neal Anderson Anderson, Jeffrey O'Neal 2/13/2017 2/13/2017 6:00AM 2/13/2017 6:00PM 10221 0 $355.29   
420 H540004420 Jeffrey O'Neal Anderson Anderson, Jeffrey O'Neal 2/14/2017 2/14/2017 6:00AM 2/14/2017 6:00PM 10221 0 $355.29   

工資標籤:

Employee ID Full Name Effective Date Wages Base Wage 
H540004420 Anderson, Jeffrey O'Neal 2/13/2017 152.28 25.38 
H540004420 Anderson, Jeffrey O'Neal 2/13/2017 203.04 25.38 
H540004420 Anderson, Jeffrey O'Neal 2/14/2017 152.28 25.38 
H540004420 Anderson, Jeffrey O'Neal 2/14/2017 203.04 25.38 

回答

0

您可以使用=SUMIFS()來實現這一目標。

=SUMIFS(Wages!$D:$D, Wages!$A:$A, B2, Wages!$C:$C, F2) 

當個人號碼和日期匹配時,這將在Wages之內求和D列。