Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stephen Hancock
 
Posts: n/a
Default Filter and show data based on a reference cell

I have Worksheet 2 with a lot of data. I need to have an input cell on WS1
where I can input serch criteria ("text") as needed and it will then show the
results on WS1.

Any help would be appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Debra Dalgleish
 
Posts: n/a
Default Filter and show data based on a reference cell

You can do this with an Advanced Filter, manually or programmatically.
There are examples he

http://www.contextures.com/excelfiles.html

Under 'Filters', look for "FL0002 - Product List by Week Number" and
"FL0005 - Phone List for Selected Name"

Stephen Hancock wrote:
I have Worksheet 2 with a lot of data. I need to have an input cell on WS1
where I can input serch criteria ("text") as needed and it will then show the
results on WS1.

Any help would be appreciated!



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Stephen Hancock
 
Posts: n/a
Default Filter and show data based on a reference cell

Dear Bebra

Thanks. The only change i need to make to FL0005 is to be able to populate
the criteria in C3 from another cell. The reason is that the worksheet will
be under an Xcelsius file and I need to input the criteria at the Xcelsius
level which wll populate C3. Is this possible?

"Debra Dalgleish" wrote:

You can do this with an Advanced Filter, manually or programmatically.
There are examples he

http://www.contextures.com/excelfiles.html

Under 'Filters', look for "FL0002 - Product List by Week Number" and
"FL0005 - Phone List for Selected Name"

Stephen Hancock wrote:
I have Worksheet 2 with a lot of data. I need to have an input cell on WS1
where I can input serch criteria ("text") as needed and it will then show the
results on WS1.

Any help would be appreciated!



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Debra Dalgleish
 
Posts: n/a
Default Filter and show data based on a reference cell

Perhaps you could change the cell so it links to the Xcelsius file, and
use the Worksheet_Calculate event instead of Worksheet_Change. For example:

'============================
Private Sub Worksheet_Calculate()
Application.EnableEvents = True
On Error GoTo errHandler
Dim wsD As Worksheet
Dim wsC As Worksheet
Set wsD = Worksheets("Data Entry")
Set wsC = Worksheets("Customers")
wsC.Range("Database") _
.AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=wsD.Range("C2:C3"), _
CopyToRange:=wsD.Range("A6:D6"), _
Unique:=False

Exit Sub

errHandler:
Application.EnableEvents = True
MsgBox "Names were not retrieved"

End Sub
'===============================

Stephen Hancock wrote:
Dear Bebra

Thanks. The only change i need to make to FL0005 is to be able to populate
the criteria in C3 from another cell. The reason is that the worksheet will
be under an Xcelsius file and I need to input the criteria at the Xcelsius
level which wll populate C3. Is this possible?

"Debra Dalgleish" wrote:


You can do this with an Advanced Filter, manually or programmatically.
There are examples he

http://www.contextures.com/excelfiles.html

Under 'Filters', look for "FL0002 - Product List by Week Number" and
"FL0005 - Phone List for Selected Name"

Stephen Hancock wrote:

I have Worksheet 2 with a lot of data. I need to have an input cell on WS1
where I can input serch criteria ("text") as needed and it will then show the
results on WS1.

Any help would be appreciated!



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

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
Using a cell reference to copy rows to a new worksheet wham Excel Discussion (Misc queries) 2 June 14th 06 07:05 AM
The filter didn't show all (2,254) names when I set it up Darrell Excel Discussion (Misc queries) 2 December 17th 05 04:25 PM
Excel filter dropdown shows all data daved Excel Worksheet Functions 3 November 16th 05 03:28 PM
Text on cart based on data in a cell Ant Charts and Charting in Excel 1 August 10th 05 11:06 PM
Pivot Table Data Filter Problem Pepikins Excel Discussion (Misc queries) 0 June 16th 05 09:12 AM


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