Hi,
I need to add some extra functionality to a function that looks at a date range (K:L) from a list of work orders and adds Job_Codes (T) to a calendar.
The original formula I'm using was given to me on a previous thread:
https://www.excelforum.com/excel-for...-priority.html
The actual code I ended up using is below:
NB: This formula uses Names so will only make sense along with the attached example
(which I adapted very slightly from the second code given to me on the thread)Please Login or Register to view this content.
I've since added a new column (M) 'Work_Days' in the work order which has options of: "All Days", "Weekdays", "Weekends" & "".
See attached Example
I need to adapt the function somehow so that it assesses this new column and only adds Job_Codes (T) to the calendar that are on the selected type of days (M) between the date range (K:L).
i.e.
"Weekdays" only populates Mon, Tue, Wed, Thu, Fri
"Weekends" only populates Sat ,Sun
"All Days" populates every day (This is current behaviour)
"" populates no days
Thanks in advance for any help with this.
Bookmarks