Hello all,
I'm pretty stumped on this. What I am trying to accomplish isn't exact to what is above in the picture but I will explain because the picture is just an example to keep it simple.
I have 2 sheets in my workbook that are needed. One sheet contains a log of incidents with information similar to what is on the left columns in A-F in the picture. The other sheet contains a column for each week and under week is the total of the type of each incident between the last week ending date and the current week. Also, each week ends on a Sunday. So data is from Monday through Sunday. According to the picture, you will notice in blue color is what each row in red should display but I haven't gotten it to show with any functions i've tried so far.
I am trying to eliminate having to manually enter the amount of incidents for each week. Also, FA stands for First Aid and NM stands for Near Miss. So, let's say we had 2 FA's in the log on January 25, 2011. The cell L3 would then display 2 because it counted 2 after the date in K1 and on or before the date in L1.
Also, the reason for all the different styles of date break up on the left is because the log right now only shows the date as the cells in A, C, and D. So, the cells in E are functioned to show what it presently shows. I added that while tinkering with this because I thought excel couldn't read a 3 cell date and needed it in one cell.
I hope this makes sense. Please let me know if you have questions.