+ Reply to Thread
Results 1 to 4 of 4

Index, Small, Ifs, Row and Rows to extract values

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Index, Small, Ifs, Row and Rows to extract values

    Looking for index, small, Ifs, Row and Rows to extract values in Product sheet into Outcome Sheet if condition meet. In B2 of Outcome sheet, there is a list of product options. When a product is selected in B2 (Outcome sheet), need formula to extract a match in A2:A20 on Product Sheet. Formula to take into consideration F2:I20 product values.

    Example, B2 (Outcome sheet) = Alicante, Bouschet
    Formula to look into F2:I20 on Product sheet and extract instances of Alicante, Bouschet in A2:A20. See sample formula (not working) - needs tweaking.

    =IF($B$1="","",IFERROR(INDEX(Products!$A$2:$A$20,SMALL(IF((Products!$F$2:$F$20=Outcome!$B$1)*(Products!$G$2:$G$20=Outcome!$B$1)*(Products!$H$2:$H$20=Outcome!$B$1)*(Products!$I$2:$I$20=Outcome!$B$1),ROW(Products!$A$2:$A$20)),ROWS(Outcome!A$4:A4))-ROW(Products!$A$2)+1),""))
    Sample file attached
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,180

    Re: Index, Small, Ifs, Row and Rows to extract values

    Try this ...

    =IF($B$1="","",IFERROR(INDEX(Products!$A:$A,SMALL(IF(ISNUMBER(SEARCH($B$1,Products!$B$2:$B$20)),
    ROW(Products!$B$2:$B$20)),ROWS(Outcome!A$4:A4))),""))

    Enter with Ctrl+Shift+Enter.

  3. #3
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Re: Index, Small, Ifs, Row and Rows to extract values

    Phuocam: Adjusted Products!$A:$A to Products!$A2:$A20 and did not pull the correct product origin. Instead of Products!$A:$A, would like Products!$A:$A to start at Products!$A2:$A20. Please modify.

    Thanks

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

    Re: Index, Small, Ifs, Row and Rows to extract values

    Quote Originally Posted by bjnockle View Post
    Adjusted Products!$A:$A to Products!$A2:$A20 and did not pull the correct product origin. Instead of Products!$A:$A, would like Products!$A:$A to start at Products!$A2:$A20.
    Do not change A:A to A2:A20.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Index, small, if, row llok up multiple values and return a result
    By 077james86 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-28-2015, 02:31 PM
  2. Returning unique values for different INDEX SMALL references
    By whetu in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-23-2014, 08:26 AM
  3. Replies: 9
    Last Post: 08-29-2014, 09:42 PM
  4. [SOLVED] INDEX MATCH and MIN/SMALL to pull first and second smallest values from array
    By tlafferty in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-18-2014, 04:03 AM
  5. Using INDEX SMALL IF ROW to find multiple values
    By rival2031 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-05-2013, 02:28 AM
  6. [SOLVED] Formula using ROWS, COUNTIF, INDEX, and SMALL
    By her.rockstar in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 05-29-2013, 06:18 AM
  7. Using Index & Small to return multiple values
    By BHudPE in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-17-2010, 06:06 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