+ Reply to Thread
Results 1 to 6 of 6

Formatting Cells for Times

  1. #1
    Banned User!
    Join Date
    09-26-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    607

    Formatting Cells for Times

    Hello,

    I have trouble figuring out how to format cells for total time or adding times together.

    In EMP108 cells J19:J21 I have odd results and the cells are now formatted to [h]:mm

    If I format those cells to h:mm for all of the EMP sheets I get different results.

    They all don't seem to work either way with varied results.

    Also in EMP103 and EMP104 I put comment on row times not adding up right but the total is correct.

    I hope someone can explain how these times can better be recorded and added so they all are accurate.

    Thank you so very much,
    Billy
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Formatting Cells for Times

    This is the same problem as before. If you continue to refuse to round these numbers, your will always have these discrepancies. Modify your formulae as described:

    I11:
    =IFERROR(ROUND(1440*IF(H11<>"",IF(D11<>"",IF(E11<>"",IF(E11>=D11,(F11-E11),(F11-D11))+IF(G11>$H$6,(H11-G11),(H11-$H$6)),H11-G11),""),IF(E11<=D11,(F11-D11),"")),0)/1440,"")

    I16:
    =IFERROR(ROUND(1440*IF(E11<>"",(F16-E16),"")+IF(G16<>"",(H16-G16)),0)/1440,"")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Banned User!
    Join Date
    09-26-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    607

    Re: Formatting Cells for Times

    Glenn I am sorry to be trouble but I did that and in EMP108 it still has weird results. I attached the changes can you take a look please?
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Formatting Cells for Times

    Look at the entries in Log. As I pointed out to you previously, these are still a mix of times and date/times. EITHER you need to ensure that ONLY times are entered, or all the formulae based on the time entries will have to be changed. the ones that show (with the formatting that I have applied as being on January 0th 1900, have been entered as TIMES, all the rest have been entered as Date/Times
    Attached Files Attached Files

  5. #5
    Banned User!
    Join Date
    09-26-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    607

    Re: Formatting Cells for Times

    I am trying to change all of the columns to h:mm AM/PM on the Log sheet.

    When I go to the highlighted cells in EMP108 they are different than the other EMP columns.

    I am not purposely avoiding your advice. In fact I want to do what you say.

    I must be messing up something or not formatting correctly.

    Am I formatting in the wrong area?

    I want the log to display times like 9:05 AM or 1:30 PM

  6. #6
    Banned User!
    Join Date
    09-26-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    607

    Re: Formatting Cells for Times

    Glenn I fixed the issue and it was very weird. I had to enter a time in the log and copy and paste in the whole area in order to keep the cell as:

    12:05:00 PM

    I really do appreciate the help and I was trying my best to resolve the problems.
    Attached Files Attached Files

+ 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. [SOLVED] Highlight cells where A in continuously coming 3 times using conditional formatting
    By shukla.ankur281190 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-08-2015, 12:55 AM
  2. [SOLVED] Single cell conditional formatting, different formatting at different times
    By namzed in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-18-2014, 07:02 PM
  3. If a search term can be found 1 time, 2 times 3 times 4 times 5 times
    By excelcandy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2013, 09:57 PM
  4. Conditional Formatting with times
    By frankiebrooke in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-25-2012, 07:07 PM
  5. [SOLVED] Conditional Formatting Times (hh:mm)
    By lanos in forum Excel General
    Replies: 15
    Last Post: 07-19-2012, 10:24 AM
  6. Formatting Cells with Times in Excel
    By mpellum0101 in forum Excel General
    Replies: 0
    Last Post: 04-19-2012, 02:44 PM
  7. Comparing Times in Text Boxes to Times in Cells
    By Matt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-05-2006, 11:15 PM

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