Need a Formula to Lookup the week number that a day falls under between two dates

Robnrolla

New Member
Joined
Jul 16, 2017
Messages
13
Week
DaySunMonTueWedThuFriSatSunMonTueWedThuFriSat
From:28 May 1729 May 1730 May 1731 May 171 Jun 172 Jun 173 Jun 174 Jun 175 Jun 176 Jun 177 Jun 178 Jun 179 Jun 1710 Jun 17
To:28 May 1729 May 1730 May 1731 May 171 Jun 172 Jun 173 Jun 174 Jun 175 Jun 176 Jun 177 Jun 178 Jun 179 Jun 1710 Jun 17
Week1011
From:28 May 174 Jun 17
To:3 Jun 1710 Jun 17



<colgroup><col><col span="4"><col span="9"><col></colgroup><tbody>
</tbody>
I need a formula to go from B1:O1 that will lookup the day in the week range and find the week number.

I originally tried an If formula with an Index to find greater than the From date and less than the To date and then an index match match to pull back the week number. This did not work for me. Perhaps i did this wrong?

Can anyone please help me?

Thanks,
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
there is a function for that > =WEEKNUM(A1) there must be a modification to do the financial year
 
Upvote 0
You can lookup the date in the from dates and find the corresponding week number above, e.g. if from dates are in B7:Z7 and corresponding week numbers in B6:Z6 then use this formula in B1 copied across

=LOOKUP(B2,$B7:$Z7,$B6:$Z6)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,373
Messages
6,124,555
Members
449,170
Latest member
Gkiller

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