+ Reply to Thread
Results 1 to 7 of 7

Lowest number of corresponding category that is part of a group

  1. #1
    Registered User
    Join Date
    03-07-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Lowest number of corresponding category that is part of a group

    I have a category. Let's call it fruits. The category fruits includes: bananas, apples, oranges, grapes.

    In a separate sheet, I have a list of text cells with corresponding values. Example:


    C5____D5____E5_____F5___G5______H5
    Apples__3____Steak___2___Oranges__4

    So, Apples corresponds with 3
    Steak corresponds with 2
    Oranges corresponds with 4


    I want to take the lowest value of a fruit. Since steak is not a fruit, the return I want is "3." Any ideas?


    Thank you very much!

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Lowest number of corresponding category that is part of a group

    to do this you need to have a list of what is fruit, and what is not.. could you attach a copy of the workbook you are working with?
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    03-07-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Lowest number of corresponding category that is part of a group

    Everything on my workbook is confidential, but attached is an example.

    Thanks again!
    Attached Files Attached Files

  4. #4
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Lowest number of corresponding category that is part of a group

    Try this array formula (confirm with Ctrl+Shift+Enter)

    note the offset in the E:M range and the F:N range

    =MIN(IF(E3:M3=A$2:A$6,F3:N3,9^9))

  5. #5
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Lowest number of corresponding category that is part of a group

    Duplicate post, please delete

  6. #6
    Registered User
    Join Date
    03-07-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Lowest number of corresponding category that is part of a group

    That worked. Thanks a ton!

    One more issue. I want to also return the maximum value, and some of the cells are blank (they have =""). When I change from MIN to MAX, I am not receiving the right answer (it is returning something like 24324329). How do I fix this?

    Also, what is the purpose of the 9^9 as opposed to just leaving that blank?


    Thanks again. New file attached to show example.
    Attached Files Attached Files

  7. #7
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Lowest number of corresponding category that is part of a group

    you would need to cahnge the 9^9 to a 0 to get max, what that does is make it so when ever this is not a match in the min formula it will return a very high number, you could just leave that blank. the max formula should also work if it is blank.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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