Counting how many days since last accident occured on the job

  • Thread starter Thread starter aussiegirlone
  • Start date Start date
A

aussiegirlone

Dear someone, I am trying to calculate the number of days since the last
accident that occured on the job using a formular. column (A) is the date, &
column (B) is the accidents. Does anyone know a formular that would calculate
when the last accident occured e.g. 157 days ago?
 
Just subtract the date of the last accident from today's date and format the
cell as general.

Maybe something like:

=today()-max(a:a)

And format as general.
 
Thank you so very much for your help Mike
However, as I still need to be able to combine both the accident with the
date, (which I dont know how to do either,) Would the edited formular below
be ok?
=DATEDIF(H33*B33,TODAY(),"d")
 
Why not =TODAY()-B1 ?
What extra value does DATEDIF give, if you are dealing in days?
 
Dear Mike
B is the dates Column, H are the accidents column, therefore B33, = dates
and H33 = accidents. Your formular works very well as does the formular Dave
Peterson gave. Both work very well even by me modifying them.

=DATEDIF(H33*B33,TODAY(),"d")
=TODAY()-MAX(B:B,H:H)
 
David,

No added value. I simply like Datedif so tend to offer it as a solution
because I think it's quite intuative for posters to recognise exactly what's
going on.

Mike
 
Hello David
It is good to know that there is so much help available, and each one of you
that has responded, have given me a very good formular to work with, as each
one works well. Thank you kindly for your help!
 
because I think it's quite intuative for posters to recognise exactly what's
going on.

True enough, but it might be worth mentioning that DATEDIF isn't
documented in the Excel help files to prevent users from wasting time
trying to track it down.

Cordially,
Chip Pearson
Microsoft MVP
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)
 
David,

No added value. I simply like Datedif so tend to offer it as a solution
because I think it's quite intuative for posters to recognise exactly what's
going on.

Mike
Hi Mike, just reading through this very old thread - is there an amended formula that would consider the information in 3 columns? Namely: date of last injury, type of injury (column has a drop down with these options (Fist Aid, Minor Injury, RIDDOR) and the department where the injury occurred. Any assistance would be appreciated.
 
Back
Top