Hi guys i would appreciate if someone help me with formula which can convert AM/PM time to 24hours, then add 3 hours, and insert leading zero only from 1 to 9.
see attachment example click here
Hi guys i would appreciate if someone help me with formula which can convert AM/PM time to 24hours, then add 3 hours, and insert leading zero only from 1 to 9.
see attachment example click here
Last edited by godlev; 09-07-2011 at 10:10 AM. Reason: SOLVED
Here, try this:
=TEXT(A1+"3:00", "hh:mm:ss")
First use custom format to format the cells as hh:mm:ss.
Then type 03:00:00 in a spare cell and copy it (Ctrl-C)
Select the target cells, goto Paste>PasteSpecial, and click the Add box
Then clear that spare cell.
Hi,
First thing, please do not use a picture as an attachment. In future please attach the excel file with dummy data. That is a forum rule.
You can easily convert the time zone to 24 hrs.Just select all the cells, then go to format cells. Select Custom and under Type put in this "hh:mm:ss" Select OK and the format will be changed
Formula for adding 3 hours
Please let me know if it doesnt workPlease Login or Register to view this content.
Hello godlev,
I assume your "time" data is actually text, in which case try this formula in D6
=MOD(REPLACE(A6;LEN(A6)-1;0;" ")+"3:00";1)
Now format D6 in required time format, e.g. hh:mm:ss and copy across and down
Audere est facere
No need for apology.
And posting workbook will be aksed in the future because I (we) surely don't want to spend 15 minutes creating example for a 5 minute solution.
But it's not against the rules to post a picture.
it's just take more time for user to get solution
keep up the good work.
thank you for the responses ill post example spreadsheet from now on.
but still i didn't got the right formula.
can you please check the example sheet and check how it should convert.
As it's stored as text use daddylonglegs solution:
Great thank you all of you - this is the best forum for excel!
The answers you are getting assume you want to keep the original table and create a transformed table. If you want to transform the original, you need VBA, or take the approach I gave earlier.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks