+ Reply to Thread
Results 1 to 6 of 6

Lookup-and-return-multiple-values(Result:Ascending)

  1. #1
    Forum Contributor
    Join Date
    09-18-2015
    Location
    Republic of Korea
    MS-Off Ver
    2010
    Posts
    314

    Lookup-and-return-multiple-values(Result:Ascending)

    Lookup-and-return-multiple-values(Result:Ascending)
    Snap6.jpg
    Attached Files Attached Files
    Last edited by chief_abound; 08-04-2016 at 04:13 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Lookup-and-return-multiple-values(Result:Ascending)

    I was about to moan about the lack of a sheet. However, you've fixed that!!
    For the country:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For the item:

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


    Both are array formulae. Array Formulae are a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: Lookup-and-return-multiple-values(Result:Ascending)

    Try this...

    Data Range
    G
    H
    4
    Sort order :
    Items :
    5
    2
    C
    6
    2
    I
    7
    12
    A
    8
    15
    D
    9
    18
    H
    10


    This array formula** entered in G5:

    =IFERROR(SMALL(IF(A$2:A$9=H$2,B$2:B$9),ROWS(G$5:G5)),"")

    This array formula** entered in H5:

    =IF(G5="","",INDEX(C:C,SMALL(IF((A$2:A$9=H$2)*(B$2:B$9=G5),ROW(B$2:B$9)),COUNTIF(G$5:G5,G5))))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Select G5:H5 and copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Contributor
    Join Date
    09-18-2015
    Location
    Republic of Korea
    MS-Off Ver
    2010
    Posts
    314

    Re: Lookup-and-return-multiple-values(Result:Ascending)

    Hi! Glenn Kennedy

    As my computer had some problem ,file was not attached properly , Sorry for
    causing you inconvenience. Anyway, Thank you so much for good answers.

  5. #5
    Forum Contributor
    Join Date
    09-18-2015
    Location
    Republic of Korea
    MS-Off Ver
    2010
    Posts
    314

    Re: Lookup-and-return-multiple-values(Result:Ascending)

    Hi! Tony Valko

    I am really amazed with your answers every time, your answers improved my study a lot. Thank you so much!

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

    Re: Lookup-and-return-multiple-values(Result:Ascending)

    You're welcome. Thanks for the feedback!

+ 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. lookup multiple values in multiple columns to return a result
    By AYAHOO123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-11-2013, 07:53 PM
  2. Lookup and return ascending values
    By kborgers in forum Excel General
    Replies: 9
    Last Post: 02-04-2010, 12:49 PM
  3. Lookup multiple conditions to return one result
    By cchrisj in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-28-2009, 03:52 PM
  4. Replies: 3
    Last Post: 10-23-2008, 04:01 PM
  5. Replies: 3
    Last Post: 10-10-2008, 07:21 AM
  6. Lookup multiple criteria in different tabs to return result
    By Nadir Soofi in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-06-2008, 06:28 PM
  7. Return Values Based On Lookup Result
    By akbar in forum Excel General
    Replies: 2
    Last Post: 02-06-2008, 05:55 AM

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