+ Reply to Thread
Results 1 to 3 of 3

dynamic filtering of data with multiple criterias

  1. #1
    Registered User
    Join Date
    04-19-2017
    Location
    Brugg
    MS-Off Ver
    Excel 2013
    Posts
    1

    dynamic filtering of data with multiple criterias

    Hi all

    Trying to set up the following spreadsheet. I'v got a database on Sheet A ("Datenbank" in attached file) with multiple columns (date, customer, description, etc.) where I'm constantly adding new rows with data. On sheet B ("Suchmaske" in attached file) I'd like to have an additional database which should show only the rows (without blank rows between) that are based on multiple criteria, such as Date between (>= <=), customer, description etc. that I can change anytime. The database on sheet B should dynamically update/ adding new rows that I have added on sheet A. Is there a way to do that with array formulas or only with VBA?

    For better explanation I have attached a sample worksheet. The green highlighted cells on sheet B ("Suchmaske" in attached file) are the cells where I'd like to enter the criteria values.

    If anyone could give me a hand I would really appreciate that.

    Thanks in Advance
    Agreth
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: dynamic filtering of data with multiple criterias

    Welcome to the forum!

    If I'm understanding you correctly, then I would advise turning your datasheet on "Datenbank" into a table so it automatically incorporates new rows. You can then use the following formula in B7 of Suchmaske. It should be array entered (confirm with Ctrl + Shift + Enter instead of Enter):

    =IFERROR(INDEX(Table1,SMALL(IF((IF($C$6="",1,$C$6=Table1[Kunde]))*(IF($D$6="",1,$D$6=Table1[Beschreibung]))*(IF($E$6="",1,$E$6=Table1[Projekt '#]))*(IF($F$6="",1,$F$6=Table1[Rechnungs '# Kunde]))*(IF($B$2="",1,$B$2<=Table1[Datum]))*(IF($B$3="",1,$B$3>=Table1[Datum]))*(IF($B$6="",1,$B$6=Table1[Posten])),ROW(Table1[Posten])),ROW(1:1))-1,MATCH(B$5,Table1[#Headers],0)),"")

    Fill right, then fill down beyond what you will need. It should automatically update as you change the search/filter terms or update "Datenbank". The formula will still work without a table, you'll just have to change all of the table references to the actual columns. Take a look at the attachment and see if it's close to what you're looking for:
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: dynamic filtering of data with multiple criterias

    That would require some vba using the change event of sheet A for synchronizing sheet A and B.

    But may be you could establish what you're after by just putting an autofilter on the database (Sheet A).
    If you change the format of the cells holding dates to the date format that will offer you quit some selection option.
    But may be there are other reasons you want to do your selection on a copy database which I'm not aware of.

    And yes turning the database into a table is highly recommended.
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Excel 2013 Advanced Filtering using Multiple Criterias
    By TallTex in forum Excel General
    Replies: 4
    Last Post: 03-03-2017, 05:28 PM
  2. Filtering data based on couple criterias
    By Vinkel in forum Excel General
    Replies: 2
    Last Post: 02-17-2016, 05:31 AM
  3. Creating dynamic top 10 list with multiple conditions and criterias
    By yabadabado in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-06-2014, 10:11 AM
  4. Replies: 0
    Last Post: 02-02-2014, 08:42 AM
  5. Replies: 2
    Last Post: 07-12-2010, 01:17 PM
  6. 2 criterias filtering
    By puiuluipui in forum Excel General
    Replies: 0
    Last Post: 09-27-2005, 04:40 PM
  7. Multiple Data Validation Criterias
    By MCorrea in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-20-2005, 04:06 PM

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