+ Reply to Thread
Results 1 to 4 of 4

Quarterly dates problem

  1. #1
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Quarterly dates problem

    Hi,

    Could you please help me with my problem.

    I just want to determine the month quarter if:

    1. if month today is equals to 'January' or 'February' or 'March' then textbox1.value = "1"
    2. if month today is equals to 'April' or 'May' or 'June' then textbox1.value = "2"
    3. if month today is equals to 'July' or 'August' or 'September' then textbox1.value = "3"
    4. if month today is equals to 'October' or 'November' or 'December' then textbox1.value = "4"

    Thank you advance!

  2. #2
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Re: Quarterly dates problem

    What is wrong with my below code?

    Please Login or Register  to view this content.
    Last edited by siobeh; 01-27-2014 at 05:41 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Quarterly dates problem

    siobeh,

    what research have you done on your problem before posting to the forum??

    this is from the vba help obtained from the vba editor, top right corner, type month enter and this is what you get

    Month Function


    Returns a Variant (Integer) specifying a whole number between 1 and 12, inclusive, representing the month of the year.


    I am using 2010 so I cannot verify what you will see in your version of excel

    maybe this is what you should be using??

    Cheers

    Jmac1947

    1. Please consider clicking on the * Add Reputation if you think this post has helped you
    2. Mark your thread as SOLVED when question is resolved

  4. #4
    Registered User
    Join Date
    09-10-2013
    Location
    indonesian
    MS-Off Ver
    O365
    Posts
    45

    Re: Quarterly dates problem

    u can use this formula, is more ease to use
    =MONTH(MONTH(A5)&0)

    quarterly.JPG
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Linking input dates to quarterly reports in different tabs
    By excelmike5 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-27-2014, 02:25 PM
  2. [SOLVED] Splitting a Total Cost into Quarterly dates
    By paulhoskin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-21-2013, 11:09 AM
  3. quarterly/weekly sales tracking with variable dates
    By blufyre in forum Excel General
    Replies: 1
    Last Post: 01-15-2012, 05:12 AM
  4. Dates to Quarterly formats HELP!
    By owenuk in forum Excel General
    Replies: 2
    Last Post: 11-29-2011, 02:23 PM
  5. Problem showing quarterly figures
    By welshman1982 in forum Excel General
    Replies: 6
    Last Post: 12-15-2009, 11:53 AM

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