English 中文(简体)
每一职位每月薪金的总和
原标题:Need excel formula to sum the salaries per month for each position

我有一个公式,即每个月每个职位都有多少雇员,但现在要获得每个月职位每个雇员的工资。 这里使用的公式是计算部分。 我想有一个公式,即不计算每个月每个职位有多少雇员,而是要求每月工资。

=+COUNTIFS(
     Employee Census Report !$O$2:$O$412, "<=" &  Headcount Database !F$4,
     Employee Census Report !$P$2:$P$412, "=" & "n/a",
     Employee Census Report !$Q$2:$Q$412, "=" &  Headcount Database !$E174,
     Employee Census Report !$G$2:$G$412, "=" &  Headcount Database !$E$172
) +
    COUNTIFS(
         Employee Census Report !$O$2:$O$412, "<=" &  Headcount Database !F$4,
         Employee Census Report !$P$2:$P$412, ">" & F$4,
         Employee Census Report !$Q$2:$Q$412, "=" &  Headcount Database !$E174,
         Employee Census Report !$G$2:$G$412, "=" &  Headcount Database !$E$172
    )

https://i.stack.imgur.com/q9ENQ.png”rel=“nofollow noreferer”>Headcount Database

Below is the tab where the data comes from employee Census Report

......

最佳回答

如果在条件允许的情况下计算这笔钱,而且你又在同样条件下努力提取这笔钱,我将把它改为一笔钱,简单地在前一种公式的第一部分中增加数额。

http://www.ohchr.org。

问题回答

为简明扼要起见,请在<编码>“薪金”栏目中假设每名雇员薪金数据,并在<代码>“日报”和<代码>的雇用日期(所有日期均为日值,而不是文字说明)。 我们还需要一个能够识别该雇员的领域,请说“Empl ID”

然后,如果雇员有<条码>xxx,则可以采用两种方法检索特定日期的工资数据:<条码>d0和<条码>d1(>d0和<条码>d1)。

<代码> SUMPRODUCT (月薪, Empl ID = xxx, --(Hire Annual < d0) www.un.org/Depts/DGACM/index_french.htm

or

= FILTER ( Monthly Salary, (Empl ID = xxx) * (--(Hire Date < d0)) * (--(Term Date > d1)) )

为获得所有薪金总额,仅贴上<编码>Empl ID = xxx。

为获得较小类别的款项,添加一个类别而不是<代码>Empl ID = xxx。 E.g. Dept = “RnD”

注:) 只能是返回人数(例如,工资)。 <>代码>FILTER(>> 可返回号码或舱位。





相关问题
import of excel in SQL imports NULL lines

I have a stored procedure that imports differently formatted workbooks into a database table, does work on them then drops the table. Here is the populating query. SELECT IDENTITY(INT,1,1) AS ID ...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

Excel date to Unix timestamp

Does anyone know how to convert an Excel date to a correct Unix timestamp?

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...

Importing from excel "applications" using SSIS

I am looking for any tips or resources on importing from excel into a SQL database, but specifically when the information is NOT in column and row format. I am currently doing some pre-development ...

热门标签