LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Automaticly changing average function target cells

Glad you were able to work it out.
Appreciate the feed-back.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Phil H." wrote in message
...
Never Mind, I Got It. Sorry.
=AVERAGE(INDEX(I4:I14,LARGE(ROW(1:11)*(I4:I14<"") ,6)):I14)

"Phil H." wrote:

OK, Getting closer. The values in I4:I14 are as follows
1041.25, 1205.00, 1238.33, 1200.00, 1190.00, 1315.63 followed by 5 null

cells.

the array that I edited to be:
=AVERAGE(INDEX(I4:I14,LARGE(ROW(4:14)*(I4:I14<"") ,6)):I14)

returns a value of 1235.208333, though it should be 1198.368 when done
manually using SUM(I4:I9)/6
The Columns next to this one do have values that might be being pulled,

and
also the cells I4:I14 do include funtions them selves. Though since I

do not
understand the Large or Row functions in this array I am having a hard

time
T/Sing the issue. Please Help.

"RagDyer" wrote:

Bob's formula was configured to work along Row1, *across* columns.

Try this *array* formula, where the months are in Column A, and the

values
are in Column B.
This is sized for 2 years, going from B2 down to B25:

=AVERAGE(INDEX(B2:B25,LARGE(ROW(1:24)*(B2:B25<"") ,6)):B25)

--
Array formulas must be entered with CSE, <Ctrl <Shift <Enter,

instead of
the regular <Enter, which will *automatically* enclose the formula in

curly
brackets, which *cannot* be done manually. Also, you must use CSE

when
revising the formula.

--
HTH,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may

benefit !

--------------------------------------------------------------------------

-
"Phil H." wrote in message
...
This creates a #DIV Error.
Please explain this function so I may find the error
Here is what I am Attempting to do.

A
Jan 5
Feb 4
Mar 3
Apr 2
May 3
June 4
July
Avg X

I want X to equal Average(A1:A6) but to automaticly change to
Average(A2:A7)
when an the value of A7 is changed from null to an numerical value


"Bob Phillips" wrote:


=AVERAGE(INDEX(1:1,,SUMPRODUCT(LARGE(COLUMN(1:1)*( 1:1<""),1))):INDEX(1:1,,S
UMPRODUCT(LARGE(COLUMN(1:1)*(1:1<""),6))))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in

my
addy)



"Phil H." wrote in message
...
I am looking to create a function to only average the last 6

entries in
a
list of numbers w/out changing the target cells of the AVERAGE

function
on
a
monthly bases.
Example: I want to track scores on a monthly bases but only want

the
average
of the last six months worth of scores.







 
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
changing average if cells populated Dave Excel Worksheet Functions 3 March 18th 07 10:14 PM
changing average calc if cells populated Dave Excel Worksheet Functions 0 March 16th 07 09:31 PM
changing color of values bigger or smaller than target Fedde New Users to Excel 7 March 27th 06 01:28 PM
Changing target sheet name wihtin a macro Jim G Excel Discussion (Misc queries) 2 January 30th 06 03:05 AM
How do I use an average function, not counting cells containing a Ryder Excel Worksheet Functions 2 March 16th 05 12:05 PM


All times are GMT +1. The time now is 05:46 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"