Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to identify text from a autofiltered list using formulas

I have a worksheet with 8 columns of information.
I am using the AutoFilter command to display only specific information from
the list.
Is there a way, using formulas, to extract information from only the
displayed data?

Ex: One of the columns being sorted contains state names, using the
Autofilter command, data for the state of New Jersey is displayed. Is there a
way, using formulas, to extract the state name from the displayed data so it
can be used in concatenating descriptions and used as a lookup criteria in
other formulas?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to identify text from a autofiltered list using formulas


You could create a custom function. This will get you started but it is
not perfect

Function FilterSelection(Column As Integer)

With Worksheets("sheet1")
If .AutoFilterMode Then
With .AutoFilter.Filters(Column)
If .On Then FilterSelection = .Criteria1
End With
End If
End With
FilterSelection = Right(FilterSelection, Len(FilterSelection) - 1)

End Function

You currently have to select which column the filter is in
=filterselection(2) for the second column. Also you have to specify
the sheet name in the function (not ideal). Finally when the pivot
table changes, the function doesn't refresh, but this could be
addressed with another macro

Matt


--
Mallycat
------------------------------------------------------------------------
Mallycat's Profile: http://www.excelforum.com/member.php...o&userid=35514
View this thread: http://www.excelforum.com/showthread...hreadid=561280

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
converting concatenated text strings into formulas z.entropic Excel Worksheet Functions 0 June 5th 06 06:15 PM
display text depending on coice from drop down list Calle Excel Discussion (Misc queries) 11 May 28th 06 09:11 PM
add text to cell by clicking a choice in drop down list Microsoft Sidewinder wheel force feedbac New Users to Excel 1 May 23rd 06 06:46 PM
need a refresher: text boxes on charts that use relational formulas? KR Charts and Charting in Excel 3 October 26th 05 03:08 PM
Counting Repeated text or duplicates in a list Repeatdude Excel Discussion (Misc queries) 5 November 26th 04 07:10 PM


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

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"