+ Reply to Thread
Results 1 to 3 of 3

Categorizing the Time into Time Slots

  1. #1
    Registered User
    Join Date
    12-04-2012
    Location
    india
    MS-Off Ver
    2021
    Posts
    45

    Categorizing the Time into Time Slots

    Hi All,

    I have one time field which has the Date and time in Am and PM format, i need another column where it says in which hour it came in.Column A has the date and time, i need the column B to display in the below format.

    Find below the details.

    Time Time Slot
    4/1/13 12:18 PM 12 PM to 1 PM
    4/1/13 12:21 PM 12 PM to 1 PM
    4/1/13 12:22 PM 12 PM to 1 PM
    4/1/13 2:42 PM 2 PM to 3 PM
    4/1/13 2:49 PM 2 PM to 3 PM
    4/1/13 3:03 PM 3 PM to 4 PM
    4/1/13 4:54 PM 4 PM to 5 PM
    4/1/13 7:58 PM 7 PM to 8 PM

    Is there any formula that i can use to acheive this.

    thanks
    Zaveed

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Categorizing the Time into Time Slots

    Maybe

    =TEXT(A9,"hh AM/PM")&" to "&TEXT(A9+TIMEVALUE("01:00:00"),"hh AM/PM")

    Watch out for 23hrs
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    12-04-2012
    Location
    india
    MS-Off Ver
    2021
    Posts
    45

    Re: Categorizing the Time into Time Slots

    Quote Originally Posted by Special-K View Post
    Maybe

    =TEXT(A9,"hh AM/PM")&" to "&TEXT(A9+TIMEVALUE("01:00:00"),"hh AM/PM")

    Watch out for 23hrs
    Thank You Special K,

    It works as expected.

    Zaveed

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1