In Numbers 13.2 for Mac I am subtracting dates between two cells formatted in dates and the software automatically formatted the resulting cell as a duration in days. When I then multiply this cell (days units) by another ($/day) the result comes ou

In Numbers 13.2 for Mac I am subtracting dates between two cells formatted in dates and the software automatically formatted the resulting cell as a duration in days.  When I then multiply this cell (days units) by another ($/day) the result comes out in days when it should be just a number ($). In other words the software won’t let go of the days unit formatting. Is there a work-around or update to fix this?

Mac mini, macOS 13.4

Posted on Nov 21, 2023 8:44 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 22, 2023 4:54 AM

In your multiplication, you may want to convert the duration into a plain number with DUR2DAYS or another appropriate conversion function.

Similar questions

5 replies

Nov 22, 2023 7:53 AM in response to Recycleur

I tried this problem in Numbers Version 13.1 and the result was a plain number without using DUR2DAYS if the $/day was formatted as currency or had the currency symbol in it. It is surprising that this would change in version 13.2 but I cannot test it. I just realized I am locked at 13.1 until I upgrade my OS, which I cannot do because my computers are incompatible. Oh well.


Whether needed or not, using DUR2DAYS is good practice because otherwise the result of the multiplication will change if the duration unit is changed to something other than days.


Nov 22, 2023 7:53 AM in response to macstudent927

Without using DUR2DAYS here is what I see in Numbers 13.2.





You can get the result you want if you format the Rate/Day as Currency and Result as Currency.


But not if you leave Rate/Day as Automatic or Number.


Best practice, I would argue, is to be sure by using DUR2DAYS or one of its cousins to convert the Duration to a decimal for further calculations.


SG

Nov 22, 2023 4:22 PM in response to macstudent927

By changing the format of the rate cell to currency instead of default as a number, the calculations that follow come out properly. It seems in the past that I would generally leave spreadsheet cell formats as a number unless I wanted to display a unit such as $ sign in that cell. So this duration format seems to be an exception to my general rule. Thank you for your help.

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.

In Numbers 13.2 for Mac I am subtracting dates between two cells formatted in dates and the software automatically formatted the resulting cell as a duration in days. When I then multiply this cell (days units) by another ($/day) the result comes ou

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