+ Reply to Thread
Results 1 to 13 of 13

attempting to enter and calculate time in office 365 sharepoint

  1. #1
    Forum Contributor
    Join Date
    09-10-2010
    Location
    Sanford, FL
    MS-Off Ver
    Excel 2016 Office 365
    Posts
    105

    attempting to enter and calculate time in office 365 sharepoint

    I am trying to modify a spreadsheet in sharepoint (excel 365). It seems that many of the normal excel functions can't be used (IE: the format number function wont let me add a custom format so I am limited to what is there).
    I also cannot figure out how to share the sheet here so I have added a sheet I created with the data I need. It seems simple enough, but nothing seems to work. (I cant access VBA so it will have to be done with formulas.)
    Now the person has to enter their time with a colon (09:00- 14:00). I would like them to be able to enter the numbers without needing the colon.
    I then need to have a tally of their hours.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: attempting to enter and calculate time in office 365 sharepoint

    Assuming that you want them to enter times like this: 745, 1615, 1230, 1600, and so on.
    Try this in F3, dragged down to the end of the month:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The monthly total depends on whether you can pick [h]:mm from your list of number formats. If so, then just use a simple sum and format it with [h]:mm:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you can't use the number format [h]:mm then you'll have to force that in the formula like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    To sum multiple months, you'll need to reconvert those texts into values then reformat the same way. Let's assume your January total is in A35 and your February total is in D35, and you want to add them:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hopefully that helps.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Forum Contributor
    Join Date
    09-10-2010
    Location
    Sanford, FL
    MS-Off Ver
    Excel 2016 Office 365
    Posts
    105

    Re: attempting to enter and calculate time in office 365 sharepoint

    PHP Code: 
    Date    On Duty    Off Duty    Duty Hours
        3
    /1/2018    1200    1600       0.166666667
        3
    /2/2018    800    1700       0.375
        3
    /3/2018    800    1700    0.375
        3
    /4/2018    07:00 16:00    0
        3
    /5/2018            
        3
    /6/2018            
        3
    /7/2018            
        3
    /8/2018 
    I must be doing something wrong. When I put that in F3 these are the numbers I get?
    Juli

  4. #4
    Forum Contributor
    Join Date
    09-10-2010
    Location
    Sanford, FL
    MS-Off Ver
    Excel 2016 Office 365
    Posts
    105

    Re: attempting to enter and calculate time in office 365 sharepoint

    When I try it with 0900 1600 (which should be 7 hours) I get .29. Do I need to add a *24 of some sort to get it to recognize 24 hour time?
    I would post the actual worksheet but I can't figure out how in this dang sharepoint stuff.
    Last edited by Juli; 02-24-2018 at 04:29 PM.

  5. #5
    Registered User
    Join Date
    02-24-2018
    Location
    Germantown, MD
    MS-Off Ver
    2016
    Posts
    12

    Re: attempting to enter and calculate time in office 365 sharepoint

    I tried a different approach, assuming I understand your problem correctly. As before, this goes in F3 and fill down.

    Please Login or Register  to view this content.
    -Jim

  6. #6
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: attempting to enter and calculate time in office 365 sharepoint

    Sorry, I should have said - format column F using one of the default time formats (hh:mm if you can, or hh:mm:ss if that's all you can get). Excel treats dates and times just as numbers; 0.29 is therefore 0.29 of a day - just under 7 hrs.

  7. #7
    Forum Contributor
    Join Date
    09-10-2010
    Location
    Sanford, FL
    MS-Off Ver
    Excel 2016 Office 365
    Posts
    105

    Re: attempting to enter and calculate time in office 365 sharepoint

    Jim,
    That worked just fine! Thank You Kindly.
    Juli

  8. #8
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: attempting to enter and calculate time in office 365 sharepoint

    Or try:

    =IF(E3<1,E3-D3,TEXT(E3,"00\:00")-TEXT(D3,"00\:00"))*24

  9. #9
    Registered User
    Join Date
    02-24-2018
    Location
    Germantown, MD
    MS-Off Ver
    2016
    Posts
    12

    Re: attempting to enter and calculate time in office 365 sharepoint

    Quote Originally Posted by Juli View Post
    Jim,
    That worked just fine! Thank You Kindly.
    Juli
    That's good to hear. Using the length function is kind of a kluge to make it work. But it's good enuff for govmt work!

  10. #10
    Forum Contributor
    Join Date
    09-10-2010
    Location
    Sanford, FL
    MS-Off Ver
    Excel 2016 Office 365
    Posts
    105

    Re: attempting to enter and calculate time in office 365 sharepoint

    This works well...for every line but #33 and #36? For some reason on every sheet (month) on line 33 and line 36 I get this #####. line 33 is the 28th of the month and line 36 is the 31st in months with 31 days. This makes no sense to me?

  11. #11
    Registered User
    Join Date
    02-24-2018
    Location
    Germantown, MD
    MS-Off Ver
    2016
    Posts
    12

    Re: attempting to enter and calculate time in office 365 sharepoint

    Quote Originally Posted by Juli View Post
    This works well...for every line but #33 and #36? For some reason on every sheet (month) on line 33 and line 36 I get this #####. line 33 is the 28th of the month and line 36 is the 31st in months with 31 days. This makes no sense to me?
    Hi Juli,

    Do you have any sample values for lines 32 and 33?

  12. #12
    Forum Contributor
    Join Date
    09-10-2010
    Location
    Sanford, FL
    MS-Off Ver
    Excel 2016 Office 365
    Posts
    105

    Re: attempting to enter and calculate time in office 365 sharepoint

    Here is a screenshot
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    02-24-2018
    Location
    Germantown, MD
    MS-Off Ver
    2016
    Posts
    12

    Re: attempting to enter and calculate time in office 365 sharepoint

    Eh...doesn't help. Maybe select those #### cells and tell us what it says in the top bar? Also do the same with #REF! cell. There's obviously some terror...I mean error ...in those #### cells.

+ 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. Attempting to Calculate the Number of Hours that Two Time Periods Share
    By SGarza0290 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-30-2018, 08:08 PM
  2. Microsoft Office SharePoint Server (MOSS)
    By Ross85 in forum Excel General
    Replies: 0
    Last Post: 01-31-2017, 09:19 PM
  3. Replies: 4
    Last Post: 01-09-2016, 03:24 AM
  4. Replies: 3
    Last Post: 01-01-2016, 03:31 AM
  5. Excel 2007 Crashes when attempting to enter Developer Mode
    By TwoyTaylor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-01-2009, 04:42 PM
  6. [SOLVED] [SOLVED] calculate difference in time spanning a day, during office hours o
    By frozenfusion in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-29-2005, 04:05 AM
  7. [SOLVED] Calculate difference in time spanning a day, during office hours o
    By frozenfusion in forum Excel General
    Replies: 1
    Last Post: 08-26-2005, 06:05 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