用vlookup汇总。我想

时间:2017-02-24 15:07:13

标签: excel excel-formula

我需要在工资变化上的工资栏等于工资标签上按日期计算的工资总和。

看来我还无法嵌入图片,所以我也在下面复制了几行。

所以它看起来像这样:

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

1 个答案:

答案 0 :(得分:0)

您可以使用=SUMIFS()来实现此目标。

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

当人数和日期匹配时,这将在Wages中对D列求和。