+ Reply to Thread
Results 1 to 21 of 21

How to count hours

Hybrid View

  1. #1
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Put the numbers in two separate cells, subtract normally, and format the result as [h]:mm
          ---A---- ---B--- --C-- ----D-----
      1   11:00 AM 9:00 PM 10:00 C1: =B1-A1
    If you want to do it in one cell (but why?), you can enter it as ="9:00 PM" - "11:00 AM"
    Last edited by shg; 09-29-2008 at 03:40 PM.
    Entia non sunt multiplicanda sine necessitate

  2. #2
    Registered User
    Join Date
    09-29-2008
    Location
    New York
    Posts
    8
    Well, that's so much easier if I could do it that way, shg. But he's kinda stubborn (old guy kinda thing), and he wants the time table "as is". So, I'm so frustrated in explaining to him accordingly...numbers & letters WON'T be possible mixing (unless in a subroutine C prog or something). Can I send you a screen sample of it, shg? Much appreciate it.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Can I send you a screen sample of it, shg?
    How about posting a workbook with some sample data?

  4. #4
    Registered User
    Join Date
    09-29-2008
    Location
    New York
    Posts
    8
    OK, shg....here's the sample of it. After all this time, I have to calculate each day & cell manually (time consuming). Thx again, God bless.
    Attached Images Attached Images

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    That's a picture, not a workbook.

    Maybe like this:

    =MID(A1, FIND("-", A1) + 1, 10)- LEFT(A1, FIND("-", A1) - 1) + (MID(A1, FIND("-", A1) + 1, 10) > LEFT(A1, FIND("-", A1) - 1) ) / 2

    ... but it's a very bad approach, and only valid for times in the same day.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Count numbers of times within hours
    By dreicer_Jarr in forum Excel General
    Replies: 3
    Last Post: 06-24-2015, 09:49 PM
  2. Counting days and hours
    By roddie in forum Excel General
    Replies: 15
    Last Post: 09-11-2008, 05:15 AM
  3. count hours past midnight
    By cojast in forum Excel General
    Replies: 3
    Last Post: 07-01-2008, 03:53 PM
  4. Count the hours of each day for the month
    By kdraper in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-20-2007, 06:42 AM
  5. enhanced hours
    By each in forum Excel General
    Replies: 1
    Last Post: 11-04-2006, 07:18 AM

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