Calculate the SUM() time from columns with mixed types

Ismael Miguel

Consider the following table:

+------------------+------+--------+
|     Total worked | Total|  Tasks |
+------------------+------+--------+
|             07:30| 09:20|Day 10  |
+-----+-----+------+------+--------+
|09:00|09:20| 00:20| Task1         |
+-----+-----+------+---------------+
|09:20|09:25|'00:05| Task2         |
+-----+-----+------+---------------+
|09:25|09:30|'00:05| Task3         |
+-----+-----+------+---------------+
|09:30|10:30|'01:00| Task4         |
+-----+-----+------+---------------+
|10:30|13:00| 02:30| Task5         |
+-----+-----+------+---------------+
|15:00|19:40| 04:40| Task6         |
+-----+-----+------+---------------+
|19:40|20:20|'00:40| Task7         |
+-----+-----+------+---------------+

(I'm really sorry, but couldn't do better).

The Total Worked is how much I've worked in a single day.
The values are calculated with 2 formules:

  • Ignored times (in the table, times starting with '):
    =TEXT(Bxx-Axx+ STYLE("CustomDoNotCalc");"hh:mm" )
  • Calculated times:
    =Bxx-Axx

The Total Worked is calculated with a simple =SUM(Cxx:Cxx).

The Total is introduced manually.

I want it to be calculated instead of being manual.

I've tried the following formules with the following results:

  • =SUM(DATE.VALUE(Cxx:Cxx)) - Error #VALUE? and #VALUE!
  • =SUM(DATE.VALUE(TEXT(Cxx:Cxx,'hh:mm'))) - Error #VALUE?
  • Another one, but I forgot which

What can I do to calculate the Total time?

tohuwawohu

Without a helper column, you may use a array formula:

=SUM(C2:C8,(IF(ISERROR(TIMEVALUE(C2:C8)),0,TIMEVALUE(C2:C8))))

The result looks as follows:

enter image description here

To enter the array formula in C9, enter the formula above without the curly braces {}, and press CTRL+SHIFT+ENTER. OO Calc will display the formula inside curly braces to indicate it's an array formula.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Find mixed types in Pandas columns

From Dev

Pandas read_csv mixed types columns as string

From Dev

Calculate sum time in Oracle

From Dev

Compute the SUM of Time columns in the Postgres

From Dev

What if I need to get columns with mixed types?

From Dev

Calculate time differences from different columns - bash

From Dev

Calculate Time DIfference Pandas by columns

From Dev

Calculate Pecent Value from Sum of Two Columns in MySQL Database

From Dev

Create table with mixed data types from arrays

From Dev

Calculate Sum with Fixted Time Interval

From Dev

Pandas filtering by date column with mixed columns data types

From Dev

Calculate time duration in 2 columns

From Dev

How to calculate new column value from two columns and its sum dynamic value in power bi?

From Dev

Convert rows to columns and calculate sum

From Dev

Calculate statistic (e.g sum, mean...) base on columns from another dataset

From Dev

Calculate a sum from hidden columns

From Dev

Calculate sum from different array columns

From Dev

Calculate sum of spent time

From Dev

Sum mixed columns in MySql/Python

From Dev

Sum mixed columns in R: sum integer cells, concatenate character cells

From Dev

Calculate time from document

From Dev

Calculate average time using 2 columns from separate MySQL Tables

From Dev

calculate sum of time difference

From Dev

Google Sheets formula to calculate total sum of values in from multiple columns in another sheet

From Dev

Calculate sum for different data types in Django

From Dev

T-sql: calculate sum of factors when quantity of factors can differ from time to time

From Dev

groupby data with columns that have mixed data types

From Dev

Calculate the Sum of same rows from different columns using Excel formula

From Dev

Transform a column with mixed types into two homogeneous columns

Related Related

  1. 1

    Find mixed types in Pandas columns

  2. 2

    Pandas read_csv mixed types columns as string

  3. 3

    Calculate sum time in Oracle

  4. 4

    Compute the SUM of Time columns in the Postgres

  5. 5

    What if I need to get columns with mixed types?

  6. 6

    Calculate time differences from different columns - bash

  7. 7

    Calculate Time DIfference Pandas by columns

  8. 8

    Calculate Pecent Value from Sum of Two Columns in MySQL Database

  9. 9

    Create table with mixed data types from arrays

  10. 10

    Calculate Sum with Fixted Time Interval

  11. 11

    Pandas filtering by date column with mixed columns data types

  12. 12

    Calculate time duration in 2 columns

  13. 13

    How to calculate new column value from two columns and its sum dynamic value in power bi?

  14. 14

    Convert rows to columns and calculate sum

  15. 15

    Calculate statistic (e.g sum, mean...) base on columns from another dataset

  16. 16

    Calculate a sum from hidden columns

  17. 17

    Calculate sum from different array columns

  18. 18

    Calculate sum of spent time

  19. 19

    Sum mixed columns in MySql/Python

  20. 20

    Sum mixed columns in R: sum integer cells, concatenate character cells

  21. 21

    Calculate time from document

  22. 22

    Calculate average time using 2 columns from separate MySQL Tables

  23. 23

    calculate sum of time difference

  24. 24

    Google Sheets formula to calculate total sum of values in from multiple columns in another sheet

  25. 25

    Calculate sum for different data types in Django

  26. 26

    T-sql: calculate sum of factors when quantity of factors can differ from time to time

  27. 27

    groupby data with columns that have mixed data types

  28. 28

    Calculate the Sum of same rows from different columns using Excel formula

  29. 29

    Transform a column with mixed types into two homogeneous columns

HotTag

Archive