Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Year on Year YTD and YTD Flag Calculation at script level

Dear Team,

I have a requirement to calculate the YOY YTD and YTD Flag.Please see the below excel.My requirement is

1) If I select July 2011 then my Year on Year Flag should able to pick the Jan 2011 to May 2011,Jan 2010 To May 2010,Jan 2009 to May 2009 and Jan 2008 to May 2008. It should exclude the 2 months from the current month.(In example i assumed July 2011 as current).Please help me in creating the flag for the same.

2) YTD Flag: It should show the all the Months by excluding the 2 months of the current month.in this case Jan 2011 to May 2001

2011Volume2010Volume2009Volume2008Volume
Jan5 MMJan7 MMJan1 MMJan3 MMYOY YTD
Feb6 MMFeb8 MMFeb2 MMFeb4 MM
Mar7 MMMar9 MMMar3 MMMar5 MM
Apr8 MMApr10 MMApr4 MMApr6 MM
May9 MMMay11 MMMay5 MMMay7 MM
June10 MMJune12 MMJune6 MMJune8 MM
July11 MMJuly13 MMJuly7 MMJuly9 MM
Aug12 MMAug14 MMAug8 MMAug10 MM
Sep13 MMSep15 MMSep9 MMSep11 MM
Oct14 MMOct16 MMOct10 MMOct12 MM
Nov15 MMNov17 MMNov11 MMNov13 MM
Dec16 MMDec18 MMDec12 MMDec14 MM


Please some one can help in generating these 2 flags.

Ram

0 Replies