Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Find the lowest4 numbers of the last 6 in a range

Is there a formula that will look at the last 6 non blank number values in a
range, and return the average of the four lowest? The numbers are in a row
that is 16 columns and the numbers are added per division weekly. Looks like
this:

45 43 44 45 51 58 38 49 52 38 60 59 41 65 50

Where the large spaces are blank cells, in this example I am looking for the
average of 59, 41, 38, 50. Ideas?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Find the lowest4 numbers of the last 6 in a range

Will there *always* be at least 6 numbers in the range? If not, then what
should happen?

--
Biff
Microsoft Excel MVP


"Pjmcc64" wrote in message
...
Is there a formula that will look at the last 6 non blank number values in
a
range, and return the average of the four lowest? The numbers are in a
row
that is 16 columns and the numbers are added per division weekly. Looks
like
this:

45 43 44 45 51 58 38 49 52 38 60 59 41 65 50

Where the large spaces are blank cells, in this example I am looking for
the
average of 59, 41, 38, 50. Ideas?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Find the lowest4 numbers of the last 6 in a range

Not always 6, but there will be at least 4. Once we get to 6, I only want to
take the average of 4. Basically, the 4 lowest of the most recent 6.

"T. Valko" wrote:

Will there *always* be at least 6 numbers in the range? If not, then what
should happen?

--
Biff
Microsoft Excel MVP


"Pjmcc64" wrote in message
...
Is there a formula that will look at the last 6 non blank number values in
a
range, and return the average of the four lowest? The numbers are in a
row
that is 16 columns and the numbers are added per division weekly. Looks
like
this:

45 43 44 45 51 58 38 49 52 38 60 59 41 65 50

Where the large spaces are blank cells, in this example I am looking for
the
average of 59, 41, 38, 50. Ideas?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 265
Default Find the lowest4 numbers of the last 6 in a range

Assuming that A2:P2 contains the data, try the following formulas that
need to be confirmed with CONTROL+SHIFT+ENTER...

=AVERAGE(SMALL(INDEX(A2:P2,LARGE(IF(A2:P2<"",COLU MN(A2:P2)-COLUMN(A2)+1)
,6)):P2,{1,2,3,4}))

or

=IF(COUNT(A2:P2)=6,AVERAGE(SMALL(INDEX(A2:P2,LARG E(IF(A2:P2<"",COLUMN(A
2:P2)-COLUMN(A2)+1),6)):P2,{1,2,3,4})),"Less than 6 numbers")

--
Domenic
http://www.xl-central.com

In article ,
Pjmcc64 wrote:

Not always 6, but there will be at least 4. Once we get to 6, I only want to
take the average of 4. Basically, the 4 lowest of the most recent 6.

"T. Valko" wrote:

Will there *always* be at least 6 numbers in the range? If not, then what
should happen?

--
Biff
Microsoft Excel MVP


"Pjmcc64" wrote in message
...
Is there a formula that will look at the last 6 non blank number values
in
a
range, and return the average of the four lowest? The numbers are in a
row
that is 16 columns and the numbers are added per division weekly. Looks
like
this:

45 43 44 45 51 58 38 49 52 38 60 59 41 65 50

Where the large spaces are blank cells, in this example I am looking for
the
average of 59, 41, 38, 50. Ideas?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Find the lowest4 numbers of the last 6 in a range

Domenic wrote...
....
=AVERAGE(SMALL(INDEX(A2:P2,LARGE(IF(A2:P2<"",
COLUMN(A2:P2)-COLUMN(A2)+1),6)):P2,{1,2,3,4}))

....

You could shorten that to

=AVERAGE(SMALL(INDEX(2:2,
LARGE(COLUMN(A2:P2)*ISNUMBER(A2:P2),6)):P2,{1;2;3; 4}))
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
Find the numbers used in a range MIK Excel Worksheet Functions 4 January 12th 09 11:09 AM
find the numbers that are used in a range MIK Excel Discussion (Misc queries) 4 January 11th 09 07:03 AM
How to find a range of numbers? DORI Excel Worksheet Functions 3 November 21st 05 01:40 PM
Using COUNTIF to find numbers within a range greater than the mean Lowkey Excel Worksheet Functions 2 May 17th 05 06:34 PM
find numbers in a range that add to a specific value Brett Excel Discussion (Misc queries) 1 December 20th 04 01:55 PM


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

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"