+ Reply to Thread
Results 1 to 8 of 8

Check multiple dates in range

  1. #1
    Registered User
    Join Date
    08-13-2020
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    78

    Thumbs up Check multiple dates in range

    HI,

    I want to have a formula to check if the start date and finish date are correct.

    For it to be correct, the start date (for example on Strategic) on P50 should be equal or less than the P50 and start date of P50 should be equal or less than start date of P90. Similarly, P50 finish date should be more or equal to base finish date and P90 finish date should be more or equal to the P50 finish date.

    This should also accordingly apply for the dates of concept, delivery readiness delivery and finalisation.


    How can we set up formula for this?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,219

    Re: Check multiple dates in range

    For it to be correct, the start date (for example on Strategic) on P50 should be equal or less than the P50 and start date of P50 should be equal or less than start date of P90
    Is this written correctly? It seems you left out some words. I'm assuming you mean that the start date of P50 for Strategic must be >= start date of Base for Strategic and <= P50 for Strategic of P90.
    What if they're not?

    To start things off, next to your P50 start date for Strategic, something like:
    =IF(AND(C38>=C12,C38<=C71),"","Problem here")

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Check multiple dates in range

    Data validation will prevent the wrong entry of dates.
    Select C36:C52.
    Data --> Data validation
    Allow--> custom --> Formula is

    =$C36< SUMPRODUCT(($B$69:$B$85=$B36)*($C$69:$C$85))

    Select D36:D52.
    Data --> Data validation
    Allow--> custom --> Formula is

    =$D36> SUMPRODUCT(($B$69:$B$85=$B36)*($D$69:$D$85))
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Registered User
    Join Date
    08-13-2020
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    78

    Re: Check multiple dates in range

    kvsrinivasamurthy,
    Data validation can't be used as the dates are pre-populated so, need a formula to check if the date have been entered right OR NOT.

  5. #5
    Registered User
    Join Date
    08-13-2020
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    78

    Re: Check multiple dates in range

    Thanks Gregb11,
    It seems to do what I wanted.

    Now, I have got five formulas which return null values (assuming that they are all true) or some "Problem Here"

    How, do I get using an array or otherwise check to ensure if any is null value or some of them return "Problem Here"

  6. #6
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,219

    Re: Check multiple dates in range

    I'm not understanding. Maybe if you could upload a file to exhibit what you're saying. What does this mean?

    How, do I get using an array or otherwise check to ensure if any is null value or some of them return "Problem Here"

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Check multiple dates in range

    Do the difference in rows is always constant or differ.
    Eg: For Initiation for P50 to P90 difference is 69-36=33
    Similarly for P90 and the next say P120 difference is 33 or different.

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,657

    Re: Check multiple dates in range

    Working with Start date is enough. Because for each profile, next start date = previous end date+1, then if start dates is increasing, end dates is increasing too.
    Try to minus P50 with Base, and P90 with P50, if both >=0, says TRUE, else FALSE

    =AND(INDEX($C$38:$C$50-$C$12:$C$24>=0,),INDEX($C$71:$C$83-$C$38:$C$50>=0,))

    Is it are you looking for?

    P/S: I saw complete date in , i.e, D14, equals start date + A12 (#month?)*30.4 (monthly average days?)
    Alternative way, you can try edate(start date,n) to returns same date after "n" months.
    D14=EDATE(C14,A14)-1
    It takes leaf year, February's days into account.
    Last edited by bebo021999; 03-23-2021 at 03:22 AM.
    Quang PT

+ 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. check missing dates in range delete in another range
    By terriertrip in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2020, 03:04 PM
  2. Check if date range contains any of the dates in a list
    By mirazojm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-04-2020, 05:45 AM
  3. 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
  4. [SOLVED] Need to check if cell value is equal to a named range (of dates)
    By chiidzzz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-19-2017, 11:50 AM
  5. [SOLVED] Check a date to find if it falls between a range of dates
    By Kausch in forum Excel General
    Replies: 3
    Last Post: 10-21-2014, 07:56 AM
  6. 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
  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