=IFERROR(INDIRECT("'" & VLOOKUP($K$35,{"Q1","Jan";"Q2","Apr";"Q3","Jul";"Q4","Oct"},2,0) & " " & $L$35 & "'!B9"),0)+IFERROR(INDIRECT("'" & VLOOKUP($K$35,{"Q1","Feb";"Q2","May";"Q3","Aug";"Q4","Nov"},2,0) & " " & $L$35 & "'!B9"),0)+IFERROR(INDIRECT("'" & VLOOKUP($K$35,{"Q1","Mar";"Q2","Jun";"Q3","Sep";"Q4","Dec"},2,0) & " " & $L$35 & "'!B9"),0)
The above formula works brilliantly in summing up the cell B9 in several worksheets based on their name and where they fall in the calendar quarter. My worksheets are labelled Mmm YYYY (ie Aug 2013, Jan 2013 etc)
I want to be able to change the above formula so that if the month in the selected quarter is in the future then B10 is used instead of B9.
For example. Today we are in May.
If I wanted to see the sum of Q2 2013 I would want to see the sum of Apr 2013 cell B9, May 2013 cell B9 and Jun 2013 B10, as June is in the future.
Any help greatly appreciated.
Bookmarks