#1   Report Post  
Bearcats_85
 
Posts: n/a
Default Rolling Average

i am trying to average the smallest 7 numbers out of the last ten entered (i
can to work if all ten cells have data), how do i handle blank cells so i
still look at ten cells of data. The data is entered per day and if a day is
missed i want to ignore and average with the last ten days data was entered
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Is the range going down a column or across a row?

Biff

"Bearcats_85" wrote in message
...
i am trying to average the smallest 7 numbers out of the last ten entered
(i
can to work if all ten cells have data), how do i handle blank cells so i
still look at ten cells of data. The data is entered per day and if a day
is
missed i want to ignore and average with the last ten days data was
entered



  #3   Report Post  
Bearcats_85
 
Posts: n/a
Default

I 12 rows of data, each row requires the rolling average.

"Biff" wrote:

Hi!

Is the range going down a column or across a row?

Biff

"Bearcats_85" wrote in message
...
i am trying to average the smallest 7 numbers out of the last ten entered
(i
can to work if all ten cells have data), how do i handle blank cells so i
still look at ten cells of data. The data is entered per day and if a day
is
missed i want to ignore and average with the last ten days data was
entered




  #4   Report Post  
RagDyer
 
Posts: n/a
Default

Since you stated that the missing days are *BLANK*, and *NOT* zero, with the
data list in Column A, try this *array* formula in B1, and copy down as
needed:

=AVERAGE(SMALL(A1:A10,ROW(INDIRECT({"1:7"}))))

--
Array formulas are entered using CSE, <Ctrl <Shift <Enter, instead of the
regular <Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



"Bearcats_85" wrote in message
...
I 12 rows of data, each row requires the rolling average.

"Biff" wrote:

Hi!

Is the range going down a column or across a row?

Biff

"Bearcats_85" wrote in message
...
i am trying to average the smallest 7 numbers out of the last ten

entered
(i
can to work if all ten cells have data), how do i handle blank cells

so i
still look at ten cells of data. The data is entered per day and if a

day
is
missed i want to ignore and average with the last ten days data was
entered





  #5   Report Post  
Biff
 
Posts: n/a
Default

Golf handicaps?

Entered as an array using the key combo of CTRL,SHIFT,ENTER:

=AVERAGE(SMALL(Z$2:INDEX(A$2:Z$2,LARGE(IF(A$2:Z$2< "",COLUMN(A$2:Z$2)),10)),ROW($1:$7)))

Adjust the ranges to suit. I'm assuming that you enter new values at the end
of the range so make the range large enough to allow for additional entries
(future expansion).

Copy down as needed.

If this is for golf hdcp's, once you get to the next level, 10 lowest from
the last 20, you can use this same formula and simply change the 10 to 20
and change ROW($1:$7) to ROW($1:$10).

Oh, I almost forgot.....this assumes that there are enough entries to meet
the requirements (10 entries), to add some robustness you could add this to
the front of the above formula:

=IF(COUNT(A$2:Z$2)<10,"insufficient data",above_formula_here)

Biff

"Bearcats_85" wrote in message
...
I 12 rows of data, each row requires the rolling average.

"Biff" wrote:

Hi!

Is the range going down a column or across a row?

Biff

"Bearcats_85" wrote in message
...
i am trying to average the smallest 7 numbers out of the last ten
entered
(i
can to work if all ten cells have data), how do i handle blank cells so
i
still look at ten cells of data. The data is entered per day and if a
day
is
missed i want to ignore and average with the last ten days data was
entered








  #6   Report Post  
Biff
 
Posts: n/a
Default

Hi!

You don't need the array brackets inside Indirect. In fact, you don't need
Indirect at all.

=AVERAGE(SMALL(A1:A10,ROW($1:$7)))

Also, this only averages based on the range size and not on the number of
values inside that range. This would be better suited if the range didn't
contain any empty cells.

Biff

"RagDyer" wrote in message
...
Since you stated that the missing days are *BLANK*, and *NOT* zero, with
the
data list in Column A, try this *array* formula in B1, and copy down as
needed:

=AVERAGE(SMALL(A1:A10,ROW(INDIRECT({"1:7"}))))

--
Array formulas are entered using CSE, <Ctrl <Shift <Enter, instead of
the
regular <Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



