+ Reply to Thread
Results 1 to 3 of 3

Extract values in a range if conditions met

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

    Extract values in a range if conditions met

    Looking for a formula to extract values in A2:A20 in Poducts Sheet if an option is selected in B1 dropdown option in Outcome sheet. B1 option is based on Region I and Region II values in D2:D20 and E2:E20 of Products sheet.

    For example, if B1= East (Outcome sheet), extract values should be
    Please Login or Register  to view this content.
    Sample file attached
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-09-2017
    Location
    somewhre
    MS-Off Ver
    2010
    Posts
    5

    Re: Extract values in a range if conditions met

    Put in A4 on Sheet Outcome and copied down until blanks results

    =IFERROR(IFERROR(INDEX(Products!$A$2:$A$20;AGGREGATE(15;6;(ROW(Products!$D$2:$D$20)-MIN(ROW(Products!$D$2:$D$20))+1)/(Products!$D$2:$D$20=$B$1);ROW(A1)));INDEX(Products!$A$2:$A$20;AGGREGATE(15;6;(ROW(Products!$D$2:$D$20)-MIN(ROW(Products!$D$2:$D$20))+1)/(Products!$E$2:$E$20=$B$1);ROWS(A1:$A$1)-COUNTIF(Products!$D$2:$D$20;$B$1))));"")
    Attached Files Attached Files

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Extract values in a range if conditions met

    Hi,

    Does the attached help.

    I've added a helper column to your data and used a Pivot Table. Make a selection in the yellow Data Validation cell.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Replies: 11
    Last Post: 10-27-2016, 07:33 PM
  2. [SOLVED] Extract all values in a range
    By bjnockle in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 08-28-2016, 01:52 PM
  3. How to find and extract values in a range
    By Even in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-12-2012, 05:16 AM
  4. Macro Loop to Extract Specific Values and Min/Max Values From Column/Rows Range
    By ExcelQuestFL in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-19-2010, 09:19 AM
  5. [SOLVED] Formula to Extract Values within a Range
    By prkhan56 in forum Excel General
    Replies: 3
    Last Post: 07-21-2005, 02:05 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