Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CM CM is offline
external usenet poster
 
Posts: 136
Default function to reference value selected with autofilter

A single column value has been selected with the autofilter at the top of the
column. Is there a way to store that selected value in a cell to reference it
with functions?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default function to reference value selected with autofilter

This array formula will return the *first* item in the range D2:D15.

=INDEX(D2:D15,MATCH(1,SUBTOTAL(3,OFFSET(D2:D15,,,R OW(D2:D15)-MIN(ROW(D2:D15))+1)),0))

** 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


"cm" wrote in message
...
A single column value has been selected with the autofilter at the top of
the
column. Is there a way to store that selected value in a cell to reference
it
with functions?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default function to reference value selected with autofilter

I got this function from T.Valko a while back:
=INDEX(B4:B620,MATCH(1,(SUBTOTAL(3,OFFSET(B4:B620, ROW(B4:B620)-MIN(ROW(B4:B620)),0,1)))*(B4:B620<""),0))

Hope that does what you want.

Ryan--

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"T. Valko" wrote:

This array formula will return the *first* item in the range D2:D15.

=INDEX(D2:D15,MATCH(1,SUBTOTAL(3,OFFSET(D2:D15,,,R OW(D2:D15)-MIN(ROW(D2:D15))+1)),0))

** 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


"cm" wrote in message
...
A single column value has been selected with the autofilter at the top of
the
column. Is there a way to store that selected value in a cell to reference
it
with functions?




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
How to get the cell reference of the value selected from name list YY san.[_2_] Excel Worksheet Functions 3 March 7th 09 06:52 PM
Autofilter using cell reference Eliott Excel Worksheet Functions 1 April 23rd 08 01:14 PM
Reference to cells using autofilter problem Twitos Excel Worksheet Functions 2 July 14th 06 09:08 PM
Why does AutoFilter display rows NOT selected from drop down box? Jo M Excel Discussion (Misc queries) 9 October 15th 05 01:08 AM
Autofilter selected arrow color Jon Quixley Excel Worksheet Functions 1 August 2nd 05 11:56 AM


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