+ Reply to Thread
Results 1 to 3 of 3

To count if a date falls between two given date ranges

  1. #1
    Registered User
    Join Date
    10-13-2010
    Location
    Miami, US
    MS-Off Ver
    Excel 2007
    Posts
    83

    To count if a date falls between two given date ranges

    Hi,

    Can someone please help me in finding if date range in column H (Case Date 2) falls between date range in Column D and Column E. (Please see attached sample workbook)

    For Example, It should be “Y” for Client ID 1 because 18 may lies between 4 May and June 1 and it should be “N” for client 16 because 16 April does not fall between 16 Feb and 16 March.

    I have sample of 2000, people so I really cannot do it by hand.

    Thank you for the help.
    Attached Files Attached Files
    Last edited by ajang; 10-15-2010 at 06:35 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: To count if a date falls between two given date ranges

    In I2
    =IF(AND(H2>=D2,H2<=E2),"Y","N")
    Is that what you are looking for?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-13-2010
    Location
    Miami, US
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: To count if a date falls between two given date ranges

    Quote Originally Posted by ChemistB View Post
    In I2
    =IF(AND(H2>=D2,H2<=E2),"Y","N")
    Is that what you are looking for?
    Yes, And it works. Thank U

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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