How to get first-day-of-week from week # ?

sherifffruitfly

New Member
Joined
Dec 21, 2013
Messages
8
Hi all, I have the datestream calendar table from the azure market. it has columns WeekNo, Year, and Date. I would like to add a calculated column for FirstDayOfWeek (datetime type). It seems like I should be able to filter on Year = (current row year) and WeekNo = (current row week), and then minimize the date. But I can't seem to come up with a formula that actually does this. Little help? thanks much, sff
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Not sure if this is what you're looking for, but the formula "=MOD(WEEKDAY("date"),7)=1" will get you the first day of the week (Sunday).
 
Upvote 0
got it - thanks much both of you.

i adjusted the end of week example linked above as follows, to begin on monday, end on sunday:

DayMod7 = MOD([DateKey] - 2, 7)

StartOfWeek = [DateKey] - [DayMod7]

EndOfWeek = [DateKey] - [DayMod7] + 6


thanks again all,
sff
 
Upvote 0

Forum statistics

Threads
1,223,996
Messages
6,175,864
Members
452,678
Latest member
will_simmo

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