Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Calculate Quarter end?

Is there a formula similiar to EOMONTH that can used to calculate the end of
a quarter?

For example, for a date of 5/28/08, is it possible to display 6/30/08, which
is quarter end?

If not any suggestions to an alternative formula (or string of formulas)?

MM/DD/YY format would be preferred.

Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 154
Default Calculate Quarter end?

Gerard,

Here is a pretty long nested if, but it will do what you want. Someone
might have a better idea than this:

=IF(A1DATE(YEAR(A1),3,31),IF(A1DATE(YEAR(A1),6,3 0),IF(A1DATE(YEAR(A1),9,30),DATE(YEAR(A1),12,31), DATE(YEAR(A1),9,30)),DATE(YEAR(A1),6,30)),DATE(YEA R(A1),3,31))

--
--Thomas [PBD]
Working hard to make working easy.


"Gerard" wrote:

Is there a formula similiar to EOMONTH that can used to calculate the end of
a quarter?

For example, for a date of 5/28/08, is it possible to display 6/30/08, which
is quarter end?

If not any suggestions to an alternative formula (or string of formulas)?

MM/DD/YY format would be preferred.

Thanks in advance!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default Calculate Quarter end?

To obtain Quarter Number for any date you could use:
=ROUNDUP(MONTH(A1)/3,0)

Then put that in the EOMONTH Function as follows...
=EOMONTH(DATE(YEAR(A1),3*ROUNDUP(MONTH(A1)/3,0),1),0)

Here is text explanation:
Obtain Quarter number of date
Multiply Quarter number by 3 to get Month number of last month in quarter
Use that last month of quarter in EOMONTH function with DAY = 1



"Gerard" wrote:

Is there a formula similiar to EOMONTH that can used to calculate the end of
a quarter?

For example, for a date of 5/28/08, is it possible to display 6/30/08, which
is quarter end?

If not any suggestions to an alternative formula (or string of formulas)?

MM/DD/YY format would be preferred.

Thanks in advance!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Calculate Quarter end?

A bit shorter

= DATE(YEAR(A1),3*TRUNC((MONTH(A1)-1)/3)+4,0)

Mike

"Gerard" wrote:

Is there a formula similiar to EOMONTH that can used to calculate the end of
a quarter?

For example, for a date of 5/28/08, is it possible to display 6/30/08, which
is quarter end?

If not any suggestions to an alternative formula (or string of formulas)?

MM/DD/YY format would be preferred.

Thanks in advance!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default Calculate Quarter end?

=EOMONTH(A1,3-MONTH(A1))

Gerard wrote:

Is there a formula similiar to EOMONTH that can used to calculate the end of
a quarter?

For example, for a date of 5/28/08, is it possible to display 6/30/08, which
is quarter end?

If not any suggestions to an alternative formula (or string of formulas)?

MM/DD/YY format would be preferred.

Thanks in advance!




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default Calculate Quarter end?

Oops, make that
=EOMONTH(A1,MOD(3-MONTH(A1),3))

Bob I wrote:

=EOMONTH(A1,3-MONTH(A1))

Gerard wrote:

Is there a formula similiar to EOMONTH that can used to calculate the
end of a quarter?

For example, for a date of 5/28/08, is it possible to display 6/30/08,
which is quarter end?

If not any suggestions to an alternative formula (or string of formulas)?

MM/DD/YY format would be preferred.

Thanks in advance!




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default Calculate Quarter end?

The brief formula below does not work-- it always returns end of Q1 even if
month is in Q2,3,or 4.

"Bob I" wrote:

=EOMONTH(A1,3-MONTH(A1))

Gerard wrote:

Is there a formula similiar to EOMONTH that can used to calculate the end of
a quarter?

For example, for a date of 5/28/08, is it possible to display 6/30/08, which
is quarter end?

If not any suggestions to an alternative formula (or string of formulas)?

MM/DD/YY format would be preferred.

Thanks in advance!



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default Calculate Quarter end?

yep, see correction using MOD

KIM W wrote:
The brief formula below does not work-- it always returns end of Q1 even if
month is in Q2,3,or 4.

"Bob I" wrote:


=EOMONTH(A1,3-MONTH(A1))

Gerard wrote:


Is there a formula similiar to EOMONTH that can used to calculate the end of
a quarter?

For example, for a date of 5/28/08, is it possible to display 6/30/08, which
is quarter end?

If not any suggestions to an alternative formula (or string of formulas)?

MM/DD/YY format would be preferred.

Thanks in advance!




  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 154
Default Calculate Quarter end?

Kim,
He amended it quickly after. :)

Bob I wrote:
Oops, make that
=EOMONTH(A1,MOD(3-MONTH(A1),3))

--
--Thomas [PBD]
Working hard to make working easy.


"KIM W" wrote:

The brief formula below does not work-- it always returns end of Q1 even if
month is in Q2,3,or 4.

"Bob I" wrote:

=EOMONTH(A1,3-MONTH(A1))

Gerard wrote:

Is there a formula similiar to EOMONTH that can used to calculate the end of
a quarter?

For example, for a date of 5/28/08, is it possible to display 6/30/08, which
is quarter end?

If not any suggestions to an alternative formula (or string of formulas)?

MM/DD/YY format would be preferred.

Thanks in advance!



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
Calculate a quarter JPS Excel Discussion (Misc queries) 16 December 30th 08 07:19 PM
how to calculate time start & time finish in quarter hour Peter Wu Excel Discussion (Misc queries) 3 June 7th 06 12:58 AM
Quarter End Date [email protected] Excel Worksheet Functions 6 April 6th 06 06:54 PM
First and Last Day of the Quarter Wolfspaw Excel Worksheet Functions 6 March 4th 06 03:10 AM
Calculate % variance on previous quarters. Quarter %, etc. pivot DaveC Excel Discussion (Misc queries) 1 August 8th 05 06:45 PM


All times are GMT +1. The time now is 06:54 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"