+ Reply to Thread
Results 1 to 15 of 15

Selecting minimum based on multiple criteria

  1. #1
    Registered User
    Join Date
    11-11-2015
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    20

    Selecting minimum based on multiple criteria

    Hi guys,
    I'm a bit struggling to construct the following

    3PTON-MECK.1 consists of two companies: 29712 and 11301.
    I want to check for the overlap in three digit codes between the two companies.
    If there is overlap, the minimum should be selected. If no overlap, it should be 0.
    As can be derived from the picture: for 3Pton-Meck.1 there is overlap in 541 and 511. There is no overlap in 561 en 323.
    Minimum of 541 is 0.0599. Minimum for 511 is 0.3454. Sum is 0.4054.

    For AA-IXX there is no overlap in any 3 digit code, so outcome should be 0.

    Hope you can help me out with this big problem for me.

    Finger-Kreininv2.png

    https://app.box.com/s/2sncet0a8cp5ubj4npjk42b31jfa2uow
    Last edited by Vend1301; 02-08-2016 at 06:40 PM.

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Selecting minimum based on multiple criteria

    in E1 copy paste below and drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Registered User
    Join Date
    11-11-2015
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Selecting minimum based on multiple criteria

    Quote Originally Posted by hemesh View Post
    in E1 copy paste below and drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hello Hemesh,

    Thank you for your reply!

    The formula only produces 0's unfortunately. The first term of your formula produces namely N.A.'s. In addition, I can't distinguish the factor in your factor that should give excel the order to give the value in column D if 3-digit code is present in both sets of companies within the same (...)-(...).

    Hope we can work this out together!

    Thsnks in advance!

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Selecting minimum based on multiple criteria

    Please post an Excel file so we some data to work with and show expected results

  5. #5
    Registered User
    Join Date
    11-11-2015
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Selecting minimum based on multiple criteria

    ConstructionOverlap.xlsx

    Of course! Hope this works. Thanks!

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Selecting minimum based on multiple criteria

    Hi
    Try these in E2
    =
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Regards

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Selecting minimum based on multiple criteria

    try

    E2 with CRTL+SHIFt+ENTER
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Check the attached file.
    Attached Files Attached Files
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  8. #8
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Selecting minimum based on multiple criteria

    My post did not give full response to the request. Now yes, I suppose
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    11-11-2015
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Selecting minimum based on multiple criteria

    Quote Originally Posted by shukla.ankur281190 View Post
    try

    E2 with CRTL+SHIFt+ENTER
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Check the attached file.
    Hi Shukla,

    Thanks for your effort and quick reply. I think we're almost there!
    However, after a quick check, some values are not correct using this formula.

    See the file attached. Would aprreciate it, if you could take a look at it!

    Is it also possible to construct a formula, (in a seperate column) that only counts these values once, so that it is easy to sum them and get the total?

    Thanks so much!
    Attached Files Attached Files
    Last edited by Vend1301; 02-09-2016 at 10:08 AM.

  10. #10
    Registered User
    Join Date
    11-11-2015
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Selecting minimum based on multiple criteria

    Quote Originally Posted by José Augusto View Post
    My post did not give full response to the request. Now yes, I suppose
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hi Jose,

    Thanks for thinking with me. Although your formula seems to be a lot different from the one Shukla posted, it leads to exactly the same results (and the same errors). Thank you for that!
    I would appreciate it when you could have a look at the irregularities. And d you know a formula that only counts these once? So that it sums up easily.
    Please refer to attached file
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    11-11-2015
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Selecting minimum based on multiple criteria

    Row 50-51 should be green instead of red, I'm sorry.

  12. #12
    Registered User
    Join Date
    11-11-2015
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Selecting minimum based on multiple criteria

    I've grouped the errors.

    It looks like there is only one case that gives errors:

    2 or more of the same 3-digit code is reported for the same company, while this code is not present for the other company.

    See attachment for details.
    Attached Files Attached Files

  13. #13
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Selecting minimum based on multiple criteria

    Hi
    See these in O2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by José Augusto; 02-09-2016 at 01:24 PM.

  14. #14
    Registered User
    Join Date
    11-11-2015
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Selecting minimum based on multiple criteria

    Hi Jose

    I solved it by adjusting the third row to only count once for each company, but this solution is even better!

    Thanks guys for helping me!!

  15. #15
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Selecting minimum based on multiple criteria

    Hi

    I am happy to have helped. Do not forget to mark this thread as solved.

    Regards

+ 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. Selecting a vallue from multiple cells based on a set of criteria
    By kelvinong1967 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-28-2014, 06:36 AM
  2. [SOLVED] Finding minimum and maximum values based on multiple criteria and filtered data
    By jndreece in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-13-2014, 10:42 AM
  3. Replies: 11
    Last Post: 01-02-2013, 10:14 AM
  4. Selecting Data Based on Multiple Criteria
    By davi2188 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-07-2012, 08:43 AM
  5. Replies: 4
    Last Post: 07-09-2010, 06:13 AM
  6. Minimum based on criteria
    By SportsScientist in forum Excel General
    Replies: 3
    Last Post: 07-06-2009, 06:36 AM
  7. find minimum of range based on multiple criteria
    By Weissme in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-21-2006, 12:25 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