+ Reply to Thread
Results 1 to 4 of 4

Return a value between 2 dates on a specific day of the week

  1. #1
    Forum Contributor
    Join Date
    11-04-2015
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2010
    Posts
    114

    Return a value between 2 dates on a specific day of the week

    I have attached an example because it is just too complicated to write out.

    Desired output is written in the example.

    Basically, I am trying to write a formula that returns a 1 on specific weekdays between a start & stop date based on a schedule of production on certain days of the week.
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Return a value between 2 dates on a specific day of the week

    X8=IF(AND(X$7>=$P8,X$7<=$Q8),IF(INDEX($I8:$O8,MATCH(X$5,{"M","T","W","Th","F","Sa","S"},0))=1,1,""),"")
    Please Login or Register  to view this content.
    Try this and copy across
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,047

    Re: Return a value between 2 dates on a specific day of the week

    Try this in X8, copied across and down:

    =IF(AND(X$7>=$P8,X$7<=$Q8,INDEX($I8:$O8,MATCH("D"&X$6,$I$7:$O$7,0))=1),1,"")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Contributor
    Join Date
    11-04-2015
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2010
    Posts
    114

    Re: Return a value between 2 dates on a specific day of the week

    Great...that worked.

    Thank you so much for the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Return an average of multiple values from specific week
    By mikkisbee in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-02-2017, 05:43 PM
  2. [SOLVED] How do return days,week no,month and year in between two dates
    By silambarasan.J in forum Excel General
    Replies: 5
    Last Post: 10-26-2016, 04:29 AM
  3. [SOLVED] Return value (Week number) if date is within a range of dates
    By bmunoz64 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-22-2015, 08:11 AM
  4. [SOLVED] Working with specific dates against Week Commencing dates
    By daveb86 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-11-2015, 05:36 AM
  5. [SOLVED] Return date of Friday of each week from a range of dates
    By emortals in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-19-2015, 12:29 PM
  6. [SOLVED] Trying to return the week number of dates in a fiscal year
    By NedFlanders in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-03-2013, 09:16 PM
  7. [SOLVED] Return dates based on week selected
    By john dalton in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-13-2013, 08:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1