Fordraiders
asked on
adding d:h:mm:ss
I have 2 columns that I need added for time sum.
A1 B1 C1
0:00:08:40 + 0:00:02:00
I have formatted A1 AND B1 AND C1 TO d:h:mm:ss
But still cant get a total.. ?
Thanks
fordraiders
A1 B1 C1
0:00:08:40 + 0:00:02:00
I have formatted A1 AND B1 AND C1 TO d:h:mm:ss
But still cant get a total.. ?
Thanks
fordraiders
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
barry houdini...attached is my sheet ...
Need to add B AND C and give me the correct value in D..
Usage-Report.xls
Need to add B AND C and give me the correct value in D..
Usage-Report.xls
Your data is text formatted so If the values never have days then you can use simply
=RIGHT(B2,8)+RIGHT(C2,8)
....but if days might be included (or the total might take it over 1 day) then you need a version of the formula I posted above, i.e.
=INT(RIGHT(B2,8)+RIGHT(C2, 8)+LEFT(B2 ,FIND(":", B2)-1)+LEF T(C2,FIND( ":",C2)-1) )&TEXT(RIG HT(B2,8)+R IGHT(C2,8) ,":hh:mm:s s")
see attached where I put the first formula in E2 and the second in F2, both copied down - note they give the same results for your data because the day totals are all zero - I added a row (row 7) with days included. In which case only the longer formula gives the correct result
regards, barry
Usage-Report-barry.xls
=RIGHT(B2,8)+RIGHT(C2,8)
....but if days might be included (or the total might take it over 1 day) then you need a version of the formula I posted above, i.e.
=INT(RIGHT(B2,8)+RIGHT(C2,
see attached where I put the first formula in E2 and the second in F2, both copied down - note they give the same results for your data because the day totals are all zero - I added a row (row 7) with days included. In which case only the longer formula gives the correct result
regards, barry
Usage-Report-barry.xls
OK, sorry, I was only looking at data in 2011....didn't see 2010!
You need the longer formula to work consistently for all the data, i.e. this version in 2010 sheet J2 copied down
=INT(RIGHT(H2,8)+RIGHT(I2, 8)+LEFT(H2 ,FIND(":", H2)-1)+LEF T(I2,FIND( ":",I2)-1) )&TEXT(RIG HT(H2,8)+R IGHT(I2,8) ,":hh:mm:s s")
and similar for 2011 sheet as suggested above
Formula returns a text value (your existing data is also text). It isn't possible to be anything other than text if you need to show totals of 31 days + in that format.
see revised attachment
regards, barry
Usage-Report-barry-v2.xls
You need the longer formula to work consistently for all the data, i.e. this version in 2010 sheet J2 copied down
=INT(RIGHT(H2,8)+RIGHT(I2,
and similar for 2011 sheet as suggested above
Formula returns a text value (your existing data is also text). It isn't possible to be anything other than text if you need to show totals of 31 days + in that format.
see revised attachment
regards, barry
Usage-Report-barry-v2.xls
ASKER
Perfect Thanks !
=A1+B1
or
=SUM(A1,B1)
see attached
what results do you get? How are those values generated - input or formulas?
regards barry
times.xls