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
Answers
-
Hi M,
Try something like this in the # of days used column.
=[Days used]@row
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 EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
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.
-
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, andree@getdone.se)
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
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?
-
Hello M,
This should work:
=VALUE(SUBSTITUTE([Days used]@row, "d", ""))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!