Formula? - Averaging last 4 values

S

shawn212

Hi,
I have my data set up the following way - the columns refer to th
month and the rows are the different projects I'm tracking. Projec
"A" has data in months Jan-Oct (10 values), while Project "B" has dat
in months Jan, March, July, August & Sept (5 values)-the missing month
are blank. Is there a way get the average of the last 4 values fo
each project? Maybe using a count function?

thank
 
F

Frank Kabel

Hi
if your values are in A1:J1 use the following array
formula (entered with CTRL+SHIFT+ENTER)
=AVERAGE(OFFSET(J1,0,0,1,-(COLUMN(J1)-LARGE(IF(ISNUMBER
(A1:J1),COLUMN(A1:J1)),4)+1)))
 
J

Jason Morin

One way, assuming project A value start in B2:

=AVERAGE(OFFSET(B2,,COUNT(B2:IV2)-1,,-4))

HTH
Jason
Atlanta, GA
 
F

Frank Kabel

Hi Jason
though we will never know for sure if the OP does not come back :)
he stated
.....while Project "B" has data in months Jan, March, July, August &
Sept (5 values)-the missing months
are blank...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top