+ Reply to Thread
Results 1 to 4 of 4

Date ranges

  1. #1
    Registered User
    Join Date
    01-20-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    11

    Date ranges

    I have a list of dates, and wish to be able to group them into set date periods.

    For instance in cells C4:C15, there are the list of dates ranging from Jan 3rd 2010 to November 29th 2010. I want to have the adjacent cell in Column D to display what Quarter these dates are in (1, 2, 3 or 4). I can do this easily for just one end-date, but when 4 date ranges (Jan 1-Mar 31, Apr 1-Jun 30 etc) are involved I can’t seem to find a way through.

    Cheers,
    Last edited by 62deadfly; 02-22-2011 at 04:39 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Date ranges

    Try the following in D4 and filled down to D15:

    =LOOKUP(MONTH(C4),{1,4,7,10},{"Q1","Q2","Q3","Q4"})

    Hope that helps!

  3. #3
    Registered User
    Join Date
    04-19-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Date ranges

    Not 100% sure I know what you need but would

    if(C3 +1 > Q1 start DDMM < Q2 start DDMM, 1, if (C3 +1 > Q2 start DDMM < Q3 start DDMM, 2, if (C3 +1 > Q3 start DDMM < Q4 start DDMM, 3, (if C3 +1 > Q4 start DDMM < Q1 start DDMM, 4 , ""))))

    in D3 work?

  4. #4
    Registered User
    Join Date
    01-20-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Date ranges

    Sorted, thanks guys.

+ 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