+ Reply to Thread
Results 1 to 4 of 4

if function - dates

  1. #1
    Registered User
    Join Date
    04-23-2007
    Location
    Chicago Suburbs
    Posts
    31

    if function - dates

    I have a speadsheet where there are dates in a column. I would like to write an if function in the next column that states if the date in that cell is between two dates the result would be quarter one and if between two other dates the result would be quarter two. Any help would be great

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi,
    searching on the forum will certainly yield the answer as it has been answered many times.
    A combination of IF and OR will be necessary

    Cheers

  3. #3
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    2007
    Posts
    3,420
    Hi wantucce,

    The following is based upon the quarters being a calendar basis and the first date being in cell A2 (change as required):

    =IF(AND(A2>=DATE(2008,1,1),A2<=DATE(2008,3,31)),"Qtr 1",IF(AND(A2>=DATE(2008,4,1),A2<=DATE(2008,6,30)),"Qtr 2",IF(AND(A2>=DATE(2008,7,1),A2<=DATE(2008,9,30)),"Qtr 3","Qtr 4")))

    HTH

    Robert

  4. #4
    Registered User
    Join Date
    04-23-2007
    Location
    Chicago Suburbs
    Posts
    31
    Robert,

    It did help and I apolgize that I did not take the time to say thank you sooner. Thanks!

    Regards,

    Chris

+ 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