Consulting

Results 1 to 2 of 2

Thread: Time Conversion into text

  1. #1

    Time Conversion into text

    Hi all,
    I want to convert time into text.
    For example if cell has a time 00:15:13 then it should be 00:00 - 01:00 hrs.
    If its 15:33:47 then it should be 15:00 - 16:00 hrs.
    How can we formulate it, please help.

    One more question.
    How can I convert time
    Example 00:12:16 to seconds.

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,875
    Quote Originally Posted by Svmaxcel View Post
    For example if cell has a time 00:15:13 then it should be 00:00 - 01:00 hrs.
    If its 15:33:47 then it should be 15:00 - 16:00 hrs.
    If your time is in cell A1:
    =TEXT(FLOOR(A1,1/24),"hh:mm") & " - " & TEXT(CEILING(A1,1/24),"hh:mm") & " hrs"


    Quote Originally Posted by Svmaxcel View Post
    How can I convert time
    Example 00:12:16 to seconds.
    If that time is in Excel Date/Time, multiply by 86400.
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •