+ Reply to Thread
Results 1 to 7 of 7

Extract values based if conditions met

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

    Extract values based if conditions met

    Looking for formula to extract values from H3:T19 into J23:T26 if conditions i21 (Apple) and I23:26 are met. Sample file attached.

    Thanks.
    Attached Files Attached Files
    Last edited by bjnockle; 08-05-2017 at 10:20 AM.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Extract values based if conditions met

    j23=LOOKUP(2,1/(($I$4:$I$19=$I$21)*($H$4:$H$19=$I23)),J$4:J$19)
    Please Login or Register  to view this content.
    Try this and copy across
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Extract values based if conditions met

    In J23

    =INDEX($J$4:$T$19,MATCH($I23&$I$21,$H$4:$H$19&$I$4:$I$19,0),MATCH(J$22,$J$3:$T$3,0))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Copy across and down

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

    Re: Extract values based if conditions met

    your manualy result don't match Always the criteria apple east is 53%.

    With power query to rearange the data.

    After that a pivot table.

    See the attached file (in sheet Oeldere).
    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.

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

    Re: Extract values based if conditions met

    nflsales: works like a charm. Thanks nflsales.

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

    Re: Extract values based if conditions met

    JohnTopley: your approach works great, JohnTopley. Thanks friend.

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

    Re: Extract values based if conditions met

    oeldere: love the Pivot table approach. Thanks alot friend.

+ 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. Extract values if two (2) conditions met
    By bjnockle in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-20-2017, 03:52 AM
  2. [SOLVED] Extract values in a range if conditions met
    By bjnockle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-11-2017, 10:13 PM
  3. VBA to extract results based on two conditions
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-04-2011, 03:24 PM
  4. VBA to extract records based on two conditions
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 10-27-2011, 06:27 PM
  5. extract rows based on many different conditions
    By jhc8255 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-13-2010, 10:02 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