Output dates based on current date/quarter/week

InnovationSt

New Member
Joined
Sep 10, 2018
Messages
2
Hi, I checked the other posts to the forum, but the tools were not specific enough.
I'm attempting to display a due date based on the current date that coincides with the next quarter or week.


Specifically, I want to know:


- How I can find the Wednesday before the next month end
- How I can find the Wednesday after the next month end


- How I can find the Wednesday before the 1st week of the next quarter
- How I can find the Wednesday after the 1st week of the next quarter


- How I can find the Wednesday before and after the nth week of the next quarter


I can't seem to be able to pinpoint the day based on the quarter and tying it to the Wednesdays before and after have proven difficult.
Thank you in advance for the assistance.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi,

Can you use this?


Book1
AB
1TODAY11-09-18
2Wednesday before the next month endWednesday, October 31, 2018
3Wednesday after the next month endWednesday, November 07, 2018
4Wednesday before the 1st week of the next quarterWednesday, September 26, 2018
5Wednesday after the 1st week of the next quarterWednesday, October 10, 2018
6Wednesday before 9th week of the next quarterWednesday, November 21, 2018
7Wednesday after 9th week of the next quarterWednesday, December 05, 2018
Sheet1
Cell Formulas
RangeFormula
B1=TODAY()
B2=DATE(YEAR(EOMONTH(TODAY(),1)),MONTH(EOMONTH(TODAY(),1)),DAY(EOMONTH(TODAY(),1))-WEEKDAY(EOMONTH(TODAY(),1))+4)
B3=DATE(YEAR(EOMONTH(TODAY(),1)),MONTH(EOMONTH(TODAY(),1)),(DAY(EOMONTH(TODAY(),1))+7)-WEEKDAY(EOMONTH(TODAY(),1))+4)
B4=VLOOKUP(MONTH(MONTH(TODAY())&0),Sheet2!$A$2:$E$5,5,0)
B5=VLOOKUP(MONTH(MONTH(TODAY())&0)+1,Sheet2!$A$2:$E$5,3,0)+7
B6=VLOOKUP(MONTH(MONTH(TODAY())&0)+1,Sheet2!$A$2:$E$5,3,0)+49
B7=VLOOKUP(MONTH(MONTH(TODAY())&0)+1,Sheet2!$A$2:$E$5,3,0)+63



Cell Formulas
RangeFormula
B2=DATE(YEAR(TODAY()),1,1)
B3=EOMONTH(B2,2)+1
B4=EOMONTH(B3,2)+1
B5=EOMONTH(B4,2)+1
C2=DATE(YEAR(B2),MONTH(B2),DAY(B2)-WEEKDAY(B2)+4)
C3=DATE(YEAR(B3),MONTH(B3),DAY(B3)-WEEKDAY(B3)+4)
C4=DATE(YEAR(B4),MONTH(B4),DAY(B4)-WEEKDAY(B4)+4)
C5=DATE(YEAR(B5),MONTH(B5),DAY(B5)-WEEKDAY(B5)+4)
D2=EOMONTH(B2,2)
D3=EOMONTH(B3,2)
D4=EOMONTH(B4,2)
D5=EOMONTH(B5,2)
E2=IF(MONTH(D2)>6,DATE(YEAR(D2),MONTH(D2),(DAY(D2))-WEEKDAY(D2)+4)-7,DATE(YEAR(D2),MONTH(D2),(DAY(D2))-WEEKDAY(D2)+4))
E3=IF(MONTH(D3)>6,DATE(YEAR(D3),MONTH(D3),(DAY(D3))-WEEKDAY(D3)+4)-7,DATE(YEAR(D3),MONTH(D3),(DAY(D3))-WEEKDAY(D3)+4))
E4=IF(MONTH(D4)>6,DATE(YEAR(D4),MONTH(D4),(DAY(D4))-WEEKDAY(D4)+4)-7,DATE(YEAR(D4),MONTH(D4),(DAY(D4))-WEEKDAY(D4)+4))
E5=IF(MONTH(D5)>6,DATE(YEAR(D5),MONTH(D5),(DAY(D5))-WEEKDAY(D5)+4)-7,DATE(YEAR(D5),MONTH(D5),(DAY(D5))-WEEKDAY(D5)+4))
 
Upvote 0

Forum statistics

Threads
1,214,825
Messages
6,121,788
Members
449,049
Latest member
greyangel23

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