+ Reply to Thread
Results 1 to 6 of 6

formula to get list based on condition

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    formula to get list based on condition

    Hi Guys,

    i have source data like here:
    Screenshot_24.png

    and want to get result like here:

    Screenshot_25.png

    So in this case in column A you can see :
    Windows 1709
    Windows 1809

    because user in souirce worksheet have choosen App 2.0 SPS3.

    And one more difficulty here -> i have to have on the top of created list manually inputted Text.

    How to create formula to get list.

    Please help,
    Jacek
    Attached Files Attached Files

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

    Re: formula to get list based on condition

    Try this in A2 copied down:

    =IFERROR(INDEX(source!$B$1:$B$500,AGGREGATE(15,6,ROW($2:$500)/(source!$A$1:$A$500=source!$E$2),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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor jomaor1's Avatar
    Join Date
    10-08-2018
    Location
    Brasil
    MS-Off Ver
    Excel 2016
    Posts
    177

    Re: formula to get list based on condition

    Hi,

    Try this on C2, and drag down:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and Ctrl+Shift+Enter (It's an Array Formula)

    Cheers!
    Attached Files Attached Files
    John.

    "I excel at jumping to conclusions"

  4. #4
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: formula to get list based on condition

    Thank you !!!

    I prefer not to use aggregate function - i am afraid of performance from it.

    Best,
    Jacek

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: formula to get list based on condition

    Well, it's become popular precisely because it performs better than an array-entered formula!

    But it's up to you - you could have specified that you wanted a solution that did not use AGGREGATE.

  6. #6
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: formula to get list based on condition

    Hi Ali,

    o wow thank you. So you say that aggregate is better than array formula ?

    Please Login or Register  to view this content.
    Thanks. But i am always looking for the best solution - best and fastest.

    Best,
    Jacek

+ 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: 14
    Last Post: 08-04-2016, 02:18 PM
  2. [SOLVED] formula required to list cell values based on condition
    By kiranpat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 04:54 AM
  3. Create List Based on a Given Condition
    By ExcelFaninPhils in forum Excel General
    Replies: 2
    Last Post: 05-15-2014, 12:15 AM
  4. [SOLVED] Generate list based on condition from another list
    By tekobayashi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-08-2013, 05:14 AM
  5. [SOLVED] Create a list based on whether a condition was met
    By dkrzysik in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-02-2013, 08:08 AM
  6. Generating List based on Condition
    By andyb16 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2012, 06:37 AM
  7. Building list based on condition
    By Henrik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-26-2005, 04:06 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