Imran Azam
Board Regular
- Joined
- Mar 15, 2011
- Messages
- 103
Hi All
Hope everyone is well
I have the below data and i am trying to answer the question : what is the overall average length of days for open status for each manager ALi and MAX.
[TABLE="width: 100"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Manager[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]status[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Ali[/TD]
[TD]15/02/2019[/TD]
[TD]17/02/2019[/TD]
[TD]Open[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Ali[/TD]
[TD]18/02/2019[/TD]
[TD]19/02/2019[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Ali[/TD]
[TD]19/02/2019[/TD]
[TD]21/02/2019[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Ali[/TD]
[TD]19/02/2019[/TD]
[TD]19/02/2019[/TD]
[TD]Open[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Ali[/TD]
[TD]18/02/2019[/TD]
[TD]25/02/2019[/TD]
[TD]Open[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Ali[/TD]
[TD]20/02/2019[/TD]
[TD]20/02/2019[/TD]
[TD]Open[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Max[/TD]
[TD]05/02/2019[/TD]
[TD]07/02/2019[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Max[/TD]
[TD]04/02/2019[/TD]
[TD]12/02/2019[/TD]
[TD]Open[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Max[/TD]
[TD]14/02/2019[/TD]
[TD]14/02/2019[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Max[/TD]
[TD]12/02/2019[/TD]
[TD]20/02/2019[/TD]
[TD]Closed[/TD]
[/TR]
</tbody>[/TABLE]
i would like to return something like Ali: 9 days Max: 8 days
I think the date difference between start and end date for each row news to be done first, and then condition the manager name and open status and then do the average sum. This is the logic i want to apply but cant seem to get it into a formula
Can this be done if so how?
thank you for any help provided
Hope everyone is well
I have the below data and i am trying to answer the question : what is the overall average length of days for open status for each manager ALi and MAX.
[TABLE="width: 100"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Manager[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[TD]status[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Ali[/TD]
[TD]15/02/2019[/TD]
[TD]17/02/2019[/TD]
[TD]Open[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Ali[/TD]
[TD]18/02/2019[/TD]
[TD]19/02/2019[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Ali[/TD]
[TD]19/02/2019[/TD]
[TD]21/02/2019[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Ali[/TD]
[TD]19/02/2019[/TD]
[TD]19/02/2019[/TD]
[TD]Open[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Ali[/TD]
[TD]18/02/2019[/TD]
[TD]25/02/2019[/TD]
[TD]Open[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Ali[/TD]
[TD]20/02/2019[/TD]
[TD]20/02/2019[/TD]
[TD]Open[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Max[/TD]
[TD]05/02/2019[/TD]
[TD]07/02/2019[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Max[/TD]
[TD]04/02/2019[/TD]
[TD]12/02/2019[/TD]
[TD]Open[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Max[/TD]
[TD]14/02/2019[/TD]
[TD]14/02/2019[/TD]
[TD]Closed[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Max[/TD]
[TD]12/02/2019[/TD]
[TD]20/02/2019[/TD]
[TD]Closed[/TD]
[/TR]
</tbody>[/TABLE]
i would like to return something like Ali: 9 days Max: 8 days
I think the date difference between start and end date for each row news to be done first, and then condition the manager name and open status and then do the average sum. This is the logic i want to apply but cant seem to get it into a formula
Can this be done if so how?
thank you for any help provided