+ Reply to Thread
Results 1 to 3 of 3

Convert Month Number (1,2,3, etc) to Quarter Number (1,2,3,4)

  1. #1
    Registered User
    Join Date
    08-08-2013
    Location
    Colorado, USA
    MS-Off Ver
    365
    Posts
    44

    Convert Month Number (1,2,3, etc) to Quarter Number (1,2,3,4)

    I have data that shows the month as a number (1-12). I need to convert this to a quarter (1-4). For example, months 1, 2, and 3 are Q1; month 4, 5, and 6 are Q2, and so on.

    I could add a table and do a lookup, but I don't want to do that. I could use an IF statement, which I'll do if I don't get a better answer.

    I seem to have a vague memory of some function that would put information based on a number. Like if it's 1, give this result, if it's 2, give a different result, etc.

    Any thoughts/ideas?

    (Note, I can't convert the date, because the date does not necessarily correspond to the fiscal month. For example, January 30-31 is part of Month 2, not Month 1.)

    Thanks,
    David

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Convert Month Number (1,2,3, etc) to Quarter Number (1,2,3,4)

    Try this...

    A1 = a number from 1 to 12

    =CEILING(A1/3,1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,907

    Re: Convert Month Number (1,2,3, etc) to Quarter Number (1,2,3,4)

    Month Number in A1, try this:

    ="Q"&CEILING(A1/3,1)

+ 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. [SOLVED] Convert month name into number
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 11-26-2015, 02:32 PM
  2. [SOLVED] formula to convert month to quarter
    By lejanco in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-20-2015, 12:46 PM
  3. [SOLVED] Find month number in quarter
    By amphinomos in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-15-2015, 12:59 PM
  4. [SOLVED] Excel 2007 : How to convert month number to month name
    By FDibbins in forum Excel General
    Replies: 14
    Last Post: 04-08-2014, 12:42 AM
  5. [SOLVED] Convert Name of month to a number
    By penfold1992 in forum Excel General
    Replies: 4
    Last Post: 01-16-2013, 06:26 AM
  6. convert month to number
    By jillteresa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-22-2008, 04:04 PM
  7. Replies: 11
    Last Post: 06-22-2005, 10:05 AM

Tags for this Thread

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