+ Reply to Thread
Results 1 to 6 of 6

How to do multiple lookup and return multiple values

  1. #1
    Forum Contributor
    Join Date
    05-04-2009
    Location
    ME
    MS-Off Ver
    Excel 2003,2007
    Posts
    157

    How to do multiple lookup and return multiple values

    Hi All,

    I have a spreadsheet which contains two tabs "Loans" and "SO", in Loans tab i need a formula to return multiple values based on the "Emp No" and "Installment".

    Trying to achieve this by using array formula but stuck somehow. Some times there might be minor difference in the Installment and SO values, such cases needs the close values. Eg: Installment = 250.28 corresponding SO value might be 250, in this case 250 should appear.

    appreciate your support to achieve this.


    Thanks & Regards.

    Nawas
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: How to do multiple lookup and return multiple values

    =IFERROR(INDEX(SO!$C:$C,SMALL(IF(SO!$A$2:$A$45=Loans!$A2,ROW(SO!$A$2:$A$45)),COUNTIF(A2:A2,$A2))),"") CSE

  3. #3
    Forum Contributor
    Join Date
    05-04-2009
    Location
    ME
    MS-Off Ver
    Excel 2003,2007
    Posts
    157

    Re: How to do multiple lookup and return multiple values

    Thanks Tim for your quick reply.. but when i tried your formula it didn't work still it is taking first value from SO and not considering based on installment amount.

    I have attached the sheet for your review,if you notice Emp No: 280021103497 having several installments and SO value taking only the first value. In this case should have appear based on the installment amount, eg: installment amount 55.15 then check if exact value is there in SO, if yes then it should take exact value, or any value near to that.

    Hope you understand the scenario.

    Again thank you very much for the efforts..
    Attached Files Attached Files

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

    Re: How to do multiple lookup and return multiple values

    Put this regular formula on D559 and copied down

    =IFERROR(INDEX(SO!$C$2046:$C$2050,AGGREGATE(15,6,(ROW(SO!$C$2046:$C$2050)-MIN(ROW(SO!$C$2046:$C$2050))+1)/(SO!$A$2046:$A$2050=$A559),COUNTIF($A$559:A559,A559))),"")
    Attached Files Attached Files

  5. #5
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: How to do multiple lookup and return multiple values

    =IFERROR(INDEX(SO!$C:$C,SMALL(IF(SO!$A$2:$A$45=Loans!$A2,ROW(SO!$A$2:$A$45)),COUNTIF($A$2:A2,$A2))),"") CSE
    my fall

  6. #6
    Forum Contributor
    Join Date
    05-04-2009
    Location
    ME
    MS-Off Ver
    Excel 2003,2007
    Posts
    157

    Re: How to do multiple lookup and return multiple values

    Thanks azumi and tim for your great work.

    azumi's formula returned in the same order as per the installment amounts. However, tim's formula also works but needs to do a sorting.

    Very much appreciated both of your efforts...

+ 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] LOOKUP value and return multiple values
    By rfcapinto in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-08-2015, 08:03 AM
  2. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  3. [SOLVED] Is it possible to lookup multiple values and return multiple rows of results?
    By justin11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2013, 12:02 PM
  4. 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
  5. Lookup multiple values in multiple columns and return value
    By Mads2600 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-20-2010, 09:57 AM
  6. [SOLVED] Lookup in Multiple Columns, Return Multiple Values
    By andy62 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-05-2006, 09:40 PM
  7. Lookup and return multiple Values
    By Neil in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 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