+ Reply to Thread
Results 1 to 16 of 16

Regarding getting the smallest value into a specific item.

  1. #1
    Registered User
    Join Date
    05-29-2014
    Posts
    2

    Regarding getting the smallest value into a specific item.

    Good day! I'm having a hard time thinking for this formula. I tried to make an aggregate formula for this and also tried SMALL + VLOOKUP formula. Please see attached file for the full description. Thank you so much! :D
    Attached Images Attached Images

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,369

    Re: Regarding getting the smallest value into a specific item.

    =MIN(IF(A2:A6="Apple",B2:B6))

    Array Formula, you need to press CTRL-SHIFT-ENTER button together, not ENTER alone

    Thanks

  3. #3
    Registered User
    Join Date
    05-29-2014
    Posts
    2

    Re: Regarding getting the smallest value into a specific item.

    Thanks very much Azumi! But can we add INDEX function to it so that we don't have to press CTRL + SHIFT + ENTER? :D

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,369

    Re: Regarding getting the smallest value into a specific item.

    Maybe, but not found it yet

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Regarding getting the smallest value into a specific item.

    like this?
    can't remember where i got it. thanks to who ever she/he was.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Regarding getting the smallest value into a specific item.

    Hi,

    What version of Excel are you using?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  7. #7
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,369

    Re: Regarding getting the smallest value into a specific item.

    Quote Originally Posted by vlady View Post
    like this?
    can't remember where i got it. thanks to who ever she/he was.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Nice and rare formula vlady.... cheers

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Regarding getting the smallest value into a specific item.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Regarding getting the smallest value into a specific item.

    Quote Originally Posted by humdingaling View Post
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    For a start, that needs to be array-entered. Secondly, and more importantly, it simply doesn't work (unless all the entries in A2:A6 are Apple!).

    Regards

  10. #10
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Regarding getting the smallest value into a specific item.

    i got the right answer by accident

    i have no idea why it worked on my sheet until i tried it on a different row than row 5

  11. #11
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Regarding getting the smallest value into a specific item.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    tested to work for this specific example
    Attached Files Attached Files
    Last edited by humdingaling; 05-30-2014 at 03:09 AM.

  12. #12
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Regarding getting the smallest value into a specific item.

    Quote Originally Posted by humdingaling View Post
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    tested to work for this specific example
    That's better! And the D-functions are sadly often underused in Excel.

    Regards

  13. #13
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Regarding getting the smallest value into a specific item.

    Quote Originally Posted by azumi View Post
    Nice and rare formula vlady.... cheers
    But doesn't it fail if there is a negative value in the range which isn't associated with "Apple"?

    Regards

  14. #14
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Regarding getting the smallest value into a specific item.

    Thanks

    Dmin continues to work in the case of negatives

    only "thing" with the D functions is the need to use headers

  15. #15
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Regarding getting the smallest value into a specific item.

    Another one.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  16. #16
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Regarding getting the smallest value into a specific item.

    If you're using Excel 2010 or later...

    Data Range
    A
    B
    C
    D
    E
    1
    Fruit
    Sales
    ------
    Fruit
    Min Sales
    2
    Apple
    120
    Apple
    100
    3
    Banana
    80
    4
    Apple
    180
    5
    Apple
    100
    6
    Banana
    170


    =AGGREGATE(15,6,B2:B6/(A2:A6=D2),1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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: 2
    Last Post: 08-02-2013, 08:04 AM
  2. Adding smallest value + second smallest value until exceeding a specific value
    By ployo60 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2012, 07:25 AM
  3. Replies: 9
    Last Post: 05-22-2011, 09:26 AM
  4. Count Specific Item in Specific Row
    By RayH in forum Excel General
    Replies: 9
    Last Post: 07-23-2006, 02:55 PM
  5. how to count specific item???
    By Jeff32 in forum Excel General
    Replies: 2
    Last Post: 05-07-2006, 12:45 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