# 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

• ✭✭✭✭✭✭

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

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?

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

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!