的SUM时间值在本文中,我们将学习如何在Excel中使用SUMIFS对具有多个条件的值求和。

简而言之,使用长数据表时。有时我们需要找到具有多个条件的时间值的总和。 SUMIFS函数公式查找需要满足多个条件的数组的SUM。因此,我们使用SUMIFS函数制作了一个公式来满足多个条件。

SUMIFS函数返回具有多个条件的范围之和。

通用公式:

= SUMIFS ( Sum_range , range1 , "value1" , range2, ">value2", ….)

变量:

Sum_range:需要求和的范围(时间值)。

range1:应用标准value1的范围。

值1:应用于范围1的值标准。

range2:应用标准value2的范围。

值2:应用于范围2的价值标准。

在示例中,让我们更多地了解此功能。

示例:

在数据库中,雇员的条目随时间记录。现在,公司想知道某个特定员工花多少时间。

image

我们需要获取具有2个条件的时间值的总和。条件如下。

。日期必须在2019年1月1日之后。 。日期必须在2019年1月7日之前。 。与特定员工匹配的员工ID。

因此,我们将使用公式来获得总时间

`链接:/ lookup-formulas-lookup-价格为产品或服务在excel [上一页] [

link:/ summary-sum-time-over-9-hours-excel [下一步]

= SUMIFS ( time , date , ">=" & A2 , date , "time ( C2:C15 ) : Sum_range where values gets sum

ID ( B2:B15 ) : range where criteria is applied.

date , ">=" & A2 : Dates after the January 1st, 2019.

date , "<" & A2+7 : Dates before the January 7th, 2019.

Explanation for the formula:

Here the SUMIFS function satisfies all the conditions mentioned. The function returns the SUM of the time values only which satisfies all the criteria in the formula.

Here the arguments to the function is given as cell references and named ranges. The yellow marked boxes indicates the named ranges used.

As you can see the formula returns 0:25 , the Total time spent by Emp_001.

Now to calculate the time spent by Emp_002. We will use the formula:

= SUMIFS ( time , date , ">=" & A2 , date , "

As you can see the formula returns 0:45 , the Total time spent by Emp_002.

Here are some observational notes when using the formula.

Notes:

The SUMIFS function supports logical operators like <, >, <>, = but these are used using double quote sign ( " ) .

The SUMIFS function also supports Wildcards ( * , ? ) which helps in extracting values having phrases.

Non - numeric values must be provided in double quotes ("value").

The function returns the sum of the values satisfying all the conditions.

Hope you understood how to Find the SUM time values having multiple criteria in Excel. Explore more articles on Excel SUMIFS function here. Please feel free to state your query or feedback for the above article.

Related Articles

3 SUMIF with Or Formulas : multiple use of SUMIF function with a logic OR function in excel.

How to Use SUMIFS Function in Excel : Use of SUMIFS function explained with example in excel.

SUMIFS using AND-OR logic : Use of SUMIFS function with 2 logic OR & AND function in excel.

SUMIF with non-blank cells : Use of SUMIF function to catch blank cells in Excel.

SUMIFS with dates in Excel : Use of SUMIFS function with dates as criteria in Excel.

Popular Articles

Edit a dropdown list

If with conditional formatting

If with wildcards

Vlookup by date

link:/ summing-sum-if-date-is-between [继续]``link:/ summing-sum-if-date-is-between [无评论]

  • link:/如果单元格等于值则求和[如果单元格等于值…​的总和…​]

link:/如果单元格等于值,则求和[继续__]

  • `link:/如果单元格不等于值,则求和[如果单元格不等于E中的值,如何求和…​]

类别* // basic-excel [Basic Excel]
  • //日期时间功能[日期和时间功能]

  • // excel-365-functions [Excel 365函数]

  • // excel-business-templates-and-dashboards [Excel业务模板和仪表板]

  • // excel-dashboards [Excel仪表板]

  • // excel-datas [Excel数据]

  • // excel-date-and-time [Excel日期和时间]

  • // excel-errors [Excel错误]

  • // excel-formula-and-function [Excel公式和函数列表]

  • // excel-generals [Excel General]

  • // excel-macros-and-vba [Excel宏和VBA]

  • // excel-text-editing-and-format [Excel文本,编辑和格式]

  • //提示[Excel提示和技巧]

  • //信息功能[信息功能]

  • // vba-basic-topics [VBA基本主题]

  • // vba-general-topics [VBA一般主题]