Dynamic include/don't include days formula

mst3kr

New Member
Joined
Apr 15, 2013
Messages
46
Office Version
  1. 2019
  2. 2010
  3. 2007
Platform
  1. Windows
Trying to come up with a solution for a dynamic formula that I think I'm overthinking an answer to. Here's my issue:

I have daily forecasting that I need to capture for specific days, based on today's date, that will cover today & the next 2 days, except for over the weekend where I need to capture 5 days.

For example, If today was Monday, I would capture the data for Monday, Tuesday, & Wednesday. On Tuesdays, I would capture, Tu, We, & Th. On Wed, it would be We, Th, & Fr. On Thur, it would be Th, Fr, Sa, Su, & Mo. On Fri, it would be Fr, Sa, Su, Mo, & Tu. So, three day's worth of data if today is a Mon, Tue, or Wed, and then 5 days if it's Thu or Fri.

The challenge I have is trying to make this a dymanic process. I've attached what I'm wanting the 3-column, 5 row data to ultimately look like.

I've tried coming up with all sorts of crazy singular formulas in the Include? column, helper cells, and other tricks but haven't come up with something that works.

I know I'm overthinking it and wanted to see if anyone had any ideas...

Thanks!
-Greg

Dynamic Days.jpg
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
workday.intl function will work for you I think:
Cell Formulas
RangeFormula
C4:C10C4=CHOOSE(WEEKDAY(B4,1),"Sun","Mon","Tue","Wed","Thu","Fri","Sat")
D4:D10D4=WORKDAY.INTL(B4,1,1)
E4:E10E4=WORKDAY.INTL(B4,2,1)


you can add holidays as well.
 
Upvote 0
Solution
Thank you, awoohaw! This definitely gets me in the direction I was needing!
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,557
Members
449,088
Latest member
davidcom

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