Finding values between two dates from specific entries

masud8956

Board Regular
Joined
Oct 22, 2016
Messages
163
Office Version
  1. 2016
  2. 2011
  3. 2007
Platform
  1. Windows
Hi Experts!

I have a project like this:


ABCDEFGHIJKLMNOPQRST
1



















2



















3








START DATE1 JAN 18








4








END DATE2 JAN 18








5








ENTRIES4








6



















7
DATEATHLETE100M200M300M400MHURDLES



DATEATHLETE100M200M300M400MHURDLES
8
1 Jan 18Donald0:450:351:000:301:15



1 Jan 18Donald0:450:351:000:301:15
9
2 Jan 18Martin1:000:450:301:150:35



2 Jan 18Martin1:000:450:301:150:35
10
2 Jan 18James0:500:451:151:000:30



2 Jan 18James0:500:451:151:000:30
11
2 Jan 18Donald0:300:451:001:150:35



2 Jan 18Donald0:300:451:001:150:35
12
3 Jan 18Steven1:150:501:000:350:45











13
5 Jan 18Eric1:001:150:300:450:35











14
5 Jan 18Steven0:450:301:150:500:50











15
5 Jan 18Eric0:300:450:351:151:00











16



















17



















18




















<tbody>
</tbody>

I have some data in range B8:H15. Column B is formatted as 'Date'. Some durations are located at D8:H15 in [h]:mm format.

At K3 and K4 I have two dates. K3 is the Start Day and K4 the End Day between which I am trying to calculate. At K5 I have found out the number of entries between these two dates using the following formula.
Code:
=COUNTIFS($B$8:$B$18,">="&K3,$B$8:$B$18,"<="&K4)

The formula returns "4" entries between these two dates as it should.

In range M8:S15 I am trying to list out the entries between those two specific days. I have used the following formula at M8:
Code:
=IFERROR(INDEX(B$8:B$18,SMALL(IF($B$8:$B$18>=$K$3,IF($B$8:$B$18<=$K$4,ROW($B$8:$B$18)-ROW($B$8)+1)),ROWS(K$3:K3))),"")
Then using the fill handle I have copied the formula to the whole destination range M8:S15. So the destination range has now 4 entry rows as it should given the Start and End date range.

WHAT I NEED NOW

I need a way so that I am able to select specific entries between those two dates. What I mean by that is, if there are multiple entries on the same day (2 and 5 Jan in the example above), I need a way to be able to list out the entries starting at 2nd entry of 2 Jan up to 2nd entry of 5 Jan. I want the Start Day (K3) and End Day(K4) to offer me options so I could pick the entry I like if there are multiple entries on the same day.

Is that even possible? I am sorry for the long post. Had to bring clarity.

Attaching the worksheet below:
HTML:
https://www.dropbox.com/s/2vt49l368fhyz0u/Test1.xlsx?dl=0

Thanks in advance!

 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Yes sir, I did crosspost as there was no response but I mentioned this link.

Sorry I did not post the new post link here back again...my bad!
 
Upvote 0
Hi again!

This problem is solved. I am thankful to a ForumGuru @Glenn Kennedy at Excel Forum.
Code:
https://www.excelforum.com/excel-general/1244843-finding-values-between-between-two-specific-entries-between-two-dates.html#post4971946

Anyone seeking a similar solution will be surely benefited I hope. Test files included.

Regards.
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,793
Members
451,589
Latest member
Harold14

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