Can the DAYS function be adapted to only count visible cells?
What I am trying to do is to divide the number of days between 2 dates into the number of selections I have. This tell me how many selections per day I have. Here is the formula I have:
This works alright when the sheet is unfiltered, but when I autofilter selections for certain criteria, it still counts the days from the first date in A3 to the last date in A5524. I would like it to only count the actual number of days showing from the first visible cell to the last visible cell. On some days there may be no selections, so I I don't want it to count simply from start date to finish date. I need it to differentiate when NO days are showing.
As you can see with this, there are only 12 actual days with entries, but if you counted from 19 Jan 2017 to 11 Feb 2017, you would get 24 days. I hope that clarifies it a little
Is there a way to adjust this to achieve what I am after?
cheers
What I am trying to do is to divide the number of days between 2 dates into the number of selections I have. This tell me how many selections per day I have. Here is the formula I have:
Code:
=F5549/DAYS(A5524,A3)
This works alright when the sheet is unfiltered, but when I autofilter selections for certain criteria, it still counts the days from the first date in A3 to the last date in A5524. I would like it to only count the actual number of days showing from the first visible cell to the last visible cell. On some days there may be no selections, so I I don't want it to count simply from start date to finish date. I need it to differentiate when NO days are showing.
19/01/2017 | Thursday | 14:35 |
20/01/2017 | Friday | 19:15 |
20/01/2017 | Friday | 20:00 |
24/01/2017 | Tuesday | 14:40 |
25/01/2017 | Wednesday | 13:35 |
25/01/2017 | Wednesday | 15:50 |
31/01/2017 | Tuesday | 15:20 |
01/02/2017 | Wednesday | 18:30 |
02/02/2017 | Thursday | 21:00 |
03/02/2017 | Friday | 16:10 |
04/02/2017 | Saturday | 14:00 |
09/02/2017 | Thursday | 14:05 |
10/02/2017 | Friday | 18:15 |
10/02/2017 | Friday | 18:45 |
11/02/2017 | Saturday | 16:20 |
As you can see with this, there are only 12 actual days with entries, but if you counted from 19 Jan 2017 to 11 Feb 2017, you would get 24 days. I hope that clarifies it a little
Is there a way to adjust this to achieve what I am after?
cheers