"Duration units were removed" -- Why?

I have a timesheet file with several sheets, each with several tables. One sheet uses one of its tables to keep a running total of hours worked in several different categories, using a SUMIF function based on another table where the hours are logged.

I am getting unexplained behavior with the cells where the totals are displayed. These are formatted as durations, but when their value is zero they display as currency, and sometimes (but not always) they continue to display as currency when their value is non-zero, even though they are the sum of durations in the other table. There is a little blue triangle in the upper left corner of the cell, which when I click on it gives a message "Duration units were removed", with no option but to "Ignore".

What is going on? I don't want the duration units removed, and I don't want to ignore the matter -- I want to correct it! How do I do so?

I should point out that this has nothing to do with another thread on a similar topic, in which the poster had created his file on an iPad and then opened it on his Mac. I am working entirely on a Mac.

Mac Pro 8-core, Mac OS X (10.6.6), 3 GHz; 13 GB RAM

Posted on Feb 8, 2011 7:48 AM

Reply
17 replies

Aug 29, 2017 2:42 PM in response to Jeffrey Dean

Hi Jeff

I resolved this issue by retracing the formatting of all the source cells, data that was formatted incorrectly as Automatic rather than Duration. These were in cells that fed the formula cell where the blue triangle is displayed.

Not sure why the source cell changed it's formatting definition. It seemed random in my case, but the redefining of the source cell to Duration worked.

Cheers

Feb 8, 2011 10:15 AM in response to Jeffrey Dean

May you check that you are really applying only SUM function to your duration values?

Applying multiplications is the only way I was able to drop the duration format but in such case, I don't get a blue triangle or a currency result.

May you send a subset of your document to my mailbox ?
Click my blue name to get my address.

Yvan KOENIG (VALLAURIS, France) mardi 8 février 2011 19:15:42

Feb 8, 2011 11:09 AM in response to Jeffrey Dean

I'm with Yvan on this one. It appears your sums include something other than durations. But I, too, could not get a "duration units removed" warning when using SUMIF by itself. I could get an error triangle, though. SUM and SUMIF will not create an error when summing cells formatted as different things (currency, number, duration, etc.) if all non-blank cells are of the same type. Related to your problem, I notice that a SUM of a blank duration cell and a blank currency cell results in $0.00.

Feb 8, 2011 11:32 AM in response to Jeffrey Dean

Jeffrey,

I wonder if you are encountering the problem we discussed here a while back where the OP was doing something similar involving the numeric value of zero vs. the duration value of 0h. The value returned by an INDIRECT or OFFSET reference to a blank cell turns out to be a numeric zero and that's a problem in a case like yours.

It's difficult to imagine what's going on without seeing it, but the problem does sound familiar. It's the inconsistent behavior that's confusing to me.

Jerry

Message was edited by: Jerrold Green1

Feb 8, 2011 11:57 AM in response to Jerrold Green1

I'm sure Jerry's got hold of the right part of the problem. After I posted the problem, I ascertained that the inconsistency resulted from part of the sum being blank, i.e. numeric zero.

The logging table works like this: category, start_time, finish_time, hours = IF(ISBLANK(finish time),"",finish_time-starttime).

The running total table works like this: total category1 = SUMIF(category,"category_1",hours), total categories2+3 = SUMIF(category,"category 2",hours)+SUMIF(category,"category3",hours), etc.

What seemed like inconsistency was that total category1 became a proper duration as soon as I had a non-zero sum in category 1, whereas total categories2+3 remained a currency value as long as I had a zero in either category 2 or 3.

So the inconsistency was a red herring. What remains is three questions: (1) Why currency? (2) [more important] Is there anything I can do to get around this counter-intuitive and undesirable behavior? (3) [much less important] Why is it that, in another cell formatted as duration, I can enter 0 and have it format as "0h 0m"?

Thanks,
Jeff

Feb 8, 2011 12:26 PM in response to Jerrold Green1

I've taken a couple of screen shots, but I can't see how to post them.

Copying/pasting the expressions, I can give you:

=IF(ISBLANK($D3),"",$D3-$C3)

=SUMIF(26 Little Malvern Letters::$Activity,"Design",26 Little Malvern Letters :: $E)+SUMIF(26 Little Malvern Letters::$Activity,"Typesetting",26 Little Malvern Letters :: $E)

Is this helpful? (I can understand what you say about minuscule detail -- I work as a copy-editor. But I think I've got this under control: I've used the Function Browser to insert functions, and selection to replace boilerplate parameters. The only place where I could have made a mistake would have been in spelling "Design" and "Typesetting", but I've double-checked those against the value list in the Activity column.)

Jeff

Feb 8, 2011 1:36 PM in response to Jeffrey Dean

The formula was adding durations and a zero number.

=SUMIF(26 Project title::$B,"Design",26 Project title :: $E)+SUMIF(26 Project title::$B,"Typesetting",26 Project title :: $E)


I edited it this way :
=IF(COUNTIF(26 Project title :: B,"Design")=0,DURATION(,,,0),SUMIF(26 Project title::$B,"Design",26 Project title :: $E))+IF(COUNTIF(26 Project title :: B,"Typesetting")=0,DURATION(,,,0),SUMIF(26 Project title::$B,"Typesetting",26 Project title :: $E))

and now it behave flawlessly.

The behavior of the original formulas was perfectly consistent : they did what the O.P. asked them to achieve.

When the column B of the table 26 Project title contain the string Design and the string Typesetting, the two SUMIF deliver durations and the sum is a duration.

When the column B of the table 26 Project title doesn't contain the string Design or/and doesn't contain the string Typesetting, at least one of the SUMIF deliver a zero so the sum drops the duration kind and inherit of the format of the cell just above : currency .

Yvan KOENIG (VALLAURIS, France) mardi 8 février 2011 22:36:00

Feb 8, 2011 2:59 PM in response to KOENIG Yvan

Now that it is explained, I can understand the solution. I am disappointed that there is nothing in the documentation that makes this sort of thing clear. The documentation for functions is extremely terse and implicitly expects a level of knowledge and experience that I simply don't have (along with a great many other users, I'm sure). What's obvious to you wasn't at all obvious to me. I am extremely grateful for your taking the trouble to help me; I only wish I could have found better guidance in the documentation.

Many thanks,
Jeff

Feb 8, 2011 11:20 PM in response to Jeffrey Dean

Jeffrey Dean wrote:
Now that it is explained, I can understand the solution. I am disappointed that there is nothing in the documentation that makes this sort of thing clear. The documentation for functions is extremely terse and implicitly expects a level of knowledge and experience that I simply don't have (along with a great many other users, I'm sure). What's obvious to you wasn't at all obvious to me. I am extremely grateful for your taking the trouble to help me; I only wish I could have found better guidance in the documentation.


Hi Jeff,

Shortcomings in the documentation are things that should be posted as Numbers Feedback, and sent to Apple, rather than to the Numbers users who read and respond in this forum. You'll find a Provide Numbers Feedback item in the "Numbers" menu. Please use it to submit a request for improvements in the iWork Formulas and Functions User Guide.

Regards,
Barry

Feb 9, 2011 3:03 AM in response to Barry

Thanks, Barry. I've done that. I'm sorry if you get annoyed by people using the forums for things that ought to be sent to Feedback, but if you'd read the whole thread you'd have seen I had a problem to solve. Yvan helped me solve it, and I was trying to express my gratitude for his assistance while explaining why I had needed it in the first place. Please have a little patience with those of us who are experienced enough to try to do something a little complicated, but not experienced enough to understand what went wrong when it doesn't work.

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.

"Duration units were removed" -- Why?

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