extracting a range of data between two date

newton.rogers

New Member
Joined
Aug 13, 2011
Messages
5
Details,
Column A: "In Dates" in the format dd/mm/yyyy
Column B: "Out Dates" in the same format
Column C: Calculates elapsed working days i.e using function NETWORKDAYS
All colums can have up to a years data which sometimes have a number of "In Dates" which have the same date and the same for the "Out Dates" i.e. the same dates make occur more than once.
The spreadsheet is used to keep track on a number documents coming in, being processed and then being sent out. We use this data to check numerous bits of information, how many documents we received, how long we took to process them and variuos other calculations such as average processing time, max & min processing time etc.
What I am trying to do is to be able to extract the data from column C for a certain period ie from a start date to an end date and then do the necessay calculations on the data extraced. Thanks - "Stumped
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi try this one for earlier version.
Excel Workbook
ABCDEFGHIJ
1In DateOut DateNetWorkdaysStart DateEnd DateIn DateOut DateNetWorkdays
215/08/201118/08/2011415/08/201125/08/201115/08/201118/08/20114
315/08/201122/08/2011615/08/201122/08/20116
419/08/201129/08/2011720/08/201125/08/20114
520/08/201125/08/20114
623/08/201101/09/20118
724/08/201127/08/20113
827/08/201105/09/20116
928/08/201102/09/20115
1031/08/201104/09/20113
1131/08/201106/09/20115
Sheet2
Excel 2010
Cell Formulas
RangeFormula
C2=NETWORKDAYS(A2,B2)
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
 
Upvote 0
and for 2010 version.
Excel Workbook
ABCDEFGHIJ
1In DateOut DateNetWorkdaysStart DateEnd DateIn DateOut DateNetWorkdays
215/08/201118/08/2011415/08/201125/08/201115/08/201118/08/20114
315/08/201122/08/2011615/08/201122/08/20116
419/08/201129/08/2011720/08/201125/08/20114
520/08/201125/08/20114
623/08/201101/09/20118
724/08/201127/08/20113
827/08/201105/09/20116
928/08/201102/09/20115
1031/08/201104/09/20113
1131/08/201106/09/20115
Sheet2
Excel 2010
Cell Formulas
RangeFormula
C2=NETWORKDAYS(A2,B2)
H2=IFERROR(INDEX(A$2:A$11,AGGREGATE(15,6,(ROW($A$2:$A$11)-ROW($A$2)+1)/(($A$2:$A$11>=$E$2)*($B$2:$B$11<=$F$2)),ROWS(H$2:H2))),"")
 
Last edited:
Upvote 0
I don't know if I am doing something wrong but all I get is the date 15/8/2011 in cell H2.
Secondly, I possibly didn't explain myself in the "Start" and "End" dates in cells E2 and F2, all I am wanting to do is extract the info based in the "In Date" column and does not have to look for dates in both the I
"In" and "Out Dates"
Please advise?
 
Upvote 0
Hi tnx for feedback. this is 2010 version. this does not require Ctrl Shift Enter.
Excel Workbook
ABCDEFGHI
1InDateOutDateNetworkdaysStartDateInDateOutDateNetworkdays
215/08/201122/08/2011621/08/201124/08/201128/08/20113
319/08/201125/08/2011529/08/201130/08/20112
424/08/201128/08/2011301/09/201106/09/20114
529/08/201130/08/2011206/09/201112/09/20115
601/09/201106/09/2011411/09/201118/09/20115
706/09/201112/09/2011515/09/201122/09/20116
811/09/201118/09/2011520/09/201122/09/20113
915/09/201122/09/20116
1020/09/201122/09/20113
Sheet3
Excel 2010
Cell Formulas
RangeFormula
G2=IFERROR(INDEX(A$2:A$10,AGGREGATE(15,6,(ROW($A$2:$A$10)-ROW($A$2)+1)/($A$2:$A$10>=$E$2),ROWS(G$2:G2))),"")
 
Upvote 0
Thanks for that but I still require an end date, what I meant was that the "Start date" and "End date" must be based in the "In Date" column "A" and does not need to incorporate the dates in the "Out date" column.
 
Upvote 0
Private Message me with your e-mail and I will send you an example File, using the Advanced Filter option.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,357
Members
452,907
Latest member
Roland Deschain

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