Results 1 to 6 of 6

Finding all the quarters a range of dates fall into using If then/and/or IfElse?

Threaded View

  1. #1
    Registered User
    Join Date
    12-21-2018
    Location
    Lake Geneva, WI
    MS-Off Ver
    Excel 2016
    Posts
    3

    Finding all the quarters a range of dates fall into using If then/and/or IfElse?

    I have a spreadsheet with quarters listed along the top, there are tasks along the left hand side, within each task is a "start date" and a "max days"; "start date" + "max days" = "end date" (in other words, end date is not a date but a formula that returns a number. These tasks can last 14 days, or 360 days. Next to each task, under each quarter, I am to black out a cell IF the task will be worked on during that quarter.

    I have created two "sub tables" to the right that return if the start date is within a quarter (easy) and when the end date is within a quarter (easy). The hard part is if the days being worked in are more than 60 and fall into quarter BETWEEN the start and end quarter. For the 360 example max time, above, there will be 4 cells blacked out (can could be 5 depending on the start/end date's relation to the quarter start/end) because that 360 day example will be worked on during four full quarters (and maybe a bit of one other on the start or the end). With my sub tables, I get the quarter that the task starts on, no problem. And, I can get the quarter that the task ends on, no problem. The problem is how in the world can I communicate to excel that if the task is worked on during any of these quarters in the middle (not the start or the end quarter), that excel should also return a "yes" (in this case an "X" and then conditional formatting blacks out the cell. Here is a bit of the example:


    Duration 18Q3 18Q4 19Q1 19Q2 19Q3 19Q4 20Q1 20Q2 20Q3
    Min Max D Start Date End Date 9/30 12/31 3/31 6/30 9/30 12/31 3/31 6/30 9/30

    14 30 9/9/19 2019 10/8/19 X X
    7 14 10/8/19 2019 10/21/19 X
    14 240 10/21/19 2019 6/16/20 X X


    In the above example, where max days are 240, I got an x in the 19Q4 and 20Q2 but not the 20Q1. This is the issue.

    FYI, max days are in col I, Start Date in Col J, End Date in Col L, 18Q3 in Column M. This is a 5-year plan doc so dates go out to 23Q4.
    Last edited by VB4MEEE; 12-21-2018 at 02:28 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Check if range of dates fall between two dates
    By Wasilsky in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2017, 08:40 AM
  2. Calculate days where the range fall between dates
    By sam16 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-06-2017, 09:24 AM
  3. highlight the dates if it fall under certain range
    By hudson andrew in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-06-2016, 11:25 AM
  4. [SOLVED] Counting and specifying dates that fall within a predetermined range
    By devdevdev51 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-30-2015, 04:16 PM
  5. [SOLVED] Averaging values if desired dates fall between range of dates
    By gbcpurdue in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2012, 02:51 PM
  6. Need Sumif to count dates that fall within a range of dates
    By Paralegal101 in forum Excel General
    Replies: 1
    Last Post: 09-12-2011, 02:26 PM
  7. check if dates fall within a range
    By mcinnes01 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-28-2011, 01:15 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