+ Reply to Thread
Results 1 to 7 of 7

Dates to quarters

  1. #1
    Registered User
    Join Date
    02-27-2006
    Location
    Oxford England
    MS-Off Ver
    2007
    Posts
    54

    Dates to quarters

    Hi, Ive found on this forum a formula which turns a date (dd,mm,yy) into a quarter,year which is great:

    ="Q"&INT((MONTH(C2)-1)/3)+1 & " " & YEAR(C2)

    However its set up to take Jan Feb and Mar as quarter 1, but our financial year starts in April. How do i adjust it to represent this. The formula looks at a date (dd,mm,yy) in column C, should I change this with a seperate formula or adjust the one Im using ? If so in either case can someone show me how as Im usless with date formulas.

    Thanks

  2. #2

    Re: Dates to quarters

    Something like this?

    ="Q"&INT((MONTH(C1)-1)/3)+(MONTH(C1)<4)*4 & "
    "&(YEAR(C1)-(MONTH(C1)<4)*1)

    Hans


  3. #3

    Re: Dates to quarters

    Something like this?

    ="Q"&INT((MONTH(C1)-1)/3)+(MONTH(C1)<4)*4 & "
    "&(YEAR(C1)-(MONTH(C1)<4)*1)

    Hans


  4. #4
    R..VENKATARAMAN
    Guest

    Re: Dates to quarters

    try this
    =IF(MONTH(C2)>3,"Q"&INT((MONTH(C2)-4)/3)+1 & " " &
    YEAR(C2),"Q"&INT((MONTH(C2)-4+12)/3)+1 & " " & YEAR(C2))



    "Ainsley" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi, Ive found on this forum a formula which turns a date (dd,mm,yy)
    > into a quarter,year which is great:
    >
    > ="Q"&INT((MONTH(C2)-1)/3)+1 & " " & YEAR(C2)
    >
    > However its set up to take Jan Feb and Mar as quarter 1, but our
    > financial year starts in April. How do i adjust it to represent this.
    > The formula looks at a date (dd,mm,yy) in column C, should I change this
    > with a seperate formula or adjust the one Im using ? If so in either
    > case can someone show me how as Im usless with date formulas.
    >
    > Thanks
    >
    >
    > --
    > Ainsley
    > ------------------------------------------------------------------------
    > Ainsley's Profile:
    > http://www.excelforum.com/member.php...o&userid=31960
    > View this thread: http://www.excelforum.com/showthread...hreadid=516820
    >




  5. #5
    Bob Phillips
    Guest

    Re: Dates to quarters

    ="Q"&INT((MONTH(DATE(YEAR(C2),MONTH(C2)-3,1))-1)/3)+1 & " " & YEAR(C2)

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Ainsley" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi, Ive found on this forum a formula which turns a date (dd,mm,yy)
    > into a quarter,year which is great:
    >
    > ="Q"&INT((MONTH(C2)-1)/3)+1 & " " & YEAR(C2)
    >
    > However its set up to take Jan Feb and Mar as quarter 1, but our
    > financial year starts in April. How do i adjust it to represent this.
    > The formula looks at a date (dd,mm,yy) in column C, should I change this
    > with a seperate formula or adjust the one Im using ? If so in either
    > case can someone show me how as Im usless with date formulas.
    >
    > Thanks
    >
    >
    > --
    > Ainsley
    > ------------------------------------------------------------------------
    > Ainsley's Profile:

    http://www.excelforum.com/member.php...o&userid=31960
    > View this thread: http://www.excelforum.com/showthread...hreadid=516820
    >




  6. #6
    Bob Phillips
    Guest

    Re: Dates to quarters

    Correction

    ="Q"&INT((MONTH(DATE(YEAR(C2),MONTH(C2)-3,1))-1)/3)+1&"
    "&YEAR(DATE(YEAR(C2),MONTH(C2)-3,1))

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "R..VENKATARAMAN" <[email protected]> wrote in message
    news:[email protected]...
    > try this
    > =IF(MONTH(C2)>3,"Q"&INT((MONTH(C2)-4)/3)+1 & " " &
    > YEAR(C2),"Q"&INT((MONTH(C2)-4+12)/3)+1 & " " & YEAR(C2))
    >
    >
    >
    > "Ainsley" <[email protected]> wrote in
    > message news:[email protected]...
    > >
    > > Hi, Ive found on this forum a formula which turns a date (dd,mm,yy)
    > > into a quarter,year which is great:
    > >
    > > ="Q"&INT((MONTH(C2)-1)/3)+1 & " " & YEAR(C2)
    > >
    > > However its set up to take Jan Feb and Mar as quarter 1, but our
    > > financial year starts in April. How do i adjust it to represent this.
    > > The formula looks at a date (dd,mm,yy) in column C, should I change this
    > > with a seperate formula or adjust the one Im using ? If so in either
    > > case can someone show me how as Im usless with date formulas.
    > >
    > > Thanks
    > >
    > >
    > > --
    > > Ainsley
    > > ------------------------------------------------------------------------
    > > Ainsley's Profile:
    > > http://www.excelforum.com/member.php...o&userid=31960
    > > View this thread:

    http://www.excelforum.com/showthread...hreadid=516820
    > >

    >
    >




  7. #7
    Registered User
    Join Date
    02-27-2006
    Location
    Oxford England
    MS-Off Ver
    2007
    Posts
    54
    Thanks for that, it works well.

+ 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