+ Reply to Thread
Results 1 to 4 of 4

Return Multiple Values with Multiple Conditions

  1. #1
    Forum Contributor
    Join Date
    06-04-2015
    Location
    Bangkok, Thailand
    MS-Off Ver
    2013
    Posts
    175

    Return Multiple Values with Multiple Conditions

    Hi All Experts,

    =IFERROR(INDEX(ClientInfo[Oct],SMALL(IF('Agent Targets'!$C$3=ClientInfo[Sales PIC],ROW(ClientInfo[Oct])-ROW($B$3)+1),ROW(1:1))),"")

    I am using this formula to return multiple values from a data base.

    I would like to add another condition to this formula and have tried:

    =IFERROR(INDEX(Calc[Client/Date/Destination/Pax],SMALL(IF(AND($C$3=Calc[Sales PIC Name],C$4=Calc[Sales Stage]),ROW(Calc[Client/Date/Destination/Pax])-ROW(CalcQ!$BD$3)+1),ROW(5:5))),"")



    The first formula index's client info, and uses small to return the rows that I want to return IF C3 (sales name i.e. cynthia = array of sales names is true) and then use ctrl shift enter for the array formula


    This formula works fine

    But when I try to add another condition, i.e. IF ( AND ( sales name = sales name array, sales stage = sales stage array ) the formula stops working.

    I am trying to add multiple criteria so I can do more than just return info for sales person.

    Any help would be very much appreciated.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,387

    Re: Return Multiple Values with Multiple Conditions

    Does this help?

    =IFERROR(INDEX(index_array,SMALL(IF((lookup_array_1=lookup_value_1)*(lookup_array_2=lookup_value_2),ROW(index_array)),ROW(1:1))),"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    06-04-2015
    Location
    Bangkok, Thailand
    MS-Off Ver
    2013
    Posts
    175

    Re: Return Multiple Values with Multiple Conditions

    ah yes * works perfectly thank you very much.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,387

    Re: Return Multiple Values with Multiple Conditions

    You're welcome !

+ 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. [SOLVED] Return column header by comparing multiple row values conditions
    By aschom in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2012, 08:52 PM
  2. Replies: 0
    Last Post: 08-14-2012, 01:18 PM
  3. Lookup multiple partial match conditions and return values
    By darklans in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-18-2012, 03:26 AM
  4. Replies: 9
    Last Post: 11-24-2011, 01:56 PM
  5. Replies: 5
    Last Post: 03-02-2011, 08:56 AM
  6. Return multiple values with multiple conditions
    By sushant.khullar in forum Excel General
    Replies: 6
    Last Post: 04-30-2007, 02:28 PM
  7. [SOLVED] Multiple conditions and multiple return values
    By Minerva in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-16-2006, 03:00 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