+ Reply to Thread
Results 1 to 5 of 5

conditional summation

  1. #1
    Registered User
    Join Date
    10-28-2009
    Location
    Coventry, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    conditional summation

    Hi

    I'm new here please be patient! i'm trying to organise a spreadsheet to log staff sicknesses and flag up whether they're a "cause for concern" or not. There are 4 criteria for a cause for concern. I've done the formulas for three of them fine, all in seperate columns, but I'm really struggling with the last! What I need to flag is whether the staff member has had 10 days off or more in total within 12 months. The dates are not set, it's a rolling 12 months back from the date of the latest sickness.

    Each worksheet is for a seperate staff member all within one workbook and I have a summary sheet on the front. Within each worksheet I've got columns to enter the start and end date of each sickness, and a column to show working days off sick. You enter each new sickness date on a new row and the rest works itself out.

    I need to put in a new column a formula which says that when you add a new sickness, to count back one year from the start date and add up the total days off from all rows whereby the date column falls into the 12 month date range. I want it to show True if the total is more than 9.

    Is it possible? Does that even make sense?

    Would really appreciate some help!

    Thanks
    Last edited by DonkeyOte; 10-28-2009 at 07:24 AM. Reason: didn't comply with rules

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: formula help

    Can you upload example?

  3. #3
    Registered User
    Join Date
    10-28-2009
    Location
    Coventry, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: formula help

    No, unfortunately I work for a council and they block uploading as well as downloading for some reason.

    I'll try and show the example here simply - not sure if it will work! (There are several other columns but they'll confuse things!):

    A---------------B----------------C-----------------------D
    Start Date--|--End date--|--total days off--|--10 days off within 12 months?

    10/10/09---|--12/10/09--|--------1--------|----------FALSE
    15/10/09---|--21/10/09--|--------5--------|----------FALSE
    03/11/09---|--06/11/09--|--------4--------|----------TRUE



    for column D, I want to add up the totals in Column C from the last row back, but only for the rows whereby the dates in column A fall within 12 months from the last row. Then if it's 10 or more, to show True
    Last edited by nicolaw; 10-28-2009 at 06:48 AM.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: conditional summation

    And so what happens if the 12 month period should start mid absence on an old record ?

    The total days off calculation is seemingly workday related (ie NETWORKDAYS or somesuch) but I would be curious as to why (if weekends are excluded) a start/end date should ever fall on a weekend date in the first instance ?

  5. #5
    Registered User
    Join Date
    10-28-2009
    Location
    Coventry, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: conditional summation

    Quote Originally Posted by DonkeyOte View Post
    And so what happens if the 12 month period should start mid absence on an old record ?
    that's a very good point, I hadn't thought of that.

    Quote Originally Posted by DonkeyOte View Post
    The total days off calculation is seemingly workday related (ie NETWORKDAYS or somesuch) but I would be curious as to why (if weekends are excluded) a start/end date should ever fall on a weekend date in the first instance ?
    The start/end date shouldn't be a weekend, but if the sickness goes over a weekend (e.g. Thursday - Tuesday) I need to count that they've been off for 4 days not 6. If I used a weekend as a start/end date in my example it was just me choosing random dates!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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