Respected All,
this is my first post, if i didn't met with guidelines please forgive me
i have a excel sheet
in cell F4 i have a value December 31,2010
in cell F11 i have a value 1
in cell A27 i have formula as =$F$4
in cell A28 the formula is =DATE(YEAR(INDIRECT("R[-1]C",0)),MONTH(INDIRECT("R[-1]C",0))+$F$11,DAY(INDIRECT("R[-1]C",0)))
so here problem is a28 is dragged and used in a29, a30, a31........a 55 (same formula as in a28)
in the mid espeically at feb 30 (since no feb 30 exist) it is missing feb then it is calculating mar 1st ...etc)
could some body assist me how to get add a month
present output
---------------12/31/2008 --> A27
1/31/2009 --> A28
3/3/2009 --> A29
4/3/2009
5/3/2009
6/3/2009
7/3/2009
8/3/2009
9/3/2009
10/3/2009
11/3/2009
12/3/2009
1/3/2010
2/3/2010
3/3/2010 --> A41.
Expected Output is
---------------------12/31/2008 --> A27
1/31/2009 --> A28
2/28/2009 --> A29
3/31/2009
4/30/2009
5/31/2009
6/30/2009
7/31/2009
8/31/2009
9/30/2009
10/31/2009
11/30/2009
12/31/2009
1/31/2010
2/28/2010
3/31/2010 --> A41.
what changes do i need to my formula i am using =DATE(YEAR(INDIRECT("R[-1]C",0)),MONTH(INDIRECT("R[-1]C",0))+$F$11,DAY(INDIRECT("R[-1]C",0)))
also i tried this one but some how it is calculating every month to be as 28....
=DATE(YEAR(INDIRECT("R[-1]C",0)),MONTH(INDIRECT("R[-1]C",0))+$F$11,IF( (MONTH(INDIRECT("R[-1]C",0))+$F$11 ) = 2, IF(MOD(YEAR(INDIRECT("R[-1]C",0)),4)=0,29,28), DAY(INDIRECT("R[-1]C",0))) )
Thanks in advance
Bujji
Bookmarks