+ Reply to Thread
Results 1 to 6 of 6

Min with conditions

  1. #1
    Registered User
    Join Date
    10-20-2010
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    30

    Min with conditions

    Hello

    thanks for all effort put in the forum success as usual also by my side.

    I'm trying to understand whether possible to put in single formula this check. Basically I've got one table with several info of a product. I'd like to check that I've selected the correct Product Code where correct means the one with lowest Int.Rate between all of them, because one product can have multiple int.rate associated with it.

    Of course I have not been able to upload a pic but i'm going straight with an easy excel example that i've created. Thanks for help
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Min with conditions

    perhaps this array formula ... =MIN(IF((E7:E10=H7)*(C7:C10=G7),D7:D10)) activated by ctrl/shift/enter, adjust ranges to suit your ranges and lock cells as needed.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    10-20-2010
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Min with conditions

    well, nice to reply on a message after thousands of hours
    i put the problem a little bit aside and forgot about reply to you but i came back .

    actually i would argue couple of points:
    - what if i'd like to get reported the product name and not the int rate ?
    - what if i'd like to get fully checked that the product i'm reporting is really the only one for a given (a) product list (b) channel ? (this is a new question and change the dataset too

    I'm attaching a new excel ,
    thanks as usual for your deep support
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Min with conditions

    I think you need to explain a bit further, what is the product name, there isn't a column called product name. it can be done with a match/index function
    https://exceljet.net/formula/index-a...tiple-criteria

    how many occurrences of a combination occur
    https://exceljet.net/formula/count-u...-with-criteria

    You should give us an example with what is the desired result, in your example all rows are unique

  5. #5
    Registered User
    Join Date
    10-20-2010
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Min with conditions

    hello to whom replied

    ponit 1, it is true thta we can manage with another index/match but actually i wanted to get the min function together with then the index/match since i wanted to see the result of the min(if) with the Product code rather then min Int.Rate

    accordinng with point 2 , thank you , I've modified last row of table 1. basically i would like to test then:
    - i'm taking product code with lowest int rate
    - i'm veryfing that i'm taking the only one existing and if not then i should see both product code

    *apologies, in previous message when i was talking about product name i referred to product code
    Attached Files Attached Files

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Min with conditions

    Please try at H7 Press Ctrl+Shift+Enter copy to I7 and copy down

    =IFERROR(INDEX($D:$E,SMALL(IF($D$7:$D$19=MIN(IF($A$7:$A$19=$G$7,$D$7:$D$19)),ROW($D$7:$D$19)),ROWS(H$7:H7)),3-COLUMNS($H7:H7)),"")

+ 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] Help combining macros to delete rows on conditions and add data into cells on conditions
    By JayJayGC in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-03-2017, 10:14 AM
  2. [SOLVED] Advanced Filter Between Two Columns all OR conditions (4 conditions)
    By nobodyukno in forum Excel General
    Replies: 2
    Last Post: 02-16-2017, 01:13 PM
  3. Replies: 2
    Last Post: 01-14-2016, 03:53 PM
  4. Replies: 6
    Last Post: 04-30-2015, 09:10 AM
  5. [SOLVED] Vlookup - Country conditions (Multiple conditions)
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-26-2013, 11:42 AM
  6. [SOLVED] Text results with two conditions (lookup with two conditions)
    By Davzx in forum Excel General
    Replies: 8
    Last Post: 05-25-2012, 03:08 AM
  7. [SOLVED] How to multiple conditions to validate more than 2 conditions to .
    By Bhuvana Govind in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-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