Trailing 12 month Table (Issue while using OFFSET + COUNT function)

ryanwren

New Member
Joined
Feb 22, 2016
Messages
1
Dear,

I have to create a table to include formulas to retrieve the past 12 months data from another table what has data from Jan-15 to Feb-16.
I want the new table to record the recent 12 months data automatically.

I tried using the OFFSET function with count function but it doesn't seem to work when there is a blank cell, or when the reference table automatically updates the value for upcoming month (say Mar-16).

My reference table has its headers(months) from cell B9 to Y9, data obtained by formulas spread through B10 to Y15.

OBS StatusJan-15Feb-15Mar-15Apr-15May-15Jun-15Jul-15Aug-15Sep-15Oct-15Nov-15Dec-15Jan-16Feb-16Mar-16Apr-16May-16Jun-16Jul-16Aug-16Sep-16Oct-16Nov-16Dec-16
OPEN00000002035114638
CLOSED741203374719313161124247234225164
POSITIVE OBS0315646731421113017

<colgroup><col><col><col><col><col span="2"><col><col span="3"><col><col><col><col><col><col><col><col><col><col span="4"><col><col></colgroup><tbody>
</tbody>

My new table show retrieve data from the above table for last 12 months, it should include blank cells as well

This is the formula i used in my new table
=OFFSET(B10,0,COUNT(10:10)-12,1,1)


I appreciate any help.
Thanks in advance.

Kind Regards,
Brian George.
 

Some videos you may like

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

FDibbins

Well-known Member
Joined
Feb 16, 2013
Messages
6,723
Sounds like you need to use SUMIFS() for this

If your dates are real dates, and not text, you could use something like...
=SUMIFS(B10:Y10,$B$9:$Y$9,"<="&start-date,$B$9:$Y$9,">"&edate(starte-date,*12)
where start-date can be a reference to a cell containing the start date (prefered), or you can hard code oi
 

Watch MrExcel Video

Forum statistics

Threads
1,122,915
Messages
5,598,850
Members
414,263
Latest member
sherrcha

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
Top