+ Reply to Thread
Results 1 to 3 of 3

Return 1st, 2nd, 3rd, etc value based on criteria

  1. #1
    Registered User
    Join Date
    07-25-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    6

    Return 1st, 2nd, 3rd, etc value based on criteria

    I want to pull all rows of data based on a certain lookup criteria. I can get it to pull all rows of data but it is ignoring the criteria I have set.

    On the attached spreadsheet in column A, B, C, and D, starting at row 9, I want it to pull only the records associated with the PT ID in cell A2. I intend to copy this down for 10 total row and also wanted to include the ISERROR function in the formula so they appear blank if there are less than 10.

    The current formula I am using is an array:=INDEX(Claim_DateCol,SMALL(IF(Table1!A$3:A$5=$A$3,ROW(Table1!A3:A5)),COUNTIF(Table1!A$2:A2,Table1!A2)))
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Return 1st, 2nd, 3rd, etc value based on criteria

    Some of the ID numbers in Table sheet are text formatted and some numeric which makes things a little trickier but this formula should accommodate that......in A9

    =IFERROR(INDEX(Table1!L$3:L$5,SMALL(IF(Table1!$A$3:$A$5&""=$A$3&"",ROW(Table1!$A$3:$A$5)-ROW(Table1!$A$3)+1),ROWS(A$9:A9))),"")

    confirmed with CTRL+SHIFT+ENTER and copied across and down to D11
    Audere est facere

  3. #3
    Registered User
    Join Date
    07-25-2011
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Return 1st, 2nd, 3rd, etc value based on criteria

    Perfect, thanks for the quick help

+ 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