+ Reply to Thread
Results 1 to 3 of 3

Two problems to do with timesheets

  1. #1
    Registered User
    Join Date
    01-18-2021
    Location
    New Zealand
    MS-Off Ver
    365
    Posts
    8

    Red face Two problems to do with timesheets

    Good evening,

    I have two issues as I will point out below.

    1) I need to be able to change entered time in B4 and C4 into time from text they are entered as text because its 24hour time and couldn't get the zero to appear in front of the numbers unless entered as a time.
    Pretty much the people entering the time enter it as is shown in the cells now but I want to conditional format it or something so it changes into a time format in the same cell.

    2) and I am one hundred percent sure this has been asked and answered before, but I could not see it from a quick glance, I need E4 to show the time difference between B4 and C4 (even if they go over the midnight mark), in the case in the sample
    you can see the wanted answers in column G.

    I'll carry on looking for an answer in the mean time... knowing my luck it is something every simple that I am missing.
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,430

    Re: Two problems to do with timesheets

    Try with time is inputed as "hhmm"

    =(REPLACE(C4,LEN(C4)-1,,":")-REPLACE(B4,LEN(B4)-1,,":")+(B4-C4>0))*24

    Format as general

    Or

    =(REPLACE(C4,LEN(C4)-1,,":")-REPLACE(B4,LEN(B4)-1,,":")+(B4-C4>0))

    Format as time
    Quang PT

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Two problems to do with timesheets

    Pl see file
    In F4 then copied down

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 07-02-2021 at 02:46 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. Excel 2007 : Timesheets
    By glennquality in forum Excel General
    Replies: 0
    Last Post: 08-24-2011, 08:33 AM
  2. Excel 2007 : Working with timesheets
    By Aaisha in forum Excel General
    Replies: 1
    Last Post: 07-21-2009, 05:33 AM
  3. Self-calculating timesheets!
    By marion.h in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2009, 04:16 PM
  4. Timesheets
    By marula in forum Excel General
    Replies: 5
    Last Post: 01-25-2007, 11:31 AM
  5. [SOLVED] timesheets
    By Bill66 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-23-2006, 05:20 PM
  6. [SOLVED] Timesheets
    By maperalia in forum Excel General
    Replies: 1
    Last Post: 10-09-2005, 09:05 AM
  7. Timesheets
    By Carl Fries in forum Excel General
    Replies: 5
    Last Post: 09-02-2005, 12:05 PM
  8. Timesheets and payroll
    By boyd in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-13-2005, 09:20 AM

Tags for this Thread

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