"Bearcats_85" wrote in message
...
I 12 rows of data, each row requires the rolling average.

"Biff" wrote:

Hi!

Is the range going down a column or across a row?

Biff

"Bearcats_85" wrote in message
...
i am trying to average the smallest 7 numbers out of the last ten

entered
(i
can to work if all ten cells have data), how do i handle blank cells

so i
still look at ten cells of data. The data is entered per day and if a

day
is
missed i want to ignore and average with the last ten days data was
entered






  #7   Report Post  
Biff
 
Posts: n/a
Default

Hi!

In fact, you don't need Indirect at all.


Well, that's not exactly true!

If you expect to insert rows within the range then Indirect will "lock in"
the rows. If there is no possibility of inserting rows, then Indirect is not
needed.

Biff

"Biff" wrote in message
...
Hi!

You don't need the array brackets inside Indirect. In fact, you don't need
Indirect at all.

=AVERAGE(SMALL(A1:A10,ROW($1:$7)))

Also, this only averages based on the range size and not on the number of
values inside that range. This would be better suited if the range didn't
contain any empty cells.

Biff

"RagDyer" wrote in message
...
Since you stated that the missing days are *BLANK*, and *NOT* zero, with
the
data list in Column A, try this *array* formula in B1, and copy down as
needed:

=AVERAGE(SMALL(A1:A10,ROW(INDIRECT({"1:7"}))))

--
Array formulas are entered using CSE, <Ctrl <Shift <Enter, instead of
the
regular <Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



"Bearcats_85" wrote in message
...
I 12 rows of data, each row requires the rolling average.

"Biff" wrote:

Hi!

Is the range going down a column or across a row?

Biff

"Bearcats_85" wrote in message
...
i am trying to average the smallest 7 numbers out of the last ten

entered
(i
can to work if all ten cells have data), how do i handle blank cells

so i
still look at ten cells of data. The data is entered per day and if
a

day
is
missed i want to ignore and average with the last ten days data was
entered








  #8   Report Post  
RagDyeR
 
Posts: n/a
Default

On occasion, when I've had a "liquid" lunch, curly brackets and "things"
tend to appear in my posts from out of nowhere.

I declare to *not* imbibing my lunch yesterday, so I have no idea where they
came from, since they weren't anywhere in my formula test sheet!<bg
--

Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------

"Biff" wrote in message
...
Hi!

You don't need the array brackets inside Indirect. In fact, you don't need
Indirect at all.

=AVERAGE(SMALL(A1:A10,ROW($1:$7)))

Also, this only averages based on the range size and not on the number of
values inside that range. This would be better suited if the range didn't
contain any empty cells.

Biff

"RagDyer" wrote in message
...
Since you stated that the missing days are *BLANK*, and *NOT* zero, with
the
data list in Column A, try this *array* formula in B1, and copy down as
needed:

=AVERAGE(SMALL(A1:A10,ROW(INDIRECT({"1:7"}))))

--
Array formulas are entered using CSE, <Ctrl <Shift <Enter, instead of
the
regular <Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually.
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



"Bearcats_85" wrote in message
...
I 12 rows of data, each row requires the rolling average.

"Biff" wrote:

Hi!

Is the range going down a column or across a row?

Biff

"Bearcats_85" wrote in message
...
i am trying to average the smallest 7 numbers out of the last ten

entered
(i
can to work if all ten cells have data), how do i handle blank cells

so i
still look at ten cells of data. The data is entered per day and if a

day
is
missed i want to ignore and average with the last ten days data was
entered







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
plotted Average Micayla Bergen Charts and Charting in Excel 4 July 15th 05 12:13 PM
What is this kind of average called? havocdragon Excel Worksheet Functions 3 June 24th 05 05:10 PM
AVERAGE and STDEV functions with logic t-rung Excel Worksheet Functions 1 May 26th 05 07:11 PM
Average the Last Five Cells in a Column Warrior Princess Excel Worksheet Functions 3 March 16th 05 02:12 PM
Z Chart i.e. top rolling annual bottom rolling monthly middle cum. wat prin Excel Worksheet Functions 0 January 28th 05 03:43 PM


All times are GMT +1. The time now is 07:50 AM.

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

About Us

"It's about Microsoft Excel"