+ Reply to Thread
Results 1 to 6 of 6

Determine frequency over time

  1. #1
    Registered User
    Join Date
    04-09-2016
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    4

    Exclamation Determine frequency over time

    Hi all,

    I need to show increasing absence during a set time, but with everything I've tried, I get a count. What I want to show is if within a specific timeframe a person has increasing absences (which is a trend). The attendance schedule is weekly and shows "A" for absent and "P" for present. I have converted this to "0" for absent and "1" for present.

    Ideally, my end-result would be an "up" arrow if the frequency of zeroes increases over the time span.

    For example

    1111111111111111111 would not trigger anything, because this person is always present
    1010101010101010101 would also not trigger anything, because this person has a regular attendance pattern
    1010010100001000000 would trigger something because the absence intervals get longer and longer over time

    I've tried several formulas, but I'm not good at statistics, so I'm not getting the results I want.

    Anyone have a solution for this problem? Thanks in advance for your help!!
    Attached Files Attached Files
    Last edited by gertrud; 04-10-2016 at 05:46 PM.

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Determine frequency over time

    Hi Gertrud and welcome.

    Not sure how your data is arranged. It's often good to attach a file to help us understand how your data is structured.

    I've made some assumptions and think this might get you heading in the right direction.

    The main part of this problem is to understand what logic you will use to determine if the incidents of sick leave are increasing or decreasing because I imagine they real life examples aren't as neat as your examples above. I thought the best way to determine this would be to determine an array of absence periods first. For your 3rd example above the absence array would be 1, 2,1,4,6 because the person took one day then 2 days then 1 day then 4 days then 6 days. If you plotted this the trend line of best fit would be positive showing an increase over time. As such the formula below uses the line of best fit and uses the slope to determine an increase in absence or a decrease. A positive answer will mean an increase in absences, a negative will indicate a decrease

    Please Login or Register  to view this content.
    Its an array formula so you'll need to enter it with control + shift + enter. You'll know if you get it right because it will be surrounded in squiggly lines.

    I have assumed for this purpose that your array of ones and zeros are in cell A1 and are a single text field. If this isn't the case then we'll have to work out another way of resolving this
    Last edited by Crooza; 04-09-2016 at 11:34 PM.
    Happy with my advice? Click on the * reputation button below

  3. #3
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Determine frequency over time

    Hi Gertrud,

    For this kind of thing I don't think there is a silver bullet. Or at least I couldn't find one.
    There are all kinds of formula's for trying to find frequency of changes and identifying trends.
    However, for a series of 1's and 0's, I think the best identifier is the Mark 1 Mod 1 eyeball (or Mod 2 if you wear glasses, like me)

    I think the easiest way of seeing those changes in frequency is through the use of Sparklines which can be found under the Insert menu/ribbon.

    See attached file.

    I also included a Trend, Average and Slope formulas. The Trend and Average pretty much show the same thing.
    The Slope formula helps see where significant changes occur.

    Hope this is helpful.

    Cheers
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-09-2016
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    4

    Re: Determine frequency over time

    Thank you so much. I attached a sample file to my original post and also attempted to attach one to this reply. My data is arranged in rows, one for each record. What I'm trying to do is measure absences (zeroes) in between presences (ones) to determine if the absences are increasing, which would be an indicator that a person might eventually not come back at all. I'm not sure if the formula you developed would work in rows or only in columns? Anyway, thanks again for your help - if you have the time to help some more, it would be very much appreciated.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-09-2016
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    4

    Re: Determine frequency over time

    Hi,

    Thanks so much for your reply. Unfortunately, that solution doesn't work, as I'm trying to determine a trend (is a person increasingly absent). I attached a sample file to my original post - I guess not having done so in the first place is causing those trying to help some trouble. I apologize.

  6. #6
    Registered User
    Join Date
    04-09-2016
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    4

    Re: Determine frequency over time

    I keep trying to reply, but it's not showing up in the thread, so I'm trying again... Thank you so much for responding! I didn't realize that I could attach a file to my post. I've now added one to the original inquiry. If you have the time to take a look, that would be very much appreciated.
    Last edited by gertrud; 04-10-2016 at 05:56 PM. Reason: delete

+ 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: 2
    Last Post: 07-14-2015, 02:12 PM
  2. formula to determine what time double time starts and ends after 16:30
    By cfinch100 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-22-2013, 12:05 PM
  3. Histogram: What is the formula to determine the frequency
    By Elainefish in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-02-2013, 05:44 AM
  4. Replies: 21
    Last Post: 11-30-2012, 07:28 PM
  5. Match & Determine Frequency
    By mycon73 in forum Excel General
    Replies: 21
    Last Post: 08-03-2012, 02:17 PM
  6. How to determine Data sequence and Frequency
    By grudum in forum Excel General
    Replies: 12
    Last Post: 10-27-2010, 10:41 AM
  7. [SOLVED] Determine Frequency in Filtered List
    By Michael in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-10-2005, 04:06 PM

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