Adding time duration in Numbers

I have a list of durations, some in hours and some in minutes, that I need to add up one line at a time. If I use the formula D1+D2 the system reports "the formula's arguments can only include one date value". Is there a special syntax that must be used?


Thanks,

David

Posted on May 22, 2018 12:27 AM

Reply
Question marked as Top-ranking reply

Posted on May 22, 2018 1:10 AM

Hi David,


The error message indicates you have at least two values in your list that Numbers is interpreting as (the time part of) Date and Time values. When entering durations directly, it's safest to do so using the '2h 3m' notation. Entering that value using 2:03 is ambiguous in two dimensions: Numbers may interpret that entry as 2:03 AM, and record it as a date (today, the day the entry is made) and time (02:03:00) rather that as a duration, OR Numbers may recognize it as a duration value, but err in assigning the correct scale to the ambiguous notation. 2:03 could mean 2 minutes and 3 seconds or 2 hours and 3 minutes.


Regards,

Barry

Similar questions

8 replies
Question marked as Top-ranking reply

May 22, 2018 1:10 AM in response to David9999

Hi David,


The error message indicates you have at least two values in your list that Numbers is interpreting as (the time part of) Date and Time values. When entering durations directly, it's safest to do so using the '2h 3m' notation. Entering that value using 2:03 is ambiguous in two dimensions: Numbers may interpret that entry as 2:03 AM, and record it as a date (today, the day the entry is made) and time (02:03:00) rather that as a duration, OR Numbers may recognize it as a duration value, but err in assigning the correct scale to the ambiguous notation. 2:03 could mean 2 minutes and 3 seconds or 2 hours and 3 minutes.


Regards,

Barry

May 22, 2018 5:13 AM in response to David9999

Hi David,


To save retyping all the Date & Time values, you can rescue them.

For example, 1:00 entered in A2 will show as Actual at the bottom left of the window as 22/05/2018 (the date when I entered 1:00 here in Australia) and 1:00:00 am (a Time, not a Duration).

User uploaded file

Formula in B2 =HOUR(A2)

Formula in C2 =MINUTE(A2)

Following Roger's idea of converting hours to minutes then adding, formula in D2 =B2×60+C2

(Thanks, Roger!)

Formula in E2 =DURATION(,,,D2,seconds)

The leading commas tell Numbers to ignore Weeks, Days and Hours when converting Minutes to a Duration.


Column E is set by Format Panel > Cell > Data Format > Duration > Custom Units

User uploaded file

Regards,

Ian.

May 22, 2018 4:01 AM in response to David9999

As it happens I created a Numbers spreadsheet for adding times some time back, and you are welcome to use it or mine it for the formulae. It's in the older Numbers format but should open in the more recent version.


http://rfwilmut.net/share/Add_times.zip


It does separate the hours, minutes and seconds into separate columns - I don't know whether that will do for you but I'm not sure if you can do it as a single column.

May 22, 2018 6:44 AM in response to Yellowbox

The spreadsheet was originally created in AppleWorks, probably v6, then imported into Numbers 2.3 which is what I still use. Hence the 'Imported AppleWorks Data' label, which doesn't show as prominently in my version. Row D in the original version (evidently you've altered it) is covered by a white graphic to hide the internal working, and there are a lot more rows.

User uploaded file

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Adding time duration in Numbers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.