Formula to compare and sum last 4 quarters possible?

home_toast

New Member
Joined
Mar 30, 2009
Messages
36
Hi,

I am developing a report and I have run into some problems.

I use the formula below to sum the last 4 quarters of operating expenses:
=SUM(OFFSET(INDEX(B$4:B$13,COUNT(B$4:B$13)),-3,,4))
Data is in B8:B11 and B12:13 is blank. A8:A11 correspond to Q3 2009 to Q2 2010. Data is not available for Q3 2010 and Q4 2010 yet.

I use a similar formula to sum the last 4 quarters of revenue:
=SUM(OFFSET(INDEX(B$18:B$27,COUNT(B$18:B$27)),-3,,4))
Data is in B24:B27. A24:A27 correspond to Q1 2010 to Q4 2010.

And I will use the sum of these 2 figures to do analysis. However, it is not comparable as operating expenses data is from Q3 2009 to Q2 2010 while revenue data is from Q1 2010 to Q4 2010.

Is there any method (formula or vba but hopefully formula) to sum only the 4 quarters where data is available on both operating expenses and revenue, i.e. instead of picking up Q1 2010 to Q4 2010 reveue data, the formula picks up Q3 2009 to Q2 2010 revenue data to coincide with the data availability of Q3 2009 to Q2 2010 operating expenses data?

The reverse can also happen where revenue data is not available even though operating expenses data is available. So hopefully the formula/vba can also handle that.

Looking forward to any help I can get on this.

Thanks.

TJ
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top