+ Reply to Thread
Results 1 to 2 of 2

Excel Sum Function Question

  1. #1
    Registered User
    Join Date
    08-30-2008
    Location
    oak park
    Posts
    1

    Excel Sum Function Question

    Trying to create a spreadsheet that tracks overtime at work.

    Little background...Work 24 hr shifts as public safety dispatcher. We are also set up on an overtime rotation. Once you hit 6hr of overtime, you are rotated to the bottom and you go back to 0 hrs of overtime.

    Trying to figure out which sum function to use to track overtime. Here's the problem:

    Say I have 4 overtime shifts logged:

    9/1/08 2hrs
    9/2/08 2hrs
    9/3/08 2hrs

    I know you can use the sum function to calculate (obvious answer is 6), but one 6hrs is obtained, the person is dropped on the rotation list and overtime accumulation reverts back to 0hrs.

    I want to know if there is a function available that will allow me to enter overtime and when 6hrs is obtained, the spreadsheet will revert back to 0hrs automatically.

    Sounds confusing and its kinda tough to explain. I am willing to answer any questions in order to figure this out. It's been about 8 years since I have used excel, so please help in anyway you can!

    Thank you!

  2. #2
    Registered User
    Join Date
    08-28-2008
    Location
    Latvia
    Posts
    10
    If I understood your requirements correctly, I'd use MOD function as the wrapper of the SUM function:

    =MOD(SUM(TheRangeToBeSummed), 6)

    Then:
    * if the sum of overtime hours is 5, you'd get 5 as the answer.
    * if the sum of overtime hours is 6, you'd get 0 as the answer.
    * if the sum of overtime hours is 7, you'd get 1 as the answer.

    Or do you expect something else?

+ 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. Match function question
    By Weasel in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-30-2008, 04:00 PM
  2. Problems with multiple statements IF function (Excel 2003)
    By Manupi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-18-2008, 03:49 PM
  3. CPU usage question for excel 2007 users.
    By feejo in forum Excel General
    Replies: 2
    Last Post: 12-27-2007, 09:49 AM
  4. Question about DATEDIF Function
    By jwright in forum Excel General
    Replies: 3
    Last Post: 11-13-2007, 05:56 PM
  5. Question re Vlookup function within Excel.
    By 007juk in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-07-2007, 07:28 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