View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default spreadsheet formula

Doug,

This will total it for row 1

=SUM(N(OFFSET(A1,,LARGE((1:1<"")*(COLUMN(INDIRECT ("A:IV"))),{1,2,3,4})-1,1,
1)))

it is an array formula, so commit with Ctrl-Shift-Enter, not just Enter.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"doug" wrote in message
...
Good morning,
i have a manager who wants to average a set of cells.
he there are indefinate number of cells in a row and he wants to average
only the current entry plus only the last three consecitive entries.
example:
if a1,b1,c1,d1,f1 all have entries he wants the average based on the info

in
b1,c1,d1,f1.
when e1 has data entered he wants the average to be based on c1,d1,f1,e1.
there are 20+ rows that need to have this function.
can someone help, this is beyond my capabilities.
thanks
doug