I am trying to come up with a formula to adjust the sum range in a SUM function, depending on the month of the year that I reference using a vlookup. The following is my first stab at it, but Excel doesn't like it. Any help would be appreciated.
Code:
=SUM(C13:C & (vlookup(M2,AA5:AB16,2,0)+12))/SUM(B13:B24)
AA5:AB16 looks like this:
Month Fiscal Month
Oct 1
Nov 2
Dec 3
etc., etc.
M2 contains the current month of the year.