+ Reply to Thread
Results 1 to 4 of 4

Excel minimum value within range if if meets criteria + is not found within a range

  1. #1
    Registered User
    Join Date
    02-18-2018
    Location
    Nederland, Netherlands
    MS-Off Ver
    365
    Posts
    19

    Excel minimum value within range if if meets criteria + is not found within a range

    Hello everyone,

    I am trying to extract data from a data set based on ID numbers. In my example, I have sold a number of various products (apple's, banana's, etc), please refer to the attached excel document.

    I want to extract each sale of apple's based on their ID number, and in order to achieve that I am using this formula:
    =MINIFS($B$3:$B$12;$C$3:$C$12;$J$2;$B$3:$B$12;"<>"&$I$4:I5)

    The problem is that excel for some reason does not recognise the ["<>"&$I$4:I5] part.
    This part makes excel check whether the ID number has been used before, and if so it should take the next minimum value (which is the next ID number of any apple sale).

    For some reason, Excel gives me a 0 instead of the value that I want it to show me, and I can't figure out how to fix this.

    Can someone help me out here? that would be great.

    Kind regards,



    PS: I hope my file got uploaded, had some issues with that in the past.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,783

    Re: Excel minimum value within range if if meets criteria + is not found within a range

    B
    C
    D
    E
    F
    G
    2
    ID Sold Name Name apple
    3
    1
    100
    Apple ID Sold
    4
    2
    80
    Banana
    1
    100
    5
    3
    50
    Orange
    4
    10
    6
    4
    10
    Apple
    5
    80
    7
    5
    80
    Apple
    9
    80
    8
    6
    90
    Orange
    10
    60
    9
    7
    100
    Banana
    10
    8
    20
    Orange
    11
    9
    80
    Apple
    12
    10
    60
    Apple



    F4=IFERROR(INDEX(B$3:B$100,AGGREGATE(15,6,ROW(B$3:B$100)-ROW(B$3)+1/($D$3:$D$100=$G$2),ROWS($B$3:B3))),"")

    copy across and down

    For other fruit, type the name in G2





    Copy across

  3. #3
    Registered User
    Join Date
    02-18-2018
    Location
    Nederland, Netherlands
    MS-Off Ver
    365
    Posts
    19

    Re: Excel minimum value within range if if meets criteria + is not found within a range

    Quote Originally Posted by CARACALLA View Post
    B
    C
    D
    E
    F
    G
    2
    ID Sold Name Name apple
    3
    1
    100
    Apple ID Sold
    4
    2
    80
    Banana
    1
    100
    5
    3
    50
    Orange
    4
    10
    6
    4
    10
    Apple
    5
    80
    7
    5
    80
    Apple
    9
    80
    8
    6
    90
    Orange
    10
    60
    9
    7
    100
    Banana
    10
    8
    20
    Orange
    11
    9
    80
    Apple
    12
    10
    60
    Apple



    F4=IFERROR(INDEX(B$3:B$100,AGGREGATE(15,6,ROW(B$3:B$100)-ROW(B$3)+1/($D$3:$D$100=$G$2),ROWS($B$3:B3))),"")

    copy across and down

    For other fruit, type the name in G2





    Copy across
    Thank you for your asnwer Caracalla,

    Unfortunately your formula seems to return an error to me (the ;"" part of the IFERROR formula).
    Since I do not understand what you are trying to do with this formula I cannot tell you why it doesn't work. Could you explain to me what you were trying to do or meaby give me a different formula to work with?

    Kind regards,

  4. #4
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,783

    Re: Excel minimum value within range if if meets criteria + is not found within a range

    Attached file
    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. Replies: 10
    Last Post: 11-04-2015, 05:19 AM
  2. Highest Value in a range that meets criteria
    By HalPlz in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-29-2015, 07:51 PM
  3. MAX (IF) to be used like SUMIF. Need max of a range that meets criteria.
    By catsmith in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-05-2013, 11:35 PM
  4. [SOLVED] Count a range of cells if another range meets criteria
    By LadySetsuka in forum Excel General
    Replies: 8
    Last Post: 04-14-2012, 10:09 AM
  5. [SOLVED] Delete a range that meets certain criteria
    By sans in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-11-2012, 06:09 PM
  6. Return a range of cells that meets a criteria
    By bgallagher1 in forum Excel General
    Replies: 3
    Last Post: 08-14-2010, 04:33 AM
  7. Return a range that meets a specific criteria
    By Brenda Blanchard in forum Excel General
    Replies: 5
    Last Post: 03-26-2009, 11:54 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