+ Reply to Thread
Results 1 to 5 of 5

Index Formula pulling through a list with two or more conditions

  1. #1
    Forum Contributor
    Join Date
    11-07-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    126

    Index Formula pulling through a list with two or more conditions

    Hi all,

    I am using the below formula but, wondered if it could be modified to look for two or more conditions: -

    INDEX('Sheet1'!$B:$B,SMALL(IF('Sheet1''!$G:$G='sheet2'!$Y$2,ROW('sheet1'!$F:$F),""),ROWS('sheet2'!$1:1))),"")

    So where it is looking at row g:g on sheet 1 for a condition, I want it to look for a second condition on sheet 1 before it returns the list.

    Any help would be great,

    thanks,
    Last edited by elleb; 04-30-2018 at 04:33 AM.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Index Formula pulling through a list with two or more conditions

    You can try to use this one modified to you actual data:
    =IFERROR(INDEX($A$3:$A$17, SMALL(IF(ISNUMBER((SEARCH($H$3, $B$3:$D$17))*(SEARCH($H$1, $B$2:$D$2))), ROW($A$3:$A$17)-MIN(ROW($A$3:$A$17))+1, ""), ROW(A1))),"")
    Array entered.

  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,197

    Re: Index Formula pulling through a list with two or more conditions

    Try

    INDEX('Sheet1'!$B:$B,SMALL(IF(('Sheet1''!$G:$G='sheet2'!$Y$2)*('Sheet1''!$H:$H='sheet2'!$Z$2),ROW('sheet1'!$F:$F),""),ROWS('sheet2'!$1:1))),"")

    Highlighted is your second condition: you can add more as required using "*" which acts as an AND condition.

    OR conditions use "+"

  4. #4
    Forum Contributor
    Join Date
    11-07-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    126

    Re: Index Formula pulling through a list with two or more conditions

    Thanks for both the responses, they weren't working for what I wanted as both conditions were in the same row, so I wanted it to pull into the list if it was either one or the other.
    But, if I use the second formula another way it works brilliantly.

    Thanks for the help

  5. #5
    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,197

    Re: Index Formula pulling through a list with two or more conditions

    OR ..
    Please Login or Register  to view this content.



    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Last edited by JohnTopley; 04-24-2018 at 11:38 AM.

+ 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 Match Formula Not Pulling Correct Results
    By derivative2016 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-23-2016, 12:54 PM
  2. [SOLVED] MATCH/INDEX Formula Help - Pulling Data
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-03-2015, 01:43 AM
  3. Index-Match Formula is pulling incorrect value
    By wghalim in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-17-2014, 08:16 AM
  4. Issue with INDEX formula not pulling all information in
    By Aly1978 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-07-2014, 01:53 PM
  5. Pulling Color and Value of Cell in Index formula
    By Caitlin.J in forum Excel General
    Replies: 0
    Last Post: 08-15-2011, 03:58 PM
  6. Index/Match formula not pulling through desired results
    By Climaxgp in forum Excel General
    Replies: 0
    Last Post: 08-02-2010, 08:14 AM
  7. Index Formula not pulling in the right number
    By umass02 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-28-2009, 08:50 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