Sum of HH:NN

Moxioron

Active Member
Joined
Mar 17, 2008
Messages
436
Office Version
  1. 2019
Hello.

I have a with the following expression:
Expr1:Format(([SumOfTime]/86400),"hh:nn")

Works great to convert the seconds to hours and minutes.

However, I can't use the expression in any other expression. I am trying to get productivity from:
Expr3: [SumOfVolume]/[Expr7]

Instead of course I get #Error for that column.

If I take the format out of Expr 1 and just use [SumOfTime]/3600 and of course it works awesome. However, I don't want 45 minutes to reflect .75, so that will not work.

Where I am going wrong? Thank you.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
You can't use an expression you have created in the same query as an alias in another expression. I think you would find that you can create that expression and then you can use it like you want but ONLY if you took this query and then used it in another query and then used [SumOfVolume]/[Expr7].

To use it in the same query, you need to just use the entire calculation.

Also - make your aliases meaningful instead of Expr7. It will be better later on down the line when you, or someone who is having to follow you, needs to know what it is.
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,683
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top