Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default Calculating Average based on 3 filled cells from left in a row

I have A1 to L1 total 12 cells reserved to enter the monthly values. m1 will
have last 3 months =Average(a1:c1). I need avoid the shifting of reference
cells every month in the formula to calculate last 3 month Average. Any
alternative formula I can apply to auto calculate the Average amount based on
3 value filled cells from the left end of the row? I mean if I fill apr value
in D1, then same result from =Average (b1: d1) which should automatically
return in m1.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Calculating Average based on 3 filled cells from left in a row

To average the last three values in row #1 use:

=AVERAGE(IV1:INDEX(1:1,LARGE(IF(1:1<"",COLUMN(1:1 )),3)))

This is an array formula that must be entered with CNTRL-SHFT-ENTER rather
than just the ENTER key.

--
Gary''s Student - gsnu200813


"Narnimar" wrote:

I have A1 to L1 total 12 cells reserved to enter the monthly values. m1 will
have last 3 months =Average(a1:c1). I need avoid the shifting of reference
cells every month in the formula to calculate last 3 month Average. Any
alternative formula I can apply to auto calculate the Average amount based on
3 value filled cells from the left end of the row? I mean if I fill apr value
in D1, then same result from =Average (b1: d1) which should automatically
return in m1.
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default Calculating Average based on 3 filled cells from left in a row

So I put a1 to e1 with 25 28 32 14 15 and placed this formula in m1. Its
returns 0. Any reason?


"Gary''s Student" wrote:

To average the last three values in row #1 use:

=AVERAGE(IV1:INDEX(1:1,LARGE(IF(1:1<"",COLUMN(1:1 )),3)))

This is an array formula that must be entered with CNTRL-SHFT-ENTER rather
than just the ENTER key.

--
Gary''s Student - gsnu200813


"Narnimar" wrote:

I have A1 to L1 total 12 cells reserved to enter the monthly values. m1 will
have last 3 months =Average(a1:c1). I need avoid the shifting of reference
cells every month in the formula to calculate last 3 month Average. Any
alternative formula I can apply to auto calculate the Average amount based on
3 value filled cells from the left end of the row? I mean if I fill apr value
in D1, then same result from =Average (b1: d1) which should automatically
return in m1.
Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Calculating Average based on 3 filled cells from left in a row

My problem... We need a small change because M1 is in the same row as the
data we are trying to average:

=AVERAGE(L1:INDEX(A1:L1,LARGE(IF(A1:L1<"",COLUMN( A1:L1)),3)))

CNTRL-SHFT-ENTER still applies!!
--
Gary''s Student - gsnu200813


"Narnimar" wrote:

So I put a1 to e1 with 25 28 32 14 15 and placed this formula in m1. Its
returns 0. Any reason?


"Gary''s Student" wrote:

To average the last three values in row #1 use:

=AVERAGE(IV1:INDEX(1:1,LARGE(IF(1:1<"",COLUMN(1:1 )),3)))

This is an array formula that must be entered with CNTRL-SHFT-ENTER rather
than just the ENTER key.

--
Gary''s Student - gsnu200813


"Narnimar" wrote:

I have A1 to L1 total 12 cells reserved to enter the monthly values. m1 will
have last 3 months =Average(a1:c1). I need avoid the shifting of reference
cells every month in the formula to calculate last 3 month Average. Any
alternative formula I can apply to auto calculate the Average amount based on
3 value filled cells from the left end of the row? I mean if I fill apr value
in D1, then same result from =Average (b1: d1) which should automatically
return in m1.
Thanks

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default Calculating Average based on 3 filled cells from left in a row

Similarly how can I do the same if those values are in merged cells?

"Gary''s Student" wrote:

My problem... We need a small change because M1 is in the same row as the
data we are trying to average:

=AVERAGE(L1:INDEX(A1:L1,LARGE(IF(A1:L1<"",COLUMN( A1:L1)),3)))

CNTRL-SHFT-ENTER still applies!!
--
Gary''s Student - gsnu200813


"Narnimar" wrote:

So I put a1 to e1 with 25 28 32 14 15 and placed this formula in m1. Its
returns 0. Any reason?


"Gary''s Student" wrote:

To average the last three values in row #1 use:

=AVERAGE(IV1:INDEX(1:1,LARGE(IF(1:1<"",COLUMN(1:1 )),3)))

This is an array formula that must be entered with CNTRL-SHFT-ENTER rather
than just the ENTER key.

--
Gary''s Student - gsnu200813


"Narnimar" wrote:

I have A1 to L1 total 12 cells reserved to enter the monthly values. m1 will
have last 3 months =Average(a1:c1). I need avoid the shifting of reference
cells every month in the formula to calculate last 3 month Average. Any
alternative formula I can apply to auto calculate the Average amount based on
3 value filled cells from the left end of the row? I mean if I fill apr value
in D1, then same result from =Average (b1: d1) which should automatically
return in m1.
Thanks



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Calculating Average based on 3 filled cells from left in a row

I have not been able to get this type of formula to work on merged cells.
--
Gary''s Student - gsnu200813


"Narnimar" wrote:

Similarly how can I do the same if those values are in merged cells?

"Gary''s Student" wrote:

My problem... We need a small change because M1 is in the same row as the
data we are trying to average:

=AVERAGE(L1:INDEX(A1:L1,LARGE(IF(A1:L1<"",COLUMN( A1:L1)),3)))

CNTRL-SHFT-ENTER still applies!!
--
Gary''s Student - gsnu200813


"Narnimar" wrote:

So I put a1 to e1 with 25 28 32 14 15 and placed this formula in m1. Its
returns 0. Any reason?


"Gary''s Student" wrote:

To average the last three values in row #1 use:

=AVERAGE(IV1:INDEX(1:1,LARGE(IF(1:1<"",COLUMN(1:1 )),3)))

This is an array formula that must be entered with CNTRL-SHFT-ENTER rather
than just the ENTER key.

--
Gary''s Student - gsnu200813


"Narnimar" wrote:

I have A1 to L1 total 12 cells reserved to enter the monthly values. m1 will
have last 3 months =Average(a1:c1). I need avoid the shifting of reference
cells every month in the formula to calculate last 3 month Average. Any
alternative formula I can apply to auto calculate the Average amount based on
3 value filled cells from the left end of the row? I mean if I fill apr value
in D1, then same result from =Average (b1: d1) which should automatically
return in m1.
Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to left-justify zero-filled cell Exl2007 FelipeL Excel Discussion (Misc queries) 0 May 28th 08 10:26 PM
calculating average with blank cells marvinks Excel Worksheet Functions 3 August 7th 06 04:34 PM
Calculating the average of cells pippa New Users to Excel 2 March 13th 06 10:07 PM
Calculating an average based on 2 and 3 criteria craggergirl Excel Worksheet Functions 2 February 24th 06 02:37 PM
How do I ignore cells with errors when calculating an average? M Enfroy Excel Worksheet Functions 6 November 1st 05 03:26 PM


All times are GMT +1. The time now is 03:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"