Hi,
I am trying to calculate the quarter end date for a given date, with month for financial year end as input.
Ex:
Input date - 21/05/2013 (Cell A1)
Input Month for financial year end - 8 (august) (Cell B1)
Result should be: 31/05/2013
I tried using this formula - EOMONTH( DATE( YEAR( A1 ), ( INT( ( MONTH( A1 ) - 1 ) / 3 ) + 1 ) * 3 + CHOOSE( MOD( B1,3 ) + 1, 0, 1, 2), 1 ), 0)
It doesnt seem to be working for few months (it works for some months and dates)
Is there a neater and quicker way of doing it please?
Thank you!
Yerram
I am trying to calculate the quarter end date for a given date, with month for financial year end as input.
Ex:
Input date - 21/05/2013 (Cell A1)
Input Month for financial year end - 8 (august) (Cell B1)
Result should be: 31/05/2013
I tried using this formula - EOMONTH( DATE( YEAR( A1 ), ( INT( ( MONTH( A1 ) - 1 ) / 3 ) + 1 ) * 3 + CHOOSE( MOD( B1,3 ) + 1, 0, 1, 2), 1 ), 0)
It doesnt seem to be working for few months (it works for some months and dates)
Is there a neater and quicker way of doing it please?
Thank you!
Yerram