+ Reply to Thread
Results 1 to 6 of 6

What formula to calculate periods??

  1. #1
    Registered User
    Join Date
    11-14-2013
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    5

    What formula to calculate periods??

    I'd be so grateful if anybody could help with the below query.......

    A7:A82 = Dept.
    B7:B82 = Employee name
    C7:C82 = Total hours sick
    D7:D82 = Hours sick for Tuesday 01/01/2013
    E7:E82 = Hours sick for Wednesday 02/01/2013
    F7:F82 = Hours sick for Thursday 03/01/2013
    G7:G82 = Hours sick for Friday 04/01/2013
    H7:H82 = Hours sick for Monday 07/01/2013

    all the way through to IY7:IY82 Tuesday 24/12/2013. Weekends are excluded.

    Here is the query, what formula can I use to add up the "periods" or "episodes" of sickness. So, If the sick period was 01/02/13 all the way through to the 09/02/13......this would be 1 period, but if the sick period was 18/03/13 to the 21/03/13, then again on 15/07/13 and again from 11/12/13 to the 19/12/13.....altogether this would be 3 periods.
    Is this a COUNT formula?

    Many thanks in advance!

  2. #2
    Forum Contributor
    Join Date
    11-12-2013
    Location
    Delhi
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: What formula to calculate periods??

    Send me dummy data.....

  3. #3
    Registered User
    Join Date
    11-14-2013
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: What formula to calculate periods??

    As requested.....
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: What formula to calculate periods??

    Something like this?
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  5. #5
    Registered User
    Join Date
    11-14-2013
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: What formula to calculate periods??

    Quote Originally Posted by popipipo View Post
    Something like this?
    sorry, I was looking for a total column in the highlighted cells for the whole of the year

    so, the total for:
    row 7 (on your upload Jan only) should be........number of periods = 3
    row 8 (on your upload Jan only) should be .......number of periods = 0
    row 9 (on your upload Jan only) should be .......number of periods = 1

    thanks.
    Last edited by rowley1500; 11-14-2013 at 10:58 AM.

  6. #6
    Registered User
    Join Date
    11-14-2013
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: What formula to calculate periods??

    =SUMPRODUCT(--(C7:IX7=0),--(D7:IY7<>0))+(D7<>0)

    this works a treat for the first original upload spreadsheet.

+ 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. Replies: 3
    Last Post: 03-05-2013, 11:42 AM
  2. Calculate BiWeekly Pay Periods
    By gjames in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-25-2013, 02:13 PM
  3. Calculate time periods before and after 7pm
    By Sukeany in forum Excel General
    Replies: 2
    Last Post: 10-22-2011, 07:24 PM
  4. Calculate time between three periods
    By adhide in forum Excel General
    Replies: 1
    Last Post: 03-14-2011, 11:00 PM
  5. [SOLVED] calculate time periods
    By umba-sr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-21-2006, 10:13 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