View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lars-Åke Aspelin[_2_] Lars-Åke Aspelin[_2_] is offline
external usenet poster
 
Posts: 913
Default Excel Question - Last Twelve Month Calculation

On Thu, 31 Dec 2009 11:20:11 -0800, joseph jordan wrote:

I am trying to create a formula that will automatically sum the last twelve months of data when new months are added (in columns) to the right of the most recent month. Also, don't want to use the "now" feature as information generally lags real time by a couple of months.


Months are columns and the item I want to sum is in the row below the column heading.

Any help would be appreciated.


Submitted via EggHeadCafe - Software Developer Portal of Choice
A Dynamic Progress Bar for Your ASP Page
http://www.eggheadcafe.com/tutorials...ss-bar-fo.aspx



Assuming that your data are on row 2 and that the cell next to the
data you want to sum is blank, try this formula:

=SUM(OFFSET(A2,,MIN(IF(ISBLANK(A2:IV2),COLUMN(A:IV )))-13,,12))

Note: This is an array formula that has to be confirmed by
CTRL+SHIFT+ENTER rather than just ENTER.

Hope this helps / Lars-Åke