Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 247
Default Average Last 100 Filtered Visible rows

Hi All,

I have a dynamic named range "Data" that spans one column and many rows;
"Data" houses numeric values.

Without copying or moving cells: Is it possible to have a single formula to
average Data's last 100 cells of filtered visible data?

Your assistance is very much appreciated.

Thank you,
Sam

--
Message posted via http://www.officekb.com

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Average Last 100 Filtered Visible rows

Try this...

No error checking!

If there aren't 100 visible rows then you'll get an error.

Array entered** :

=AVERAGE(IF(ROW(Data)=LARGE(IF(SUBTOTAL(3,OFFSET(D ata,ROW(Data)-MIN(ROW(Data)),0,1))*ROW(Data),ROW(Data)),TRANSPOS E(ROW(INDIRECT("1:100")))),Data))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Sam via OfficeKB.com" <u4102@uwe wrote in message
news:9c43d5194b400@uwe...
Hi All,

I have a dynamic named range "Data" that spans one column and many rows;
"Data" houses numeric values.

Without copying or moving cells: Is it possible to have a single formula
to
average Data's last 100 cells of filtered visible data?

Your assistance is very much appreciated.

Thank you,
Sam

--
Message posted via http://www.officekb.com



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 247
Default Average Last 100 Filtered Visible rows

Hi Max,

Absolutely Brilliant! I tried many, many variations with the AVERAGE(IF
(SUBTOTAL(2,OFFSET(... but really could not fathom it!. Most appreciated.
Thank you so very much.

Cheers,
Sam

T. Valko wrote:
Try this...
No error checking!
If there aren't 100 visible rows then you'll get an error.
Array entered** :


=AVERAGE(IF(ROW(Data)=LARGE(IF(SUBTOTAL(3,OFFSET( Data,ROW(Data)-MIN(ROW(Data)),0,1))*ROW(Data),ROW(Data)),TRANSPOS E(ROW(INDIRECT("1:100")))),Data))


** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.


--
Message posted via http://www.officekb.com

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 247
Default Average Last 100 Filtered Visible rows

Hi Biff,

Apologies, incorrectly gave credit to Max. I was looking at a previous Post
that Max had answered. Sorry!

Absolutely Brilliant! I tried many, many variations with the AVERAGE(IF
(SUBTOTAL(2,OFFSET(... but really could not fathom it!. Most appreciated.
Thank you so very much.

Cheers,
Sam

T. Valko wrote:
Try this...
No error checking!
If there aren't 100 visible rows then you'll get an error.
Array entered** :


=AVERAGE(IF(ROW(Data)=LARGE(IF(SUBTOTAL(3,OFFSET( Data,ROW(Data)-MIN(ROW(Data)),0,1))*ROW(Data),ROW(Data)),TRANSPOS E(ROW(INDIRECT("1:100")))),Data))


** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200909/1

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Average Last 100 Filtered Visible rows

incorrectly gave credit to Max.

Max doesn't get enough credit for what he does!

You're welcome, Sam. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Sam via OfficeKB.com" <u4102@uwe wrote in message
news:9c4634c1c84b3@uwe...
Hi Biff,

Apologies, incorrectly gave credit to Max. I was looking at a previous
Post
that Max had answered. Sorry!

Absolutely Brilliant! I tried many, many variations with the AVERAGE(IF
(SUBTOTAL(2,OFFSET(... but really could not fathom it!. Most appreciated.
Thank you so very much.

Cheers,
Sam

T. Valko wrote:
Try this...
No error checking!
If there aren't 100 visible rows then you'll get an error.
Array entered** :


=AVERAGE(IF(ROW(Data)=LARGE(IF(SUBTOTAL(3,OFFSET (Data,ROW(Data)-MIN(ROW(Data)),0,1))*ROW(Data),ROW(Data)),TRANSPOS E(ROW(INDIRECT("1:100")))),Data))


** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200909/1





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
countif only visible cells (filtered) [email protected] Excel Worksheet Functions 8 August 16th 07 04:39 PM
Copy visible cells on Filtered data [email protected] Excel Discussion (Misc queries) 4 July 18th 07 08:18 AM
count if on Visible - Filtered tonyv Excel Worksheet Functions 4 July 7th 07 07:34 PM
How do I only delete/clear the visible cells in a filtered list? Merv Excel Worksheet Functions 5 March 2nd 07 07:00 PM
average of visible cells in a filtered range dave roth Excel Worksheet Functions 5 May 23rd 05 12:56 PM


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