+ Reply to Thread
Results 1 to 6 of 6

List with multiple points is created if certain criteria are TRUE

  1. #1
    Registered User
    Join Date
    02-13-2016
    Location
    Canada
    MS-Off Ver
    Office for mac 2011
    Posts
    14

    List with multiple points is created if certain criteria are TRUE

    I will write a simple example of what I am trying to do. Thanks in advance for any help provided.

    EXAMPLE:

    The following discounts were applied: (This would be the 'heading')
    Discount 1 (Depending on if certain criteria are met 0 or up to 6 discounts could need listed)
    Discount 3
    Discount 6


    (I have it working currently so that if the criteria is met the discount names are populated under the heading but it would look something like this)
    The following discounts were applied:
    Discount 1--- ---Discount 3
    --- ---Discount 6


    (Is it possible to have them listed like in the top example, so if only example 6 was TRUE then it would say Discount 6 where Discount 1 currently is, and if all the discounts were true it would put them in a list and shift any text below it down depending on how many discounts were TRUE?)

    I know this isn't a very clear example but I'm just not quite sure how to explain it.

    Thanks Again

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: List with multiple points is created if certain criteria are TRUE

    You can achieve this with an array formula however we're going to need to see an example file, with dummy data if required, to set this up to suit you

  3. #3
    Registered User
    Join Date
    02-13-2016
    Location
    Canada
    MS-Off Ver
    Office for mac 2011
    Posts
    14

    Re: List with multiple points is created if certain criteria are TRUE

    Thanks, I will attach one.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,568

    Re: List with multiple points is created if certain criteria are TRUE

    Paste the following formula in Discounts!A7 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Test by changing any of the cells in column B of the Selection sheet to NO.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    02-13-2016
    Location
    Canada
    MS-Off Ver
    Office for mac 2011
    Posts
    14

    Re: List with multiple points is created if certain criteria are TRUE

    =IFERROR("-"&INDEX(Selection!A$2:A$5,AGGREGATE(15,6,(ROW(A$1:A$4))/(Selection!B$2:B$5="Yes"),ROW(A1))),"")

    The bolded 'ROW' section what is this doing for the formula?

    Also the AGGREGATE(15,6 Part I don't understand.
    Last edited by kipminorball; 10-11-2016 at 03:54 PM.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,568

    Re: List with multiple points is created if certain criteria are TRUE

    The first time that the ROW function is used it provides four numbers for the numerator, which corresponds with the four possible discounts.
    The second time that the ROW function is used it is a counter for the 15 argument of AGGREGATE which is SMALL, so that in the first row it will find the smallest row, from Selection!B2:B5 that has a yes, in the second row it will find the second smallest row and so on.
    The 6 argument tells the AGGREGATE function to ignore error values.
    A good way to see how this works would be to change Selection!B3 to No, then select Discounts!A8, which should read - Discount 3, and from the Formula tab run the Evaluate Formula.
    Let me know if you have any questions.

+ 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: 2
    Last Post: 05-26-2015, 07:29 PM
  2. [SOLVED] TRUE/FALSE Based on multiple criteria
    By bond002 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-11-2014, 06:46 AM
  3. [SOLVED] Multiple TRUE,FALSE criteria
    By quibilty in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-25-2013, 11:47 PM
  4. [SOLVED] Determining True/false based on multiple criteria
    By byeong in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2012, 12:04 PM
  5. Sum if multiple Criteria is true
    By 00Able in forum Excel General
    Replies: 8
    Last Post: 02-20-2011, 09:18 AM
  6. Evaluate Multiple Data Points Against Single Criteria
    By fmulvaney in forum Excel General
    Replies: 3
    Last Post: 08-31-2010, 03:26 PM
  7. SUMIF where multiple criteria are true?
    By rick-n in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-29-2007, 05:34 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