I am trying to calculate the difference between total current quarter and total previous quarter in Excel. The data is at the row title and the quarter month is not standard. For example January is consider as quarter 4 and February is quarter 1. Also date can change from one report to the next.
I want to add a formula in column H that total all amount in Q4 (Nov-Jan) and in column I the total amount in Q1 (Aug-Oct) for every row. Next month report column G will be February and I need a formula that dynamic enough to know the current quarter amount to be placed in column H.
I was thinking about using sumproduct and choose but Excel does not like it:
=Sumproduct(--((CHOOSE(MONTH(B29:G29),4,1,1,1,2,2,2,3,3,3,4,4)=4),B30:C30))
If this formula can work, I can just copy paste it to the remaining row in column H and I.
{=SUMPRODUCT(--(CHOOSE(MONTH($B$29:$G$29),4,1,1,1,2,2,2,3,3,3,4,4)=4),$B30:$G30)}
for that formula, i.e.G30
instead ofC30
, and removing the extra bracket beforeCHOOSE
and afterB30:C30
, and making it an array formula (and making certain references absolute rather than relative) – YowE3K