Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Excel Pie Chart
  • Filter Data Based on Date in Excel
  • How to calculate correlation coefficient Correlation in Excel
  • How To Insert and Customize Sparklines in Excel
  • How to combine 2 or more chart types in a single chart in Excel

References

  • How to get relative row numbers in a range in Excel
  • How to get first column number in range in Excel
  • Perform case-sensitive Lookup in Excel
  • VLOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel ROW Function

Data Validations

  • Excel Data validation whole percentage only
  • Data validation must not exist in list
  • Prevent invalid data entering in specific cells
  • Excel Data validation number multiple 100
  • Excel Data validation don’t exceed total

Two ways to sum time over 30 minutes in Excel

by

To sum the total amount of time over 30 minutes, given a set of times that represent duration, you can use the SUMPRODUCT and TIME functions. Alternatively, use SUMIFS and COUNTIFS functions.

Formula

=SUMPRODUCT((range-TIME(0,30,0))*(range>TIME(0,30,0)))

Explanation

 In the example shown, the formula in G5 is:

=SUMPRODUCT((times-TIME(0,30,0))*(times>TIME(0,30,0)))

where “times” is the named range C5:C14.

How this formula works

This formula uses the SUMPRODUCT function to sum the result of two expressions that yield arrays. The goal is to sum only time greater than 30 minutes, the “surplus” or “extra” time.  The first expression subtracts 30 minutes from every time in the named range “times”:

times-TIME(0,30,0)

This results in an array like this:

{-0.00347222222222222;0.00694444444444444;0.00347222222222222;-0.00694444444444444;0.0138888888888889;0.00694444444444444;0;0.00486111111111111;0.00833333333333333;-0.0104166666666667}

The second expression is a logical test for all times greater than 30 minutes:

times>TIME(0,30,0)

This creates an array of TRUE FALSE values:

{FALSE;TRUE;TRUE;FALSE;TRUE;TRUE;FALSE;TRUE;TRUE;FALSE}

Inside SUMPRODUCT, these two arrays are multiplied together to create this array:

{0;0.00694444444444444;0.00347222222222222;0;0.0138888888888889;0.00694444444444444;0;0.00486111111111111;0.00833333333333333;0}

Notice negative values in the first array are now zeros. During multiplication, the TRUE FALSE values are converted to 1 and zero, so FALSE values “cancel out” times that are not greater than 30 min. Finally, SUMPRODUCT returns the sum of all values in the array, 1 hour and 4 minutes (1:04).

Alternative with SUMIFS and COUNTIFS

By itself, SUMIFS cannot sum the delta of time values greater than 30 minutes. SUMIFS and COUNTIFS can be used together to get the same result as SUMPRODUCT above:

=SUMIFS(times,times,">0:30")-(COUNTIFS(times,">0:30")*"0:30")

Times over 24 hours

If total times may exceed 24 hours, use this a custom time format like this:

[h]:mm:ss

The square bracket syntax tells Excel not to “roll over” times greater than 24 hours.

With a helper column

As shown in the example, you can also add a helper column to calculate and sum time deltas. The formula in D5, copied down, is:

=MAX(C5-"00:30",0)

Here, MAX is used to get rid of negative time deltas, caused by times in column C that are less than 30 minutes. Notice the result in D15 is the same as the result in G5.

Post navigation

Previous Post:

DECIMAL function: Description, Usage, Syntax, Examples and Explanation

Next Post:

AVERAGE function: Description, Usage, Syntax, Examples and Explanation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Excel If, Nested If, And/Or Criteria Examples
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • Check multiple cells are equal in Excel

Date Time

  • How to enter Today’s Date or Static Date and Time in Excel
  • Convert text to date in Excel
  • Extract date from a date and time in Excel
  • Get work hours between dates and times in Excel
  • Check If Two Dates are same month in Excel

Grouping

  • If cell contains one of many things in Excel
  • Group numbers with VLOOKUP in Excel
  • How to randomly assign people to groups in Excel
  • How to randomly assign data to groups in Excel
  • Group times into 3 hour buckets in Excel

General

  • List worksheet index numbers in Excel
  • Sum by group in Excel
  • Cell References: Relative, Absolute and Mixed Referencing Examples
  • Lock Cells in a Worksheet Excel
  • How to create dynamic named range with INDEX in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning