Formula to add time

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
What kind of time?

In a query:

NewAliasNameHere:DateAdd("n", 24, [FieldNameHere])

In VBA

Me.SomeControlNameHere = DateAdd("n", 24, Me.TextBoxNameHere)

n - minutes
s - seconds
h - hours
 
Upvote 0
This works for a date but what im looking for is this:

8:00:24 + 1:24:00 = 8:24:24

is there a way to get this with access?
 
Upvote 0
I take that back - Where are you trying to do this? In a report, in a query?

In a query it should give you a decimal value which you can then format back to a time.

In a report you shouldn't need the octothorpes (#) if a control source is just

=Sum([FieldName])

and the control that is bound to that field is DIFFERENT (txtFieldName) and not the same. Otherwise it will give you the #NAME error.
 
Upvote 0
I have a form that shows how long it will take a machine to finish an order. like this

machine A 4:00:00
machine b 5:00:00
machine c 2:00:22
machine d 3:00:15

Total: 14:00:37

i am trying to sum the time feild to get a grand total for time.
if i try the sum() it brings back a decimal, i tried the divide by 24 but the grand total time is wrong it should be coming back with like 92+ hours of work.
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,845
Members
452,948
Latest member
UsmanAli786

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