I'm at a loss. I've searched high and low for a solution.
A2:A5 size unit
B2:B5 time range beginning
C2:C5 time range end
$d$2 : Date1
$d$3 : Date2
I'm trying to find the average size of units that were active during D2:D3
I can identify if time ranges intersect with:
=if(or( c2:c5 <d2,d3<b2:b5), "overlap", "no overlap")<d2.d3<b2:b5), "overlap",="" "no="" overlap")<d2,d3<b2:b5),="" no="" overlap")
But I don't know how to use this to find the average of the units.
=if(or(and(b2:b5>=d2, b2:b5<=d3),and(d2>=b2:b5,d2<=c2:c5),average(a2:a5),0)
I know this is wrong. Any help would be appreciated</d2.d3<b2:b5),>
A2:A5 size unit
B2:B5 time range beginning
C2:C5 time range end
$d$2 : Date1
$d$3 : Date2
I'm trying to find the average size of units that were active during D2:D3
I can identify if time ranges intersect with:
=if(or( c2:c5 <d2,d3<b2:b5), "overlap", "no overlap")<d2.d3<b2:b5), "overlap",="" "no="" overlap")<d2,d3<b2:b5),="" no="" overlap")
But I don't know how to use this to find the average of the units.
=if(or(and(b2:b5>=d2, b2:b5<=d3),and(d2>=b2:b5,d2<=c2:c5),average(a2:a5),0)
I know this is wrong. Any help would be appreciated</d2.d3<b2:b5),>
Last edited: