+ Reply to Thread
Results 1 to 9 of 9

How to create list based on retrieved values that meet a condition

  1. #1
    Registered User
    Join Date
    05-31-2018
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    7

    How to create list based on retrieved values that meet a condition

    Hello,

    I have a very simple query. I want to create three lists ("red", "amber", "green") of values based on data in another sheet. In the source sheet different districts (rows) receive a rating of 1, 2 or 3. In a separate sheet I want to create three lists that draw through a list of districts into three columns (1 = green, 2 = amber, 3 = red). I hope this makes sense! What formula can I use to retrieve the data into a table that would continue to update?

    The screenshots below show an example of the source data and how the summary table could look. Many thanks in advance for your help.





    Capture.PNG


    Capture2.PNG

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: How to create list based on retrieved values that meet a condition

    Can you attach a sample workbook?

    Go Advanced -> Manage Attachments -> Upload

  3. #3
    Registered User
    Join Date
    05-31-2018
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    7

    Re: How to create list based on retrieved values that meet a condition

    Thanks for the tip - please see attached.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-31-2018
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    7

    Re: How to create list based on retrieved values that meet a condition

    PS I am not wedded to what the summary table would look like - I just want it to pull through the districts into a table with 3 columns (green, amber, red) based on whether each district receives a 1, 2 or 3 score in the second sheet. Many thanks for your help!

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

    Re: How to create list based on retrieved values that meet a condition

    In B4:

    =IFERROR(INDEX('wc 2805'!$B:$B,SMALL(IF(Table1[Summary assessment: Overall, how well is the marketing process currently functioning across the district? (1 = no/few issues, 2 = some issues, 3 = many issues)]=COLUMNS($A:A),ROW(Table1[District])),ROWS($A$1:$A1))),"")

    ... 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.

    Once confirmed, copy and paste to C4 and D4, then select B4:D4 and drag copy down.
    Attached Files Attached Files
    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.

  6. #6
    Registered User
    Join Date
    05-31-2018
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    7

    Re: How to create list based on retrieved values that meet a condition

    Thank you so much! This worked perfectly.

  7. #7
    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,853

    Re: How to create list based on retrieved values that meet a condition

    Yep!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  8. #8
    Registered User
    Join Date
    05-31-2018
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    7

    Re: How to create list based on retrieved values that meet a condition

    Thank you - I had just a small follow-up query for the same table if that's possible.

    I would like the districts that satisfy one other criteria to be highlighted e.g. in bold. This is a Y/N criteria in the second sheet for high priority or low priority. So, any districts that also were marked as high priority would appear in bold in the summary (green/amber/red) table. Is there a way to add that into the formula?

    Thanks very much for your help!

  9. #9
    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,853

    Re: How to create list based on retrieved values that meet a condition

    This is a completely different query (cannot be done using a formula) - mark this thread as solved and open a new thread for the new query, please.

+ 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: 1
    Last Post: 06-30-2017, 05:00 PM
  2. Replies: 14
    Last Post: 08-04-2016, 02:18 PM
  3. List cells that meet condition
    By jwillis07 in forum Excel General
    Replies: 3
    Last Post: 10-22-2014, 04:54 AM
  4. [SOLVED] VBA Create list of values assigned by condition
    By sk1pjack in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-28-2014, 07:41 AM
  5. [SOLVED] List cells that meet condition
    By jwillis07 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-16-2014, 01:41 PM
  6. Create List Based on a Given Condition
    By ExcelFaninPhils in forum Excel General
    Replies: 2
    Last Post: 05-15-2014, 12:15 AM
  7. [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

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