Calculate events between 2 dates

nc22

New Member
Joined
Feb 28, 2011
Messages
3
Hello,

I would need to calculate instances that happen in a span of a week (Sunday - Sarurday).

I am using a table named Table2 and a Column called Due Date.

From there several events are entered with the due date in the due date column. I would need to find out how many events are going to happend in the current week while using a formula.

Please Help
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Welcome to the Board!

Any of these should work depending on your version:
Excel Workbook
CDEFGHI
1Due DateDate1Date2# of Events
21/8/20111/8/20111/12/20113Any version
31/9/20111/8/20111/12/20113Any version
41/17/20111/8/20111/12/20113Excel 2007 or newer
51/12/2011
61/7/2011
71/25/2011
Sheet1
Cell Formulas
RangeFormula
H2=COUNTIF(C2:C7,"< ="&G2)-COUNTIF(C2:C7,"< "&F2)
H3=SUMPRODUCT((C2:C7 > =F3)*(C2:C7< =G3))
H4=COUNTIFS(C2:C7," > ="&F4,C2:C7,"< ="&G4)

Hope that helps.
 
Upvote 0
Hi and Thank you for your welcome message.

I have not tried the formula yet but what would it be if instead of cell numbers I would want to use "Table2 as the table and the Column name Due Date" since the entries will be changed daily as soon as the job is done and could get very large. Also I would not want the date range to be posted but have excel use its weekday function and figure out the weekday dates from sunday to saturday.

Hope this is clear as mud!
 
Upvote 0
You can use whole column ranges for countif and in excel 2007 you can use whole column ranges for countifs or sumproduct.

I'm not exactly sure what you mean if you just put in sunday and saturday and no date range, how it knows what date range to count through?

Can you post any sample data and expected results?

You can copy and paste directly from Excel if you want.
 
Upvote 0

Forum statistics

Threads
1,224,608
Messages
6,179,872
Members
452,949
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top