View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Janet T
 
Posts: n/a
Default Calculation using rolling 4 week amounts

Thanks Topola - that was a great help :-)

"topola" wrote:

That's simple.
A1:E1: DATES
A1:D1: Date1, Date2, Date3, Date4...
A2:D2: Val1, Val2, Val3, Val4...

$A$4=COUNT(A1:E1)-4 or
$A$4=COUNT(DATES)-4

Moving 4-Period Formula:
=SUM(OFFSET(A2,0,$A$4,1,4))

Remark: Insert New Column BEFORE last column which is E.
--
HTH
Tomek Polak, http://vba.blog.onet.pl