+ Reply to Thread
Results 1 to 6 of 6

Formula for identifying if date(s) fall within a range of dates (Gantt Chart/Cond. Format)

  1. #1
    Registered User
    Join Date
    12-27-2021
    Location
    NE Ohio
    MS-Off Ver
    2016
    Posts
    2

    Formula for identifying if date(s) fall within a range of dates (Gantt Chart/Cond. Format)

    I'm trying to create a gantt chart for project tasks that will essentially be a visual of the project schedule based on start and end dates. I need the chart to display based on weeks rather than days - with the first monday of each week as the timeline basis. I've created the below chart with and IF AND formula and conditional formatting, and it works for the most part but seems to be having issues when the start and end date is the same day. Basically what I need this to do is reflect a colored cell within each week shown across the top if the task falls within that week based on the start and end dates. Thoughts on how to modify my formula?
    Here's what I've been using: =IF(AND(G$7>=$D8,G$7<=$E8),"X","")

    Capture.PNG

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,891

    Re: Formula for identifying if date(s) fall within a range of dates (Gantt Chart/Cond. For

    Hi and welcome

    Any chance you could attach the file (a desensitized copy if necessary) rather than a pic of it? Easy to help if we can work with the real thing.

    BSB

  3. #3
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,141

    Re: Formula for identifying if date(s) fall within a range of dates (Gantt Chart/Cond. For

    try this:
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,141

    Re: Formula for identifying if date(s) fall within a range of dates (Gantt Chart/Cond. For

    that last formula doesnt do much (if anything), sorry about that, my thinking cap isnt working too well at 6am

    this works better:

    Please Login or Register  to view this content.
    but it still doesnt account for when the start of the week is middle of the week (ie, between the dates above) and runds for 1 week, it only shows 1 X.
    Attached Files Attached Files
    Last edited by janmorris; 12-27-2021 at 06:59 PM.

  5. #5
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,419

    Re: Formula for identifying if date(s) fall within a range of dates (Gantt Chart/Cond. For

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  6. #6
    Registered User
    Join Date
    12-27-2021
    Location
    NE Ohio
    MS-Off Ver
    2016
    Posts
    2

    Re: Formula for identifying if date(s) fall within a range of dates (Gantt Chart/Cond. For

    I think this did it! Thanks so much for the quick reply!

+ 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. GANTT Chart - Mark cells within Date range
    By hennair in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-28-2021, 11:42 AM
  2. Gantt Chart Setup With Different Date Format
    By Ericwong in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-13-2018, 05:26 AM
  3. Excel Gantt Chart with Dynamic Date Range
    By helpme858 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-07-2017, 06:59 PM
  4. [SOLVED] Copy Columns that the headers(dates) fall within a user defined date range...
    By Zoediak in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-06-2013, 11:27 AM
  5. [SOLVED] return a value in a range if cell has date that fall between two dates
    By preciouslife73 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 01-12-2013, 09:14 AM
  6. Replies: 8
    Last Post: 12-21-2007, 12:21 AM
  7. identifying entrys that fall between 2 dates
    By juzsp in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-11-2007, 07:35 AM

Tags for this Thread

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