+ Reply to Thread
Results 1 to 9 of 9

Calculating average waiting time over the last year?

  1. #1
    Registered User
    Join Date
    11-09-2016
    Location
    LONDON
    MS-Off Ver
    14.0.7106.5003
    Posts
    4

    Calculating average waiting time over the last year?

    Hi all!

    This is what I am trying to do:

    Calculate the average waiting time over the last year...seems simple? wait...

    I need a formula which will update automatically as the days go by to only calculate the average time for the previous 365 days.

    PLEASE HELP!!! I'm so stuck! Thanks!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Calculating average waiting time over the last year?

    We need to see the format your data is in.

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-09-2016
    Location
    LONDON
    MS-Off Ver
    14.0.7106.5003
    Posts
    4

    Re: Calculating average waiting time over the last year?

    Please see attached...Thanks
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Calculating average waiting time over the last year?

    I'm sorry, but you are going to need to explain the data you have provided: where is the mock-up of what you are trying to achieve? Please provide everything that you have been asked to provide to help those trying to help you.

  5. #5
    Registered User
    Join Date
    11-09-2016
    Location
    LONDON
    MS-Off Ver
    14.0.7106.5003
    Posts
    4
    Referral date is the initial date for each individual. The start date is the date the treatment was started. I have already calculated the number of days (waiting time), weeks and months between those two dates as can be seen in the file sent.

    So... I need to calculate the average waiting time from coloum 'waiting time (months)'. However, I need the average waiting time to be only for the individuals who started in the last year. I'd like that to update every day as the days go by to only account for the individuals who started in the last year.

    I'm not sure what you mean by mock-up.

    I hope the information helps.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Calculating average waiting time over the last year?

    I mean a mock-up in the spreadsheet of the results you are looking for where you want them to be.

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Calculating average waiting time over the last year?

    I have used a helper column (B) to identify the dates that are less than a year back from today with a "Y". This value was then used to average the amounts in column M that match the Y in column B using this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula in column B is
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by newdoverman; 11-09-2016 at 02:55 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  8. #8
    Registered User
    Join Date
    11-09-2016
    Location
    LONDON
    MS-Off Ver
    14.0.7106.5003
    Posts
    4

    Re: Calculating average waiting time over the last year?

    Thank you so much!

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Calculating average waiting time over the last year?

    Thank you for the feedback.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Excel 2007 : Calculating year to Date Average
    By PSU1987 in forum Excel General
    Replies: 3
    Last Post: 10-18-2014, 08:56 PM
  2. Replies: 3
    Last Post: 06-12-2014, 09:29 AM
  3. Replies: 2
    Last Post: 06-11-2014, 11:39 AM
  4. [SOLVED] vb macro code for calculating sum and average of rainfall for each year
    By Dharani Suresh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-12-2014, 04:39 AM
  5. [SOLVED] Calculating longest waiting time at given time slot
    By dvs in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-03-2013, 06:20 PM
  6. Replies: 2
    Last Post: 03-05-2012, 03:56 PM
  7. Calculating a waiting time
    By jack.williams in forum Excel General
    Replies: 1
    Last Post: 01-12-2010, 12:36 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