ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Calculating Average based on 3 filled cells from left in a row (https://www.excelbanter.com/excel-discussion-misc-queries/209842-calculating-average-based-3-filled-cells-left-row.html)

Narnimar

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

Gary''s Student

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


Narnimar

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


Gary''s Student

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


Narnimar

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


Gary''s Student

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


Narnimar

Calculating Average based on 3 filled cells from left in a row
 
I have one limelight in this isue! I have identically made 12 cells by merger
of 2 cells for each one. Now is it possible for a solution.
Secondly, is it possible for the right formula to get the Average value
where in jan and feb month there will not be 3 cells filled?

"Gary''s Student" wrote:

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



All times are GMT +1. The time now is 08:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com