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.

From DateTo DateWeek numberNew Hire EE
January 1, 2018January 7, 2018Week 011/4/2018
January 8, 2018January 14, 2018Week 021/5/2018
January 15, 2018January 21, 2018Week 031/6/2018
January 22, 2018January 28, 2018Week 041/7/2018
January 29, 2018February 4, 2018Week 051/8/2018

<colgroup><col span="2"><col><col><col></colgroup><tbody>
</tbody>

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

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,214,943
Messages
6,122,380
Members
449,080
Latest member
Armadillos

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