Displaying dates for Sunday's and Thursday's

Pippy79

Board Regular
Joined
Nov 18, 2021
Messages
90
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a list of tasks that can be on different days of the week, but on Sundays and Thursday's the task is fixed. is there a way i can add it to the template but always fix the dates as Sundays & Thursday's?

example range of dates below;
Collection DateTime
17/06/202312:00
16/06/202312:00
18/06/202310:00
19/06/202312:00
19/06/202314:00
20/06/202307:30
21/06/202307:30
24/06/202307:30
26/06/202307:30
27/06/202307:30
28/06/202307:30
29/06/202307:30
30/06/202307:30
30/06/202316:30
30/06/202321:00
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Excel Formula:
=IF(OR(WEEKDAY(A4,2)=4,WEEKDAY(A4,2)=7),"fixed","whatever")
 
Upvote 0
Solution
Not sure what you are after, but maybe
Fluff.xlsm
ABC
1Collection DateTime
217/06/202312:0018/06/2023
316/06/202312:0018/06/2023
418/06/202310:0018/06/2023
519/06/202312:0022/06/2023
619/06/202314:0022/06/2023
720/06/202307:3022/06/2023
821/06/202307:3022/06/2023
924/06/202307:3025/06/2023
1026/06/202307:3029/06/2023
1127/06/202307:3029/06/2023
1228/06/202307:3029/06/2023
1329/06/202307:3029/06/2023
1430/06/202307:3002/07/2023
1530/06/202316:3002/07/2023
1630/06/202321:0002/07/2023
Main
Cell Formulas
RangeFormula
C2:C16C2=WORKDAY.INTL(A2-1,1,"1110110")
 
Upvote 0
Sorry, i wasn't very clear.

the range of dates above are the whole period of activities for a production run. within that range of dates i need to add activities on Thursdays and Sundays. The starting date can change but the fixed activities wont. So is it possible to take the starting date which can change and have a formula in a few cells that reads the start date and end date and populates the Thursdays and Sundays between and populates those dates with the fixed task. these dont have to be in order, the Thursday / Sunday Tasks can all be at the bottom as i can filter them in.

17/06/2023Production Start
17/06/2023
18/06/2023 - SundayFixed task
19/06/2023
19/06/2023
20/06/2023
21/06/2023
22/06/2023 - ThursdayFixed task
25/06/2023 - Sunday Fixed task
27/06/2023
28/06/2023
29/06/2023 - ThursdayFixed task
30/06/2023Production Finish

Thanks
 
Upvote 0
Did you try the formula from Kerryx?
 
Upvote 0
I didn't understand what it was trying to tell me, i inputted it into cell B13 as below with the result shown in C1 for this example
ABC
117/06/2023Production Start
217/06/2023
318/06/2023 - SundayFixed task
419/06/2023
519/06/2023
620/06/2023
721/06/2023
822/06/2023 - ThursdayFixed task
925/06/2023 - SundayFixed task
1027/06/2023
1128/06/2023
1229/06/2023 - ThursdayFixed task
1230/06/2023Production Finish
13=IF(OR(WEEKDAY(B1,2)=4,WEEKDAY(B1,2)=7),"fixed","whatever")Displayed "whatever"
 
Upvote 0
You need to put it in C1 & drag down.
 
Upvote 0
ah ok, so that works in terms of it highlights the cells which are Sundays / Thursday's.

Is it possible to have a formula (across multiple cells) at the bottom that take all the Thursdays and Sundays from the production date range and displays those dates. S

So a formula in Cell B14 that reads the dates B1:B13 and says there are X amount of thursdays and sundays and these dates are shown below.
ABC
117/06/2023Production Start
217/06/2023
318/06/2023 - SundayFixed task
419/06/2023
519/06/2023
620/06/2023
721/06/2023
822/06/2023 - ThursdayFixed task
925/06/2023 - SundayFixed task
1027/06/2023
1128/06/2023
1229/06/2023 - ThursdayFixed task
1330/06/2023Production Finish
14
 
Upvote 0
How about
Fluff.xlsm
ABCDE
1117/06/2023Production Start4
2217/06/202318/06/2023
3318/06/2023Fixed task22/06/2023
4419/06/202325/06/2023
5519/06/202329/06/2023
6620/06/2023
7721/06/2023
8822/06/2023Fixed task
9925/06/2023Fixed task
101027/06/2023
111128/06/2023
121229/06/2023Fixed task
131330/06/2023Production Finish
14
Master
Cell Formulas
RangeFormula
E1E1=COUNTIFS(C:C,"Fixed task")
E2:E5E2=FILTER(B1:B100,C1:C100="Fixed task")
Dynamic array formulas.
 
Upvote 0
Thanks Fluff, this has worked. Also Thanks Kerryx yours also worked
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,691
Members
449,117
Latest member
Aaagu

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