Trying to calculate the number of "T's" in a table row and I do not want to count the first or the last occurrence, so in essence I want to subtract 2 from whatever my total is. I have that working, maybe not efficiently, but it is working.
Here is what I have:
=(COUNTIF(tblJanuary[@[1]:[31]],"T")-2) - this is calculated in hidden columns.
=IF(AQ5<=0,0,AQ5) - this is in the visible columns
There is a possibility that there could be a break in the occurrences. In other words, person leaves and is gone 5 days and comes back for 2 days and then is gone again for 4 days. I would need to subtract 2 from each of the instances and only count the number of days less the first and last day of each occurrence. How do I count/calculate each occurrence and subtract the first and last day of each?
I hope that makes sense.
Thank you so much,
Lori
Here is what I have:
=(COUNTIF(tblJanuary[@[1]:[31]],"T")-2) - this is calculated in hidden columns.
=IF(AQ5<=0,0,AQ5) - this is in the visible columns
There is a possibility that there could be a break in the occurrences. In other words, person leaves and is gone 5 days and comes back for 2 days and then is gone again for 4 days. I would need to subtract 2 from each of the instances and only count the number of days less the first and last day of each occurrence. How do I count/calculate each occurrence and subtract the first and last day of each?
I hope that makes sense.
Thank you so much,
Lori