#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Convert date to yyQn

how to return a date to YYQN (eg 08Q1, 08Q2)?

thanks



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 449
Default Convert date to yyQn

With date in A1

=TEXT(A1,"yy")&"Q"&INT((MONTH(A1)-1)/3)+1

HTH. Best wishes Harald

"Christine" wrote in message
...
how to return a date to YYQN (eg 08Q1, 08Q2)?

thanks




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Convert date to yyQn

Based on a calender quarter:

With a date in A1:

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

Based on today's date:

=TEXT(NOW(),"yy")&"Q"&CEILING(MONTH(NOW())/3,1)

--
Biff
Microsoft Excel MVP


"Christine" wrote in message
...
how to return a date to YYQN (eg 08Q1, 08Q2)?

thanks





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 154
Default Convert date to yyQn

Christine,
I dont know of a way to return the Quarter in a Custom Format, or any other.
However, there is a formula to use to do this yourself:

=IF(MONTH(A1)<10,IF(MONTH(A1)<7,IF(MONTH(A1)<4,TEX T(A1,"yy")&"Q1",TEXT(A1,"yy")&"Q2"),TEXT(A1,"yy")& "Q3"),TEXT(A1,"yy")&"Q4")

--
--Thomas [PBD]
Working hard to make working easy.
Answered your question? Click ''Yes'' below.


"Christine" wrote:

how to return a date to YYQN (eg 08Q1, 08Q2)?

thanks




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Convert date to yyQn

Please do not double post your questions.
--
John C


"Christine" wrote:

how to return a date to YYQN (eg 08Q1, 08Q2)?

thanks




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you convert an uncoded date (e.g., 20080304) to a date form tenorofchange Excel Worksheet Functions 5 April 20th 08 02:56 PM
Help: How do I convert a text date into a real date format japorms Excel Worksheet Functions 4 August 2nd 06 06:36 PM
Convert a julian gregorian date code into a regular date Robert Excel Worksheet Functions 3 June 13th 06 07:03 PM
how to convert julian date to regular calendar date Ron Excel Worksheet Functions 5 May 5th 05 11:05 PM
Convert date to length of time in months from set date MJUK Excel Worksheet Functions 1 March 19th 05 06:31 PM


All times are GMT +1. The time now is 01:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"