+ Reply to Thread
Results 1 to 2 of 2

Working out the time?

  1. #1
    Registered User
    Join Date
    04-06-2004
    Posts
    27

    Working out the time?

    Hi,

    Is it possible to calculate how many hours are between 11:00-16:00 if they are written in the same cell.

    i.e A1 will say 11:00-16:00

    Is this possible or do the times have to be written in two seperate cells?

    thanks

    Andrew

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Hello Andrew, you can do this all in one cell if your data is consistent, i.e. if you have times before 10:00 shown with leading zeros, e.g.

    09:00-17:00

    If data is in A1 try

    =MOD(RIGHT(A1,5)-LEFT(A1,5),1)

    format result cell as h:mm

+ 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