+ Reply to Thread
Results 1 to 4 of 4

Between two dates

  1. #1
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Between two dates

    Hello,

    I have a spreadsheet where K8:NK8 equals each day of the year, 1/1/2017 to 12/31/2017. I9 (Start) and J9 (End) will each have a date. If the date in Row 8 is between the start and end date, I would like an X to appear in row 9. If not, I would like it to be blank.

    FOR EXAMPLE:

    START END 1/1/2017 1/2/2017 1/3/2017 1/4/2017 1/5/2017 1/6/2017 1/7/2017 1/8/2017 1/9/2017
    1/2/2017 1/5/2017 X X X X
    1/2/2017 1/8/2017 X X X X X X X


    Can anyone help me with the formula for K9:NK9??

    Thank you!

    EDITED TO ADD: The above example does not appear as I typed it out, but the X's would be under the corresponding dates.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Between two dates

    in C2 (under 1/1/2017)
    =IF(AND(C$1<=$A2,C$1>=$B2),"X","")
    and copy along and down the rows/columns

    UPDATE: Ignore this, see my next post
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Between two dates

    in K9 (under 1/1/2017)
    =IF(AND(K$8<=$I10,K$8>=$J10),"X","")
    and copy along and down the rows/columns

  4. #4
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Between two dates

    I tried something very similar, but it didn't work. I used yours and just had to reverse the < and >. Thanks!!!

+ 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. Populating list of dates from another sheet with Start Dates and End Dates
    By Jesshloly in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2015, 04:07 AM
  2. [SOLVED] Creating a formula to populate range of cells between dates based on start and end dates
    By Rainmain82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-18-2014, 07:55 AM
  3. Check dates in range either same dates or different dates by formula
    By breadwinner in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-12-2013, 07:42 AM
  4. Replies: 6
    Last Post: 03-11-2013, 06:11 PM
  5. [SOLVED] Array of dates when tested shows no dates ......but there are dates
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-29-2012, 12:45 PM
  6. [SOLVED] Highlight Group of Dates if Dates Match List of other Dates
    By martinpgibson in forum Excel General
    Replies: 5
    Last Post: 10-24-2012, 08:14 PM
  7. [SOLVED] Auto filling dates based on previously entered dates and averaging numbers if dates equal
    By grambograham in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 03:21 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