+ Reply to Thread
Results 1 to 4 of 4

Filter and show data based on a reference cell

  1. #1
    Stephen Hancock
    Guest

    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. #2
    Debra Dalgleish
    Guest

    Re: Filter and show data based on a reference cell

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

    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. #3
    Stephen Hancock
    Guest

    Re: 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 here:
    >
    > 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. #4
    Debra Dalgleish
    Guest

    Re: 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 here:
    >>
    >> 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1