+ Reply to Thread
Results 1 to 8 of 8

number of days since last accident by site

  1. #1
    Registered User
    Join Date
    03-11-2024
    Location
    Wales
    MS-Off Ver
    Office 365
    Posts
    4

    number of days since last accident by site

    I have created the number of days between an accident for a group level.

    I now need to be able to calculate the number of days between accidents from each site.

    Column A has the dates,
    Colum B has the sites. (In the attachment the sites are A,B & C)

    Can anybody help out, Please? Many thanks.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: number of days since last accident by site

    What Excel product are you using. 11 sounds like it's your Operating System (Windows 11). Is it O365, Excel 2021, 2019... or what?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: number of days since last accident by site

    Some of yor expected answers look just plain crazy. Highlighted in orange.

    Assumig you have O365:

    =LET(A,A6:A43,B,C6:C43,C,UNIQUE(A),D,MAP(C,LAMBDA(z,AVERAGE(FILTER(B,A=z)))),VSTACK({"Site","Average"},HSTACK(C,D)))
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-11-2024
    Location
    Wales
    MS-Off Ver
    Office 365
    Posts
    4

    Re: number of days since last accident by site

    Glenn,

    Thank you very much yes its Office 365 but as for the Excel revision, no information I can find gives me the revision.

    I also up loaded a version I was playing with and not the right one, Sorry, the joys of being disturbed when up loading. I have placed a much simpler version "Count of days between accidents by group & sites"

    Sorry to mess people about.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: number of days since last accident by site

    1. please amend your profile to show O365.

    2. Try:

    =B2-LOOKUP(2,1/(B4:B50="A"),A4:A50)

    similar for B & C.

  6. #6
    Registered User
    Join Date
    03-11-2024
    Location
    Wales
    MS-Off Ver
    Office 365
    Posts
    4

    Re: number of days since last accident by site

    Glenn,

    Thank you very much, I really appreciate this. I had completely forgot to think of a look up.

    Again thank you for your time. Pete

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,061

    Re: number of days since last accident by site

    You're welcome. Thanks for letting us know that you got an answer.

    BUT do change your profile, otherwise you will be asked the same question every time.




    Please take a moment and consider clicking the "Add Reputation" button at the foot of any of the posts of anyone who helped you reach a solution here today.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  8. #8
    Registered User
    Join Date
    03-11-2024
    Location
    Wales
    MS-Off Ver
    Office 365
    Posts
    4

    Re: number of days since last accident by site

    Glenn,

    Once again, BIG thank you for helping me out. I have updated my profile. Have a great weekend, Pete

+ 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: 09-09-2022, 05:34 AM
  2. Formula to count days since last accident
    By KingSmono in forum Excel General
    Replies: 5
    Last Post: 10-21-2021, 11:50 AM
  3. Replies: 2
    Last Post: 09-12-2020, 11:03 AM
  4. [SOLVED] calculate total number of days between two days based on 365 days year
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-14-2016, 12:51 AM
  5. [SOLVED] I need help with my formula to calculate number of days late to job site
    By John78550 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-14-2013, 09:58 AM
  6. Replies: 4
    Last Post: 07-22-2012, 03:42 PM
  7. Replies: 2
    Last Post: 09-21-2005, 07:05 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