+ Reply to Thread
Results 1 to 18 of 18

Formula to return supplier names that meet certain criteria

  1. #1
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Formula to return supplier names that meet certain criteria

    Morning all,

    I'm trying to develop a tool for use by customers to ascertain which suppliers can provide services in their area(s) based on criteria they select. I'm using 'advanced filters' to extract the relevant data. From that I need to produce a list of suppliers that can fulfill all of the criteria (advanced filters return each criteria match, not as a package as a whole).

    The attached example hopefully demonstrates what I'm looking to achieve.

    Thanks in advance,

    Snook
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Formula to return supplier names that meet certain criteria

    Hi Snook

    in your file, wy does supplier 1 not match all criteria ?


    cheers
    Leo

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula to return supplier names that meet certain criteria

    g5=IFERROR(INDEX(Data!B:B,SMALL(INDEX((COUNTIFS($B$5:$B$6,Data!$B$3:$B$92,$C$5:$C$6,Data!$E$3:$E$92,$D$5:$D$6,Data!$D$3:$D$92,$E$5:$E$6,Data!$F$3:$F$92)<>1)*10^10+ROW(Data!$B$3:$B$92),0),ROWS($G$5:$G5))),"")
    Please Login or Register  to view this content.
    Try this and copy across
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Formula to return supplier names that meet certain criteria

    My formula is not as impressive as the one created by @nflsales
    But this may also work for you

    I assume your filtered data is being pasted to a separate worksheet
    So you could add this formula in column F
    =COUNTIF(B:B,B2)

    sort the data by supplier (in case more than one)
    and then filter the data based on the count
    resulting in priced list of services by supplier


    Like this:

    a unfiltered.jpg

    A filtered.jpg
    Last edited by kev_; 07-27-2017 at 07:48 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  5. #5
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Formula to return supplier names that meet certain criteria

    Thanks all, I don't think I'm too far off now.

    I've updated the attached (nflsales thanks for that very impressive formula!) and now I just need a formula for column O
    to generate the supplier list (@ kev_ A a filtered list isn't a desirable solution. I need to produce something where the customer completes the 'selector' area and the
    supplier list is generated based on that, i.e. dummy proof).

    I don't think the customers will see the results area in the final product (because it contains info for suppliers
    that don't meet all the criteria).

    Cheers,

    Snook
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Formula to return supplier names that meet certain criteria

    Quote Originally Posted by LeoTaxi View Post
    Hi Snook

    in your file, wy does supplier 1 not match all criteria ?


    cheers
    Leo
    Hi Leo,

    If you look at the 'data' tab on row 14 supplier 1 doesn't meet the 'Y/N' criteria.

    Regards,

    Snook

  7. #7
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Formula to return supplier names that meet certain criteria

    I think you wants all supplier3 from data sheet to tool sheet.
    Criteria in "O4" as "supplier 3"
    In "G5"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Array formula hence shift+ctrl+enter
    copy paste across.
    Refer attach file.
    Attached Files Attached Files


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  8. #8
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Formula to return supplier names that meet certain criteria

    Hi avk,

    Thanks for your solution but I'm afraid you've misunderstood my query. What I'm looking to achieve is to list all the suppliers in cell O4 and below that meet all the criteria listed in B5:E9. In the example I gave this would only apply to 'supplier 3'. I'm not looking to list all the data against a certain supplier which is what I think you have provided me with?

    Regards,

    Snook

  9. #9
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Formula to return supplier names that meet certain criteria

    =Hi Leo,

    If you look at the 'data' tab on row 14 supplier 1 doesn't meet the 'Y/N' criteria.
    i see match in row 4,
    so what do i miss ?

    Kind regards
    Leo
    Last edited by LeoTaxi; 07-27-2017 at 08:49 PM.

  10. #10
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula to return supplier names that meet certain criteria

    g5
    Please Login or Register  to view this content.
    Try this and copy across

  11. #11
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Formula to return supplier names that meet certain criteria

    Morning all,

    Apologies for the confusion I clearly didn't explain my requirement sufficiently.

    I think I've solved the issue around returning the supplier list, I managed to find a similar query and adapted it to my situation. I'd be grateful if someone
    could sanity check it though (cells P4 to P9).

    The final piece of the puzzle is to extract the lines for the supplier(s) that can fully undertake the requirement, i.e. meet all the criteria and place them into a
    results table.

    I've amended the attached spreadsheet to hopefully make it a bit clearer as to what I'm trying to achieve.

    NB - The structure has changed so any cell references in previous posts will be slightly out of sync.

    Thanks to everyone that has helped me so far, it's really appreciated!

    Snook
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Formula to return supplier names that meet certain criteria

    With code after button

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Attached Files Attached Files

  13. #13
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Formula to return supplier names that meet certain criteria

    Quote Originally Posted by The_Snook View Post
    Morning all,

    Apologies for the confusion I clearly didn't explain my requirement sufficiently.

    Snook
    is post no 10 not working??

  14. #14
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Formula to return supplier names that meet certain criteria

    Hi nflsales,

    Apologies I missed your post. I've just tried it and it doesn't appear to do what I need (your original post does though, #3). This is because you are using the 'Supplier(s)' column as the source of one of your inputs when the data in this column will be variable based on the data contained in the 'Results' table (effectively creating a circular reference). If you take a look at the latest version I have uploaded (v3) you will see how your original formula works (in the 'Matches' table) and the supplier column (P) based on it.

    The data flow should work as follows:

    1. The customer selects the various work (criteria) that it needs undertaking in the 'Selector' table.
    2. The 'Matches' table then identifies all the instances in which those criteria are met by the various suppliers.
    3. The 'Supplier(s)' column then identifies which suppliers can undertake the whole requirement, i.e. meets all the criteria.
    4. The 'Results' table then uses the suppliers identified in the 'Supplier(s)' column to extract the relevant rows from the 'Matches' table. The 'Results' table should only show the prices of those suppliers that can undertake the whole requirement.

    I hope this makes sense?

    Thanks for your patience, all this is mashing my head!

    Snook

  15. #15
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Formula to return supplier names that meet certain criteria

    Hi Leo,

    Thanks for this it works perfectly. However, is it possible to achieve the same outcome without the use of VBA? The problem I've got is that this tool will be used by our external customers and I suspect I'll be bombarded with queries when they can't get it to work on their computer (I've been down that road before and it's not good times! )

    Snook

  16. #16
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Formula to return supplier names that meet certain criteria

    Me not very good with formulas so this 1 with a few helper columns
    starting from column Y
    maybe 1 of the specialists can reduce the helper columns


    Kind regards
    Leo
    Attached Files Attached Files

  17. #17
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Formula to return supplier names that meet certain criteria

    With small update for Column P


    Kind regards
    Leo
    Attached Files Attached Files
    Last edited by LeoTaxi; 07-29-2017 at 03:29 AM.

  18. #18
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Formula to return supplier names that meet certain criteria

    Morning all,

    Apologies for the delayed response I've been on leave.

    For completeness I'm there now and have uploaded the final workbook.

    LeoTaxi - Thanks for your solution. I knew there must've been a way to do it without the need for the helper cells so I've been reading various articles and I eventually managed to solve it.

    Thanks for everyone's assistance, as always it's massively appreciated.

    Snook
    Attached Files Attached Files

+ 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] Get Names that meet multi criteria
    By alipezu in forum Excel General
    Replies: 7
    Last Post: 11-28-2017, 01:31 AM
  2. [SOLVED] Need to count repeated names only once that meet multiple criteria
    By steeler11111 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 12-10-2015, 12:20 PM
  3. Make a list of names from a roster that meet a certain criteria
    By robertwclark in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-08-2014, 02:09 AM
  4. [SOLVED] Need help Pulling Names that meet criteria
    By knockem in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-02-2014, 02:59 PM
  5. [SOLVED] formula to return yes if 2 columns meet criteria, and date from master row
    By annazet in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-08-2013, 07:49 AM
  6. [SOLVED] Array Formula to Lookup and Return All Rows in Table that Meet Single Criteria
    By Torkel74 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2013, 10:41 PM
  7. return worksheet names that do not meet criteria
    By kmfdm515 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-21-2008, 08:44 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