+ Reply to Thread
Results 1 to 4 of 4

extract rows from sheet based on multiple criteria

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    France
    MS-Off Ver
    Excel 2007
    Posts
    3

    extract rows from sheet based on multiple criteria

    First of all, hello everybody, i'm new.
    Second thing, please excuse my english i'm french. Despite of this, I hope i will be understood

    I'm a total newbie in Excel, and i want to make something very easy in theory, but quite tricky in excel...

    I have a raw data sheet.
    I would like to extract rows from this sheet to others sheet, based on multiple criteria. I've made it via advanced filters, but i would like to automatically do this, because i have a lot of sheets and a lot of criteria... and i have to update this excel very often

    I have joined the example file.
    The sheets representing differents mix of criteria are fixed. But depending on the criteria, the number of raws to extract are not the same. and i want to list only the rows which are ok with the criteria.
    The raw data sheet will be the one updated, and i would like it updates all the sheets, changing the values and the dates.

    So i'm ok with advanced filters, but very long to operate due to a lot of sheets and criteria.

    I hope i was clear enough, and someone will have an idea to make it

    Raw data sheet
    OBJECT1 OBJECT2 OBJECT3 size date
    car wheel red 3 9/1/2012
    car wheel blue 5 9/1/2012
    bus door red 2 9/1/2012
    bus door blue 7 9/1/2012
    car door red 5 9/1/2012
    car door blue 9 9/1/2012
    car wheel red 2 9/2/2012
    car wheel blue 4 9/2/2012
    bus door red 3 9/2/2012
    bus door blue 3 9/2/2012
    car door red 7 9/2/2012
    car door blue 8 9/2/2012

    data sheet on car+wheel+red criteria
    OBJECT1 OBJECT2 OBJECT3
    car wheel red

    OBJECT1 OBJECT2 OBJECT3 size date
    car wheel red 3 9/1/2012
    car wheel red 2 9/2/2012

    data sheet on car+door+red criteria
    OBJECT1 OBJECT2 OBJECT3
    car door red

    OBJECT1 OBJECT2 OBJECT3 size date
    car door red 5 9/1/2012
    car door red 7 9/2/2012

    data sheet on bus+door+red criteria
    OBJECT1 OBJECT2 OBJECT3
    bus door red

    OBJECT1 OBJECT2 OBJECT3 size date
    bus door red 2 9/1/2012
    bus door red 3 9/2/2012


    Regards.
    Fred
    Attached Files Attached Files

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: extract rows from sheet based on multiple criteria

    In D2 of your filter sheets
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then in A5 Drag Across to E5, then Down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You could get the results you need with only one sheet if you use dropdown lists in A2:C2

    See this workbook
    Attached Files Attached Files
    Last edited by Marcol; 10-24-2012 at 04:51 AM. Reason: Added Attachment
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    10-24-2012
    Location
    France
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: extract rows from sheet based on multiple criteria

    Hello,

    first, thank you Marcol for your answer ! This is why i know i'm a total newbie in excel, i don't even understand - yet i hope - your formula !! but it will come.
    But in fact, this was only a part of my problem, because in fact i have to make graphs of each "combination" of criteria. this is why i putit in different sheets and moreover i have to make a synthesis on the first page with average on all the values of a combination.. i'm not sure i'm clear because it's quite tricky to explain.

    The synthesis would show the average of the month (different from each sheet showing the values day by day with a graph).
    And due to the fact that the criteria combination won't produce the same number of rows i could not manage to make a proper graph with all the rows... or without the empty point.
    Hope i was clear... but i go back to try to understand your solution, and see if i can manage to adapt it...

    Fred

  4. #4
    Registered User
    Join Date
    10-24-2012
    Location
    France
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: extract rows from sheet based on multiple criteria

    Hello,

    first of all thank you for your answer again, and sorry for the late answer of mine.
    Ok i did not really managed to understand your solution, but managed to used it as if in my environment, just changing the ranges.. So again thank you, it has avoided me a lot of work and headache ... excel is definitely not my par, but i realised you can do powerfull things whne you are a master of it !

    Fred

+ 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