+ Reply to Thread
Results 1 to 6 of 6

Time Ranges

Hybrid View

jmag Time Ranges 03-17-2008, 02:27 PM
NBVC Try: ... 03-17-2008, 02:45 PM
jmag This worked. Thanks How... 03-17-2008, 02:55 PM
NBVC What exactly do you mean? 03-17-2008, 03:24 PM
Portuga Excelent! Replying so I... 03-17-2008, 02:59 PM
darkyam Couldn't the formula be... 03-17-2008, 03:03 PM
  1. #1
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =TEXT(A2,"hh")&"00-"&TEXT(A2+"1:00"+0,"hh")&"00"

    where A2 houses timestamp
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  2. #2
    Registered User
    Join Date
    11-06-2007
    Posts
    10
    This worked. Thanks

    How would the formula change if it was simply a number range?

    Thanks

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by jmag
    This worked. Thanks

    How would the formula change if it was simply a number range?

    Thanks
    What exactly do you mean?

  4. #4
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Quote Originally Posted by NBVC
    Try:

    =TEXT(A2,"hh")&"00-"&TEXT(A2+"1:00"+0,"hh")&"00"

    where A2 houses timestamp

    Excelent!

    Replying so I can have this one on my CP. I need to have a look at the text function.

    My solution included a formula that concatenated 24 different if statements...

    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  5. #5
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191
    Couldn't the formula be shortened to =TEXT(A2,"hh")&"00-"&TEXT(A2+1/24,"hh")&"00"?

+ 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