Link to home
Create AccountLog in
Avatar of Cartillo
CartilloFlag for Malaysia

asked on

Count Total Duration

Hi Experts,

I would like to request Experts help create a macro to count total duration of each title at column D based on time at Column A. E.g. Total duration of Title1(D2) is (A3 - A2) and Total duration for Title2 is (A4 - A3). Hope Experts could help me create this feature.
Time.xls
ASKER CERTIFIED SOLUTION
Avatar of barry houdini
barry houdini
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Isn't that simpler than that?  Simply enter in the Duration column for the first title:
=A3-A2
and copy down
Hello xtermie,

My first though was a simple subtraction too....but that won't work when you get down to H29. My formula is designed to work for H29, H30, H31 and beyond, assuming the + times are deemed to be the next day....

regards, barry
Avatar of Cartillo

ASKER

Hi barry,

Is that any chance convert this solution into macro, so that  no formula is displayed in the cells when user tagged the cell.
Sorry, been away from EE - VBA isn't my forte - perhaps somebody else can help you

regards, barry
Hi,

The formula is just nice, thanks for the help.
Thanks for the help