+ Reply to Thread
Results 1 to 13 of 13

Return Multiple records

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    16

    Return Multiple records

    I am trying to lookup data from a list and return multiple records. I cannot use row or column funtion as the tool will not allow.
    any ideas appreciated.
    I have tried something similar to this but its not working =INDEX(C$2:C$102,SMALL(IF($A$2:$A$102=$G$3,$K7-$K$7+1),$K7))

    the attached excel has the data set. The attached picture has also a sample data that I need formula for.

    Any help is appreacited
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Return Multiple records

    Just with an filter on column A.

    See the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Return Multiple records

    The long way: match rank index

    Attachment 259721

  4. #4
    Registered User
    Join Date
    08-21-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Return Multiple records

    Thank you so much @ daffodil for the formula. This is exactly what I was looking for. Is this possible without using countif function. the tool I use uses excel as its backend and it doesnt support few fuctions and one of them is countif also.

    thanks again for your help !!!1
    Last edited by raoushan; 08-22-2013 at 10:35 AM.

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Return Multiple records

    Can it do normal Count instead?

  6. #6
    Registered User
    Join Date
    08-21-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Return Multiple records

    Yes it can

  7. #7
    Registered User
    Join Date
    08-21-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Return Multiple records

    I take it back. Apologies replied too soon. The tool does support countif but does not support array formulas/CSE-formulas. any work around for that ?

  8. #8
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Return Multiple records

    Then just change E2 to:

    =IF(OR(A2="A",A2="B"),COUNT(IF($A$2:$A$56=A2,1))-((SUMPRODUCT(($A$2:$A$56=A2)*($B$2:$B$56>B2))+1)+COUNTIFS($B2:B$2,B2,$A2:$A$2,A2)-1)+1,"")

    and enter as an array with Ctrl+Shift+Enter and copy it down as far as needed.

  9. #9
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Return Multiple records

    Ruh roh. I will consider nonarray possibilities.

  10. #10
    Registered User
    Join Date
    08-21-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Return Multiple records

    thank you so much and I am really very sorry. I have attached a screen shot of the excel functions it supports.
    Attached Images Attached Images

  11. #11
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Return Multiple records

    I got it.

    I turned E into a match if meeting Dynamic Selection.

    I turned F into Rank-Countif for unique ranks

    and changed the formulas in the results to pull from F instead of E.

    Hurray!

    Attachment 259910

  12. #12
    Registered User
    Join Date
    08-21-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Return Multiple records

    Thanks you so much. You have solved it !!!! One last thing can i do the same with 2 criteria ?? I have tried doing it but am stuck in middle. Please see the attached

    thanks so much again !!!!
    Attached Files Attached Files

  13. #13
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Return Multiple records

    You did everything perfect, the formula in I7 just needs to change to:

    =COUNTIFS(A2:A17,J3,B2:B17,K3)

+ 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. Combox to return unique value from a list with Multiple records
    By alex_shin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2013, 06:24 AM
  2. Return list of multiple records with duplicates
    By SoniaSonia in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-23-2013, 03:21 PM
  3. CopyFromRecordset does return only 1000 records while recordset have 4000 records
    By KRUSHNAT in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 10-05-2012, 05:47 PM
  4. One criteria - return multiple records
    By gelandl in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-23-2009, 06:10 AM
  5. [SOLVED] return multiple records matching multiple criteria
    By Karthik in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-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