If a date is between 2 different Dates then Return Week Number

SiuGuy007

New Member
Joined
Jun 19, 2015
Messages
40
I am not 100% sure how to write the formula for this? On Sheet 1, I have various dates for new hired EE's. On Sheet 2, I have a list of "From Date" and "To Date", with the corresponding Week number.

If the New Hired EE date falls between the From and To Dates, I need to have the result return the week number.

[TABLE="width: 460"]
<colgroup><col span="2"><col><col><col></colgroup><tbody>[TR]
[TD]From Date[/TD]
[TD]To Date[/TD]
[TD]Week number[/TD]
[TD][/TD]
[TD]New Hire EE[/TD]
[/TR]
[TR]
[TD]January 1, 2018[/TD]
[TD]January 7, 2018[/TD]
[TD]Week 01[/TD]
[TD][/TD]
[TD]1/4/2018[/TD]
[/TR]
[TR]
[TD]January 8, 2018[/TD]
[TD]January 14, 2018[/TD]
[TD]Week 02[/TD]
[TD][/TD]
[TD]1/5/2018[/TD]
[/TR]
[TR]
[TD]January 15, 2018[/TD]
[TD]January 21, 2018[/TD]
[TD]Week 03[/TD]
[TD][/TD]
[TD]1/6/2018[/TD]
[/TR]
[TR]
[TD]January 22, 2018[/TD]
[TD]January 28, 2018[/TD]
[TD]Week 04[/TD]
[TD][/TD]
[TD]1/7/2018[/TD]
[/TR]
[TR]
[TD]January 29, 2018[/TD]
[TD]February 4, 2018[/TD]
[TD]Week 05[/TD]
[TD][/TD]
[TD]1/8/2018[/TD]
[/TR]
</tbody>[/TABLE]

Any assistance is greatly appreciated.

SIUGuy007
 
No problem, just wasn't sure what you were after, here you go:


Book1
ABCDE
10EE Hire DateFrom DateTo DateWeek #Results
114/6/20184/2/20184/8/2018Week 141
124/14/20184/9/20184/15/2018Week 151
134/25/20184/16/20184/22/2018Week 160
144/25/20184/23/20184/29/2018Week 173
154/25/20184/30/20185/6/2018Week 180
Sheet44
Cell Formulas
RangeFormula
E11=COUNTIFS(A$11:A$15,">="&B11,A$11:A$15,"<="&C11)


Formula copied down.
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,223,719
Messages
6,174,089
Members
452,542
Latest member
Bricklin

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