+ Reply to Thread
Results 1 to 4 of 4

Formula correction

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    1

    Exclamation Formula correction

    In the below formula, the Month is July and returns the number "7", why then does the formula result in "1st Qtr" no matter what date the forumla references?

    thanks for the help

    =IF(MONTH(D2>1),IF(MONTH(D2<=3), "1st Qtr",""),"")

  2. #2
    Forum Contributor
    Join Date
    02-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    102

    Re: Formula correction

    Hi,

    In general,the comparison should be month(d2)>1 instead of Month(d2>1). The correct formula, to me, would be
    =IF(AND(MONTH(D2)>1,MONTH(D2)<=3), "1st Qtr","")

    not sure if this addresses your query.

  3. #3
    Forum Contributor
    Join Date
    02-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    102

    Re: Formula correction

    A correction in the formula: =IF(AND(MONTH(D2)>=1,MONTH(D2)<=3), "1st Qtr","")

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Formula correction

    Hello birdhouse & welcome to the forum,

    Unfortunately:

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    HTH
    Regards, Jeff

+ 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