+ Reply to Thread
Results 1 to 15 of 15

Create a list based on whether a condition was met

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    Wisconsin
    MS-Off Ver
    Excel 2003
    Posts
    7

    Create a list based on whether a condition was met

    I am attempting to create a list from another list in excel based on whether a specific condition was met or not. Basically, column A has a person's name, column B has their amount, column C has their goal, and column D states "met" or "not met". I want to create a separate list that lists the individuals who show up as "not met". I'm guessing this is a relatively simple fix but I have been toying for a few hours. Thanks for your help!
    Last edited by dkrzysik; 01-02-2013 at 10:31 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Create a list based on whether a condition was met

    Assuming your data starts on row 2, with a header row above, put this formula in E2:

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


    then copy this down to the bottom of your data. Then in G2 you can have this formula:

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


    which you can then copy down as far as you need to in order to get your list of individuals who have "met" the criteria.

    Hope this helps.

    Pete

    EDIT: For a list of individuals who have "not met" the criteria, just change the first formula to this:

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


    Hope this helps

    Pete
    Last edited by Pete_UK; 01-01-2013 at 03:30 PM.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Create a list based on whether a condition was met

    Assuming that your data start in row 2(first row is Headers) then in a cell(Let's say H2), put this Array(confirm this using control+shift+enter-not just enter) formula.

    Please Login or Register  to view this content.
    Copy down and across.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Create a list based on whether a condition was met

    Here's my chance to see how the file attachment tool works...

    dkrzysik.xls

    Description...

    Names in column A
    Status in column D

    Select a Status from the drop down in cell G1.

    Enter this array formula** in F2 and copy down until you get blanks:

    =LOOKUP("zzz",CHOOSE({1,2},"",INDEX(A:A,SMALL(IF(D$2:D$15=G$1,ROW(D$2:D$15)),ROWS(F$2:F2)))))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Create a list based on whether a condition was met

    Quote Originally Posted by Tony Valko View Post
    Here's my chance to see how the file attachment tool works...

    Attachment 203333
    Hmmm...

    Why isn't my attachment formatted to look like the attachment in this post:

    http://www.excelforum.com/excel-form...339&viewfull=1

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Create a list based on whether a condition was met

    Tony, your attachement in post #4 looks, and works, just fine
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Create a list based on whether a condition was met

    I got a PM from another member and they explained the difference in how the attachment can appear.

    Thanks!

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Create a list based on whether a condition was met

    Quote Originally Posted by Tony Valko View Post
    Hmmm...

    Why isn't my attachment formatted to look like the attachment in this post:
    Biff,

    (it seems strange having people refer to you as Tony)

    If you want your attachment to appear at the bottom of your post then when you click on Go Advanced, scroll down to Manage Attachments rather than use the paperclip icon, then Add Files, Select Files (and navigate to your file), then Done, then Submit Post.

    Hope this helps.

    Pete

  9. #9
    Registered User
    Join Date
    12-14-2012
    Location
    England
    MS-Off Ver
    2007
    Posts
    35

    Re: Create a list based on whether a condition was met

    Great post Tony Can I go one step further and ask you how you would do this:

    Make a column next to Name and call it Age. Enter Age values for each one. Now how could you make the list match the criteria that you have already stated but pull in the Age alongside the name?

    Ideally the end result would give you a list of names with the age of e.g. Name 1 with it.

    Many thanks to anyone who can solve this one!

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Create a list based on whether a condition was met

    @limebaish

    Please read the Forum Rules at the top of the screen. You should not ask a question in someone else's thread - start your own instead.

    Pete

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Create a list based on whether a condition was met

    OK, got it Pete.

    Thanks!

  12. #12
    Registered User
    Join Date
    12-14-2012
    Location
    England
    MS-Off Ver
    2007
    Posts
    35

    Re: Create a list based on whether a condition was met

    Sorry - I will do as you have suggested. Thanks

  13. #13
    Registered User
    Join Date
    08-23-2012
    Location
    Wisconsin
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Create a list based on whether a condition was met

    THanks everyone! Toni, I ended up using your attachment. Works great!

  14. #14
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Create a list based on whether a condition was met

    You're welcome. Thanks for the feedback!

  15. #15
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Create a list based on whether a condition was met

    .....................

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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