+ Reply to Thread
Results 1 to 9 of 9

advanced and complex "fuzzy" filter on multiple criteria

  1. #1
    Registered User
    Join Date
    04-28-2016
    Location
    Paris
    MS-Off Ver
    2010
    Posts
    20

    advanced and complex "fuzzy" filter on multiple criteria

    Hi Excel Guru's

    I do not know how to get following problem solved by using the exact xls formula:

    We have customers which can configure their goods. Most configurations are already available, but the customer can request a new configuration of the goods.
    The easiest way for me is to lookup *the most similar existing product* for their configuration.

    And here comes the problem:
    let's say we have a product configured as
    variable 1 = characteristic A
    variable 2 = characteristic B
    variable 3 = characteristic C
    variable 4 = characteristic D

    and another one as
    variable 1 = characteristic E
    variable 2 = characteristic F
    variable 3 = characteristic G
    variable 4 = characteristic H

    and so on.

    When I get a new customer request as
    variable 1 = characteristic E
    variable 2 = characteristic B
    variable 3 = characteristic C
    variable 4 = characteristic D
    and I start filtering the usual way on eg variable 1 = E, then it looks as if the other characteristics are not available, only F, G, H.
    But I want to find the closest available product configuration to the new need of a customer (thus A, B, C, D).

    So how can a filter in xls be defined which does this?

    Ebru

  2. #2
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: advanced and complex "fuzzy" filter on multiple criteria

    Hi -

    Can you provide a small spreadsheet with some sample data and an example or two of the outcomes you want?
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  3. #3
    Registered User
    Join Date
    04-28-2016
    Location
    Paris
    MS-Off Ver
    2010
    Posts
    20

    Re: advanced and complex "fuzzy" filter on multiple criteria

    An attached was made -I think it must be a formula with correlation I guess now.

    In the example below you see the "new requirement" (with 5 specifications)
    below you see the configuration of the already ordered material.
    I want to see that the "produced product 1" is the closest to the "new requirement".
    This allows me to identify the proven production process which is closest to the new requirement.

    When I filter on E for variable 1, I immediately exclude the 1st line. So Excel must take cells on line B2
    and compare them with the 5 lines below. and indicate the degree of similarity per produced product vs new requirement.

    I really hope someone can help me because this would be so useful on an extremely large dataset.

    Ebru.


    123.jpg

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: advanced and complex "fuzzy" filter on multiple criteria

    Please attach a workbook, not a picture.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: advanced and complex "fuzzy" filter on multiple criteria

    Hi -

    Use SUMPRODUCT to count how many criteria each product matches the specification. Then use INDEX/MATCH functions to list the product with the highest total from the SUMPRODUCT formula (closest to the specification).

    Put this formula in H5 and copy down to H9:

    =SUMPRODUCT((B5:F5=$B$3:$F$3)*1)

    Put this formula in I5:

    =INDEX(A5:A9,MATCH(MAX(H5:H9),H5:H9,0))

    Hope this helps.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: advanced and complex "fuzzy" filter on multiple criteria

    Try array entering this in G2 and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    Then filter on G for the maximum value.


    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    2
    Variable 1 Variable 2 Variable 3 Variable 4 Variable 5
    3
    new requirement
    E
    B
    C
    D
    E
    4
    5
    produced product 1
    A
    B
    C
    D
    E
    4
    Array enter this in G2 and fill down:
    6
    produced product 2
    E
    G
    H
    I
    J
    1
    =SUM(IF(ISNA(MATCH(B5:F5,$B$3:$F$3,0)),0,1))
    7
    produced product 3
    Z
    W
    R
    V
    T
    0
    8
    produced product 4
    P
    L
    M
    N
    F
    0
    9
    produced product 5
    S
    P
    I
    E
    T
    1
    Dave

  7. #7
    Registered User
    Join Date
    04-28-2016
    Location
    Paris
    MS-Off Ver
    2010
    Posts
    20

    Re: advanced and complex "fuzzy" filter on multiple criteria

    Hi there!
    Thanks so much
    I used =SUM(IF(ISNA(MATCH(B5:F5,$B$3:$F$3,0)),0,1)) and it works :-)
    It is a big help, but I think it can be improved.

    This formula looks if the data is in one of the cells in the row is the same in another row.
    But it should be delimited to columns search:
    Sometimes the same specifications re-occur but on another variable. Eg "red color" is used for the tissue
    sometimes for the buttons. The formula above does not detect this.
    So I think this formula should be delimited to one cell of row $B$3:$F$3 and then make the sum of
    all cells in the row to get the most matching produced product.
    Could you provide an example formula for this?

    It would also be very convenient if the cells in the database get a color code for the ones which do not match the formula, then we can
    see straight away were the difference is.
    It is like conditional formatting but trough a formula.

    Your help is already greatly appreciated.

    Ebru

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: advanced and complex "fuzzy" filter on multiple criteria

    But it should be delimited to columns search:
    Does this more closely do that?

    Edit By the way loginjmor's formula produces the same results only it's simpler.



    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    2
    Variable 1 Variable 2 Variable 3 Variable 4 Variable 5
    3
    new requirement
    E
    B
    C
    D
    E
    4
    5
    produced product 1
    A
    B
    C
    D
    E
    4
    Array enter this in G5 and fill down:
    6
    produced product 2
    E
    G
    H
    I
    J
    1
    =SUM(--(INDEX($B$3:$F$3,,N(IF(1,COLUMN($B:$F)-MIN(COLUMN($B:$F))+1)))=INDEX($B5:$F5,,N(IF(1,COLUMN($B:$F)-MIN(COLUMN($B:$F))+1)))))
    7
    produced product 3
    Z
    W
    R
    V
    T
    0
    8
    produced product 4
    P
    L
    M
    N
    F
    0
    9
    produced product 5
    S
    P
    I
    E
    T
    0
    Last edited by FlameRetired; 05-02-2016 at 08:55 PM.

  9. #9
    Registered User
    Join Date
    04-28-2016
    Location
    Paris
    MS-Off Ver
    2010
    Posts
    20

    Re: advanced and complex "fuzzy" filter on multiple criteria

    Thanks! I'll give that a go, It looks so complex!
    I will be so happy when it will do the job!
    Ebru

+ 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. advanced filter criteria "begins with" and "does not begin with"
    By Eddie O in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 12:05 PM
  2. advanced filter criteria "begins with" and "does not begin with"
    By Eddie O in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 06:05 AM
  3. [SOLVED] advanced filter criteria "begins with" and "does not begin with"
    By Eddie O in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 04:05 AM
  4. [SOLVED] advanced filter criteria "begins with" and "does not begin with":how can use all 3 cr
    By raph_baril in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2005, 06:05 PM
  5. "Criteria Range" in the "Data/Filter/Advanced Filter" to select Du
    By TC in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-11-2005, 10:06 PM

Tags for this Thread

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