+ Reply to Thread
Results 1 to 7 of 7

Return "YES" or "NO" if a date in one worksheet is between two dates in another worksheet

Hybrid View

eleonardo1213 Return "YES" or "NO" if a... 06-02-2016, 02:35 PM
mikeTRON Re: Return "YES" or "NO" if a... 06-02-2016, 03:16 PM
eleonardo1213 Re: Return "YES" or "NO" if a... 06-02-2016, 03:51 PM
FlameRetired Re: Return "YES" or "NO" if a... 06-02-2016, 04:04 PM
eleonardo1213 Re: Return "YES" or "NO" if a... 06-03-2016, 07:38 AM
FlameRetired Re: Return "YES" or "NO" if a... 06-03-2016, 08:40 PM
eleonardo1213 Re: Return "YES" or "NO" if a... 06-03-2016, 09:31 PM
  1. #1
    Registered User
    Join Date
    05-05-2016
    Location
    Syracuse, NY
    MS-Off Ver
    2013
    Posts
    4

    Return "YES" or "NO" if a date in one worksheet is between two dates in another worksheet

    I am about to lose my mind! Please help . I am building a rotation schedule and would like to be prompted with a Yes or No is someone has a day off within a week. This is what I am trying but the result I am getting is #VALUE!. Below is a snapshot of what I've started. The second snapshot is from the worksheet I am pulling from ('DaysOff'). The range for the Days Off worksheet is A3:Q801.

    Formula Snapshot.PNG

    Days Off Snapshot.PNG

    Thank you!!

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Return "YES" or "NO" if a date in one worksheet is between two dates in another worksh

    Welcome to the forum.

    I suggest you post a sample workbook instead of pictures.

    Also can you not create a "Day Off" dataset that is standardized instead of the more difficult to manage layout you displayed in the bottom picture?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    05-05-2016
    Location
    Syracuse, NY
    MS-Off Ver
    2013
    Posts
    4

    Re: Return "YES" or "NO" if a date in one worksheet is between two dates in another worksh

    Thank you! I have attached a smaller sample workbook (at least I tried to attach it - not sure if it will work). Also, I defined a name "DaysOff" for the area where the dates for the days off will be entered. Is that what you meant by making it standardized? The formula now reads =IF(AND(DaysOff>=B2,DaysOff<=C2),"YES","NO") If that's not what you meant

    Rotation Sample.xlsx
    Last edited by eleonardo1213; 06-02-2016 at 03:59 PM.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Return "YES" or "NO" if a date in one worksheet is between two dates in another worksh

    eleonardo1213, Welcome to the forum. Like mikeTRON indicates we really need a workbook.

    You may be encountering a new interface for uploading files.

    After clicking "Go Advanced" scroll down until you find "Manage Attachments". Click on that.

    The dialogue window appears. Click "Browse".

    Select your file.

    Click "Upload"

    and then click "Close Window" (yes I know that's counter-intuitive.)

    You will be back at the "Manage Attachments" with nothing showing. Your file is there believe it or not.

    Click "Post reply".

    You'll see the icon for your file upon posting.
    Dave

  5. #5
    Registered User
    Join Date
    05-05-2016
    Location
    Syracuse, NY
    MS-Off Ver
    2013
    Posts
    4

    Re: Return "YES" or "NO" if a date in one worksheet is between two dates in another worksh

    Thank you. I edited my last post and uploaded the file. For convenience sake I have uploaded it again here. Rotation Sample.xlsx

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Return "YES" or "NO" if a date in one worksheet is between two dates in another worksh

    Try array-entering this in I2 and filling down.
    Formula: copy to clipboard
    =IF(SUM((INDEX('Days Off'!$A$3:$Q$30,N(IF(1,ROW($1:$28))),N(IF(1,MATCH(D2:G2,'Days Off'!$A$2:$Q$2,0))))>=B2)*(INDEX('Days Off'!$A$3:$Q$30,N(IF(1,ROW($1:$28))),N(IF(1,MATCH(D2:G2,'Days Off'!$A$2:$Q$2,0))))<=C2)),"Yes","No")
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    PS I changed some dates to test this a little.

  7. #7
    Registered User
    Join Date
    05-05-2016
    Location
    Syracuse, NY
    MS-Off Ver
    2013
    Posts
    4

    Re: Return "YES" or "NO" if a date in one worksheet is between two dates in another worksh

    You cannot see me but I am bowing to the master! Thank you soooooo much!!!

+ 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. Replies: 1
    Last Post: 01-22-2016, 09:21 AM
  2. [SOLVED] Code Clean-Up: Delete "False" worksheet created when "Cancel" is chosen in Input Box
    By Kenny Blackwell in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 08-31-2015, 10:00 AM
  3. Replies: 5
    Last Post: 01-23-2014, 11:02 AM
  4. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  5. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  6. Return "green", "yellow" or "red" from date/age and priority ranking
    By Cantaloop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2013, 12:12 AM
  7. Replies: 3
    Last Post: 02-16-2011, 02:55 PM

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