Hi all,
I've got a SUMIF formula that works but will be complex to expand. Junt wondering if there is a easier way of doing this is excel 2007
A10= SUMIFS(b2:b4,a2:a4,">="&B6,a2:a4,"<="&C6)+SUMIFS(d2:d4,c2:c4,">="&B6,c2:c4,"<="&C6)
result would be count of dates beween Apr1 - Apr 30. total =9
B10= SUMIFS(b2:b4,a2:a4,">="&c6,a2:a4,"<="&d6)+SUMIFS(d2:d4,c2:c4,">="&c6,c2:c4,"<="&d6)
result would be count of dates between May1 - May31. total= 6
the date range in row 6 will go on for 48 months
[TABLE="width: 500"]
<TBODY>[TR]
[TD]date1[/TD]
[TD]count1[/TD]
[TD]date2[/TD]
[TD]count2[/TD]
[TD]date3[/TD]
[TD]count3[/TD]
[/TR]
[TR]
[TD]4/3/14[/TD]
[TD]2[/TD]
[TD]5/9/14[/TD]
[TD]1[/TD]
[TD]4/15/14[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]5/8/14[/TD]
[TD]3[/TD]
[TD]4/23/14[/TD]
[TD]2[/TD]
[TD]5/19/14[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]4/9/14[/TD]
[TD]1[/TD]
[TD]8/6/15[/TD]
[TD]1[/TD]
[TD]1/1/15[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]date range[/TD]
[TD]1/4/14[/TD]
[TD]1/5/14[/TD]
[TD]1/6/14[/TD]
[TD]1/7/14[/TD]
[TD]1/8/14[/TD]
[/TR]
</TBODY>[/TABLE]
I've got a SUMIF formula that works but will be complex to expand. Junt wondering if there is a easier way of doing this is excel 2007
A10= SUMIFS(b2:b4,a2:a4,">="&B6,a2:a4,"<="&C6)+SUMIFS(d2:d4,c2:c4,">="&B6,c2:c4,"<="&C6)
result would be count of dates beween Apr1 - Apr 30. total =9
B10= SUMIFS(b2:b4,a2:a4,">="&c6,a2:a4,"<="&d6)+SUMIFS(d2:d4,c2:c4,">="&c6,c2:c4,"<="&d6)
result would be count of dates between May1 - May31. total= 6
the date range in row 6 will go on for 48 months
[TABLE="width: 500"]
<TBODY>[TR]
[TD]date1[/TD]
[TD]count1[/TD]
[TD]date2[/TD]
[TD]count2[/TD]
[TD]date3[/TD]
[TD]count3[/TD]
[/TR]
[TR]
[TD]4/3/14[/TD]
[TD]2[/TD]
[TD]5/9/14[/TD]
[TD]1[/TD]
[TD]4/15/14[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]5/8/14[/TD]
[TD]3[/TD]
[TD]4/23/14[/TD]
[TD]2[/TD]
[TD]5/19/14[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]4/9/14[/TD]
[TD]1[/TD]
[TD]8/6/15[/TD]
[TD]1[/TD]
[TD]1/1/15[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]date range[/TD]
[TD]1/4/14[/TD]
[TD]1/5/14[/TD]
[TD]1/6/14[/TD]
[TD]1/7/14[/TD]
[TD]1/8/14[/TD]
[/TR]
</TBODY>[/TABLE]