+ Reply to Thread
Results 1 to 3 of 3

If Then Function Help needed

Hybrid View

  1. #1
    Registered User
    Join Date
    06-09-2011
    Location
    Seattle Washington
    MS-Off Ver
    Excel 2003
    Posts
    40

    Red face If Then Function Help needed

    If column F date entered falls between below listed months, then Colum G shows appropriate quarter.

    Column F: = Date of Consult: Column G: = Quarter:
    if date entered is between month of October - December then quarter =1
    if date entered is between months of January - March then quarter =2
    if date entered is between months of April - June then quarter =3
    if date entered is between months of July - September then quarter =4


    Dates entered will be in format of mm/dd/yy

    Thanks.
    Attached Files Attached Files
    Last edited by wheatgrass; 02-16-2012 at 01:24 PM.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: If Then Function Help needed

    Hi,

    Give this a try:

    =LOOKUP(MONTH(F2),{1,4,7,10},{2,3,4,1})
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: If Then Function Help needed

    Hi WheatGrass,

    You can use the following formula:-

    =IF(AND(MONTH(G8)>=10,MONTH(G8)<=12),1,IF(AND(MONTH(G8)>=1,MONTH(G8)<=3),2,IF(AND(MONTH(G8)>=4,MONTH(G8)<=6),3,4)))
    where G8 is the date for which you need to find the quarter.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

+ 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