Convert duration in a number column to make calculations
How could I covert the duration information/data in number so I can calculate variances in numbers or in percentages? I had to create a column and type each number, but I can not do that in 50 different worksheets.
Is there any formula that can convert the duration days in real numbers so I can use it for additional claulations?
Thanks
M
0
Answers
Hi M,
Try something like this in the # of days used column.
Did that work?
I hope that helps!
Be safe and have a fantastic weekend!
Best,
Andrée Starå
Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. It will make it easier for others to find a solution or help to answer!
SMARTSHEET PARTNER & CONSULTANT / EXPERT
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E: [email protected] | P: +46 (0) - 72 - 510 99 35
Feel free to contact me about help with Smartsheet, integrations, general workflow advice, or something else entirely.
Thanks Andrée Starå for your reply. I did use your formula but it gives me the same 80d (duration) :(. It does not give me the numerical.
Is there any other way/option to do it Andree?
Please and Thanks in advance.
M
I had to account for something similar in sheets I work in, but even a little more complex, since we have durations in days, hours, and minutes to contend with. In your case, it should be pretty simple to solve with this:
=IFERROR(VALUE(LEFT([Days used]@row, 3)), IFERROR(VALUE(LEFT([Days used]@row, 2)), VALUE(LEFT(Days used]@row, 1))))
Unfortunately, in Smartsheet, you can't use negative numbers to count values in the reverse order, so we have to use a series of IFERROR statements to know whether a value in [Days used] is single, double, or triple digits.
Hopefully, this does the trick for you.
@MYRIAMMC
Strange!
It works for me.
Did you get it working?
I not, can you maybe share the sheet(s)/copies of the sheet(s)? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, [email protected])
SMARTSHEET PARTNER & CONSULTANT / EXPERT
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E: [email protected] | P: +46 (0) - 72 - 510 99 35
Feel free to contact me about help with Smartsheet, integrations, general workflow advice, or something else entirely.
Hello Matthew,
we have a complex sheet like the one you explained, were you to calculate the total no of hours vs total no of days?