+ Reply to Thread
Results 1 to 4 of 4

Inconsistency in date ranges

  1. #1
    Registered User
    Join Date
    07-13-2009
    Location
    Bristol, England
    MS-Off Ver
    Excel 2010
    Posts
    81

    Inconsistency in date ranges

    Checking for inconsistency in date ranges
    Please see the attached sample worksheet
    I have 4 date ranges B2:C2, E2:F2, H2:I2, K2:L2 It isn’t necessary for all to be filled, and often they wouldn’t be
    In N2 I need a formula which will tell me if there is an inconsistency in dates. In the example there is an inconsistency between I2 & K2
    In P2 I want to put a date and check if its value is covered by the date ranges in B2:C2, E2:F2, H2:I2, K2:L2
    Any thoughts?
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Inconsistency in date ranges

    try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    it will show address (if found and where) or not found.

    Edit:
    ups, I lost "inconsistency between I2 & K2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    or shorter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    if TRUE - dates are OK, if FALSE - inconsitency
    Last edited by sandy666; 02-01-2016 at 09:12 AM.

  3. #3
    Registered User
    Join Date
    07-13-2009
    Location
    Bristol, England
    MS-Off Ver
    Excel 2010
    Posts
    81

    Re: Inconsistency in date ranges

    Hi

    Thanks for your replies.

    The
    =AND(DATEDIF(B2,C2,"d")=7,DATEDIF(E2,F2,"d")=7,DATEDIF(H2,I2,"d")=7,DATEDIF(K2,L2,"d")=7,DATEDIF(C2,E2,"d")=1,DATEDIF(F2,H2,"d")=1,DATEDIF(I2,K2,"d")=1)
    formula works in part but
    1. only when all 4 sets of date ranges are entered
    and
    2. only if the date ranges are 7 days each

    Any thoughts?

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Inconsistency in date ranges

    7 because it was your input (B2+7, etc.), so I assumed it must be 7

    in this case (with your xlsx and formula B2+7, etc.) you have many possibilities with blank cell(s), with wrong date(s), with blank cell(s) and wrong date(s)... etc
    you need to define all criteria and use IF or CHOOSE function

    if every value of cell can be different you've 6435 possibilities (or more, I suppose)
    Last edited by sandy666; 02-01-2016 at 10:40 AM. Reason: typo

+ 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. Pivot table grouping by date. Formatting inconsistency
    By Richard Buttrey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-18-2014, 07:16 AM
  2. Rounding Inconsistency...
    By Jossy in forum Excel General
    Replies: 1
    Last Post: 03-29-2011, 11:08 AM
  3. COUNTIF inconsistency
    By webfork in forum Excel General
    Replies: 6
    Last Post: 03-24-2011, 05:25 PM
  4. Calculation Inconsistency
    By HuskerBronco in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2010, 01:08 PM
  5. Round Inconsistency
    By davegugg in forum The Water Cooler
    Replies: 9
    Last Post: 09-17-2010, 06:54 AM
  6. IF clause inconsistency
    By gloria in forum Excel General
    Replies: 6
    Last Post: 06-11-2009, 06:03 AM
  7. .CodeName inconsistency
    By paulharvey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2007, 02:23 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